megvii-research / FSCE

Apache License 2.0
280 stars 47 forks source link

Problems encountered in visualization #37

Open alphacyp opened 3 years ago

alphacyp commented 3 years ago

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 commented 3 years ago

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

NeuroDong commented 3 years ago

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

alphacyp commented 3 years ago

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

Thank you very much!

zzzzjx commented 2 years ago

Put storage = get_ eventstorage () 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?