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

Hi #56

Closed
ross-Hr opened this issue Jul 25, 2023 · 1 comment
Closed

Hi #56

ross-Hr opened this issue Jul 25, 2023 · 1 comment

Comments

@ross-Hr
Copy link

ross-Hr commented Jul 25, 2023

Hi, i am a beginner.

May I ask how to convert the code into distributed training ? The error looks like :
File "/data/code/Yolov7-training/yolov7/trainer.py", line 132, in calculate_eval_batch_loss preds = self.model.postprocess(fpn_heads_outputs, conf_thres=0.001) File "/home/xiaoxiong/anaconda3/envs/yolov7/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1185, in __getattr__ raise AttributeError("'{}' object has no attribute '{}'".format( AttributeError: 'DistributedDataParallel' object has no attribute 'postprocess'
I also can not find the template code.

@Chris-hughes10
Copy link
Owner

Chris-hughes10 commented Jul 31, 2023

Hi,

There shouldn't need to be any changes to the code for distributed training, you just need to update the accelerate config as detailed here.

That error looks specific to Yolo7, so I will close this issue here

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

2 participants