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 in trying evaluation task #6

Closed
jeje910 opened this issue Nov 14, 2021 · 6 comments
Closed

Error in trying evaluation task #6

jeje910 opened this issue Nov 14, 2021 · 6 comments

Comments

@jeje910
Copy link

jeje910 commented Nov 14, 2021

Thank you for your great work! @alexpashevich

Your paper was very interesting for me and i'm now trying to run your code in my local. But I have an issue when I try to run alfred.eval.eval_agent.

When I try to run the pretrained models evaluation code
python3 -m alfred.eval.eval_agent with eval.exp=pretrained eval.checkpoint=et_human_pretrained.pth eval.object_predictor=$ET_LOGS/pretrained/maskrcnn_model.pth exp.num_workers=5 eval.eval_range=None exp.data.valid=lmdb_human
FileNotFoundError came out and I cannot find which one is wrong.
The codes before this line were correctly run and worked well.

The picture below is the error I am currently suffer from.
ET Question

And the pretrained directory looks as follow.
ET ERROR2

Should I copy the directory from somewhere or did I miss something before evaluate task?

Sorry for the poor question..

@jeje910
Copy link
Author

jeje910 commented Nov 16, 2021

The question above were solved by reinstalling all the data. (worker00 ~ worker03 directories were not created when i ran create_lmdb.py. So I divided the line 58 in create_lmdb.py into two, which generates the worker directories and feats directories)

But, evaluation task is not still working with the error named "AssertionError: feature extraction is not the same for training and evaluation".And this error lead to the FileNotFoundError again even if I trained the model in my own once again.
Does it mean feature extraction not worked well? And if so, what should I check to fix it..?

@jeje910
Copy link
Author

jeje910 commented Nov 17, 2021

I got this error. In model.util, it closes torch if feature extraction is different. In my case, the device lead to close torch, means tensor(0.6196, deice='cuda:0') != tensor(0.6196). It worked well when i just change my device or just comment out the assertion line. Sorry for the poor question and i'll close this issue. It works well for me now!

@jeje910 jeje910 closed this as completed Nov 17, 2021
@alexpashevich
Copy link
Owner

@jeje910 Hi Jaeyeon. Thank you for taking a closer look and reporting which issue you encountered. Good luck with your research!

@Samuel-Fipps
Copy link

Thank you I had the same problem

@Samuel-Fipps
Copy link

create_lmdb

Do you mine sharing how you "So I divided the line 58 in create_lmdb.py into two". Thank you!

@Samuel-Fipps
Copy link

Never mind it just returns the wrong error when it should be this error that you had:

"I got this error. In model.util, it closes torch if feature extraction is different. In my case, the device lead to close torch, means tensor(0.6196, deice='cuda:0') != tensor(0.6196). It worked well when i just change my device or just comment out the assertion line. Sorry for the poor question and i'll close this issue. It works well for me now!"

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