RuntimeError: result type Float can't be cast to the desired output type long int
Hello Chen, Thank you very much for taking your time to answer me! I appreciate! When I run the training code train.py, I had the error:
Image sizes 512 train, 512 test Using 8 dataloader workers Logging results to LEVIR-Ship/exp2 Starting training for 1000 epochs...
Epoch gpu_mem box obj cls dgi total targets img_size
0%| | 0/145 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/home/la/Desktop/DRENet_ship/train.py", line 515, in
I did not change anything from your code. Could you please give me a solution to solve this problem. Thanks!
Best regards,
Tran-Vu
Hi @tommylatranvu ,
This is a problem caused by an incompatible torch version. You can find some discussions about this here.
And there are some simple and easy ways online to solve the problems, like this.
Hope these can help.
Thanks a lot!