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

'ResNet' object has no attribute 'out_features' #251

Open
purnavindhya opened this issue Oct 31, 2023 · 1 comment
Open

'ResNet' object has no attribute 'out_features' #251

purnavindhya opened this issue Oct 31, 2023 · 1 comment

Comments

@purnavindhya
Copy link

Describe the bug
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
AttributeError: 'ResNet' object has no attribute 'out_features'

To Reproduce
Steps to reproduce the behavior:

  1. Go to python3 dann.py data/office31 -d Office31 -s A -t W -a resnet50 --epochs 20

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot 2023-10-31 at 2 16 11 PM

Desktop (please complete the following information):

  • OS: iOS, macOS Sonoma, M2 Pro
@thucbx99
Copy link
Collaborator

I think this is because PyTorch updates this implementation of ResNet in higher versions such as 2.1.0. Try using PyTorch 1.8 or 1.9 may help.

@thucbx99 thucbx99 reopened this May 27, 2024
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