Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training Error: TypeError: No loop matching the specified signature and casting was found for ufunc greater #426

Open
EngrNaeemRaza opened this issue Mar 18, 2023 · 4 comments

Comments

@EngrNaeemRaza
Copy link

Traceback (most recent call last):
File "train.py", line 537, in
train(hyp, opt, device, tb_writer, wandb)
File "train.py", line 203, in train
tb_writer.add_histogram('classes', c, 0)
File "C:\Users\xxx\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\utils\tensorboard\writer.py", line 485, in add_histogram
histogram(tag, values, bins, max_bins=max_bins), global_step, walltime
File "C:\Users\xxx\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\utils\tensorboard\summary.py", line 358, in histogram
hist = make_histogram(values.astype(float), bins, max_bins)
File "C:\Users\xxx\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\utils\tensorboard\summary.py", line 386, in make_histogram
cum_counts = np.cumsum(np.greater(counts, 0, dtype=np.int32)
TypeError: No loop matching the specified signature and casting was found for ufunc greater

@EngrNaeemRaza EngrNaeemRaza changed the title Training Error: Training Error: TypeError: No loop matching the specified signature and casting was found for ufunc greater Mar 18, 2023
@huacd
Copy link

huacd commented Jun 12, 2023

yolov5 also has this error

@huacd
Copy link

huacd commented Jun 12, 2023

i have solve this problem by down-grade numpy version to 1.23.4

@sainisatish
Copy link

sainisatish commented Aug 5, 2023

i have solve this problem by down-grade numpy version to 1.23.4

I have also downgraded the version , now it is running fine(yolov7).

@OkeyHuang
Copy link

i have solve this problem by down-grade numpy version to 1.23.4
Thx,sir. I solved this problem with the method you proposed(YOLOv5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants