-
-
Notifications
You must be signed in to change notification settings - Fork 15.8k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
'DistributedDataParallel' object has no attribute 'model' #90
Comments
Hello @aixin200005, thank you for your interest in our work! Please visit our Custom Training Tutorial to get started, and see our Jupyter Notebook , Docker Image, and Google Cloud Quickstart Guide for example environments. If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you. If this is a custom model or data training question, please note that Ultralytics does not provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:
For more information please visit https://www.ultralytics.com. |
@aixin200005 You can change below code in `
` |
@ChenYingpeng |
@ChenYingpeng @aixin200005 yes I see, this is caused by the anchor checking trying to pull anchors from a single-gpu model training. I'll see what I can do to fix this, thank you for the suggestion @ChenYingpeng . |
This should be resolved now in the latest commit, please git pull and try again. |
馃悰 Bug
Hello, I have trained 7 classes of data according to the requirements of Train Custom Data.However, the following errors occurred:
Traceback (most recent call last):
File "train.py", line 400, in
train(hyp)
File "train.py", line 203, in train
check_best_possible_recall(dataset, anchors=model.model[-1].anchor_grid, thr=hyp['anchor_t'])
File "/home/aixin/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/nn/modules/module.py", line 539, in getattr
type(self).name, name))
AttributeError: 'DistributedDataParallel' object has no attribute 'model'
Environment
The text was updated successfully, but these errors were encountered: