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

Error when running stage_1.py under Places_LT #67

Open
Zheweiqiu opened this issue Dec 2, 2020 · 0 comments
Open

Error when running stage_1.py under Places_LT #67

Zheweiqiu opened this issue Dec 2, 2020 · 0 comments

Comments

@Zheweiqiu
Copy link

Hi,
I am going to train on my own dataset, I changed all the data path accordingly. But when I was trying to fine-tune resnet-152, I encountered the following error and don't know how to fix it.
Any help will be appreciate!

Traceback (most recent call last):
File "main.py", line 57, in
training_model.train()
File "/data/OLTR/OpenLongTailRecognition-OLTR/run_networks.py", line 192, in train
for step, (inputs, labels, _) in enumerate(self.data['train']):
File "/opt/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 819, in next
return self._process_data(data)
File "/opt/anaconda3/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 846, in _process_data
data.reraise()
File "/opt/anaconda3/lib/python3.6/site-packages/torch/_utils.py", line 369, in reraise
raise self.exc_type(msg)
TypeError: function takes exactly 5 arguments (1 given)

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

1 participant