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

Problems encountered in visualization #37

Open
alphacyp opened this issue Aug 17, 2021 · 4 comments
Open

Problems encountered in visualization #37

alphacyp opened this issue Aug 17, 2021 · 4 comments

Comments

@alphacyp
Copy link

After running the model, I want to use the “demo/demo.py” to randomly input a picture for detection.

python demo/demo.py --config-file configs/PASCAL_VOC/base-training/R101_FPN_base_training_split1.yml \--input input1.jpg
Here I can normally detect the results and output a picture with the detection results.But,in the fine tune model,after I do this
python demo/demo.py --config-file configs/PASCAL_VOC/split1/10shot_CL_IoU.yml \--input input1.jpg
The content of the error report is
AssertionError: get_event_storage() has to be called inside a 'with EventStorage(...)' context!
I appreciate anyone who can help me.

@alphacyp
Copy link
Author

Or, who has tested the test results with a random picture after running all the models?Thanks!

@NeuroDong
Copy link

Put storage = get_ event_storage () in roi_ heads.py Change to:
with EventStorage():
storage = get_event_storage()

@alphacyp
Copy link
Author

Put storage = get_ event_storage () in roi_ heads.py Change to:
with EventStorage():
storage = get_event_storage()

Thank you very much!

@zzzzjx
Copy link

zzzzjx commented Oct 14, 2021

Put storage = get_ event_storage () in roi_ heads.py Change to:
with EventStorage():
storage = get_event_storage()

Thank you very much!

I have tried this but occur another errpr, how to define EventStorage?

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