-
Notifications
You must be signed in to change notification settings - Fork 16
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 #4
Comments
This is because torch.cuda.amp.autocast() does not have the dtype parameter. Please modify "with autocast(dtype=self.precision)" to "with autocast()" to fix this problem (line 491 in detectron2/detectron2/engine/train_loop.py). |
anaconda3/envs/fastinst/lib/python3.8/site-packages/shapely/set_operations.py:133: RuntimeWarning: invalid value encountered in intersection File "/anaconda3/envs/fastinst/lib/python3.8/site-packages/torch/utils/tensorboard/init.py", line 4, in AttributeError: module 'distutils' has no attribute 'version' |
This is due to the update of setuptools. First, pip uninstall setuptools, then, pip or conda install setuptools==58.0.4. |
pip uninstall setuptools |
Running train_ net.py file occurred Error: TypeError :__ init__ () Got an unexpected keyword argument 'dtype', error location is detection2/engine/train_ loop.py
May I ask if anyone has encountered the same problem? How did you solve it?
The text was updated successfully, but these errors were encountered: