-
Notifications
You must be signed in to change notification settings - Fork 77
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
AttributeError: 'BiSeNet' object has no attribute 'module' #1
Comments
Is your gpu available? check https://github.com/ooooverflow/BiSeNet/blob/master/eval.py#L70, after model = torch.nn.DataParallel(model).cuda()
model.module.load_state_dict(torch.load(args.checkpoint_path)) Not: model.load_state_dict(torch.load(args.checkpoint_path)) Maybe a better solution is load state dict before line: model = torch.nn.DataParallel(model).cuda() |
Have anyone solved this problem??? |
have you sovled it? |
maybe you just delete .module if you just you use one gpu. |
no I didn't . Thanks I'll try @zz10001 |
if your pc have more than one gpu. BEFORE: |
load model from ./checkpoints/epoch_295.pth ...
Traceback (most recent call last):
File "c:\Users\Administrator\Desktop\BiSeNet-master\BiSeNet-master\demo.py", line 80, in
main(params)
File "c:\Users\Administrator\Desktop\BiSeNet-master\BiSeNet-master\demo.py", line 60, in main
model.module.load_state_dict(torch.load(args.checkpoint_path))
File "C:\Program Files\Python\lib\site-packages\torch\nn\modules\module.py", line 518, in getattr
type(self).name, name))
AttributeError: 'BiSeNet' object has no attribute 'module'
PS C:\Users\Administrator\Desktop\BiSeNet-master\BiSeNet-master>
Where do I put the dataset ?
The text was updated successfully, but these errors were encountered: