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

type(self).__name__, name)) AttributeError: 'YOLOv3' object has no attribute 'module' #70

Open
huangzicheng opened this issue Mar 5, 2020 · 3 comments

Comments

@huangzicheng
Copy link

No description provided.

@huangzicheng
Copy link
Author

I solve this problem , change it with:

model_dict = dict({
'epoch': epoch + 1,
'state_dict': model.state_dict(),
})

                torch.save(model_dict, os.path.join(args.save_dir,
                        save_prefix+'_'+repr(epoch)+'.pth'))

@xaohuicai
Copy link

@huangzicheng 保存模型的问题可以这样解决,但是这里的问题怎么解决model.module.module_list[Drop_layer[i]].reset(block_size[i], keep_p[i])

@joe660
Copy link

joe660 commented Dec 14, 2020

@huangzicheng 保存模型的问题可以这样解决,但是这里的问题怎么解决model.module.module_list[Drop_layer[i]].reset(block_size[i], keep_p[i])

能问下 你们用哪个版本的yolo?

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

3 participants