megvii-research / FSCE

Apache License 2.0
274 stars 47 forks source link

bug of test_net.py #42

Open NeuroDong opened 2 years ago

NeuroDong commented 2 years ago

AssertionError: get_event_storage() has to be called inside a 'with EventStorage(...)' context!

NeuroDong commented 2 years ago

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

hetao828 commented 2 years ago

这个问题还是没有解决,仍然会报错

huhan233 commented 2 years ago

这个问题有人解决了吗

huhan233 commented 2 years ago

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

请问下怎么定义这个EventStorage()

huhan233 commented 2 years ago

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

解决了解决了,大哥牛逼

hetao828 commented 2 years ago

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

解决了解决了,大哥牛逼

请问你是怎么解决的呀?我加进去仍然会显示上面的错误呀

huhan233 commented 2 years ago

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

解决了解决了,大哥牛逼

请问你是怎么解决的呀?我加进去仍然会显示上面的错误呀

我就是他说的那个啊,就没问题了,你加了之后还是原来的错误吗

zzzzjx commented 2 years ago

你是怎么定义EventStorage,我改成with EventStorage(): storage = get_event_storage(),报错没有定义EventStorage。 NameError: name 'EventStorage' is not defined

ry-jojo commented 2 years ago

你是怎么定义EventStorage,我改成with EventStorage(): storage = get_event_storage(),报错没有定义EventStorage。 NameError: name 'EventStorage' is not defined

put this in the import of roi_head: from fsdet.utils.events import EventStorage

hongyu1020 commented 2 years ago

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

解决了解决了,大哥牛逼

请问,rio_heads.py里面所有的storage = get_event_storage()都改成with EventStorage(): storage = get_event_storage()吗?

hongyu1020 commented 2 years ago

请问,是把rio_heads.py里面所有的storage = get_event_storage()都改成with EventStorage(): storage = get_event_storage()吗?

MrCrightH commented 2 years ago

请问,是把rio_heads.py里面所有的storage = get_event_storage()都改成with EventStorage(): storage = get_event_storage()吗?

是都改掉吗

RuoyuChen10 commented 2 years ago

请问,是把rio_heads.py里面所有的storage = get_event_storage()都改成with EventStorage(): storage = get_event_storage()吗?

是都改掉吗

凡是报错地方都改掉,我改了好几个文件,像rcnn.py什么的,报错就改:

from fsdet.utils.events import get_event_storage, EventStorage

...

with EventStorage(): 
    storage = get_event_storage()

另外我觉得builder这个fsdet太麻烦了,直接pip install detectron2==0.4(这个要用官方链接)多好,免得出现了builder时候有错误,另外还是建议pytorch 1.4或者cuda不兼容情况。

jiaoxue52 commented 2 years ago

请问,是把rio_heads.py里面所有的storage = get_event_storage()都改成with EventStorage(): storage = get_event_storage()吗?

是都改掉吗

凡是报错地方都改掉,我改了好几个文件,像什么的,报错就改:rcnn.py

from fsdet.utils.events import get_event_storage, EventStorage

...

with EventStorage(): 
    storage = get_event_storage()

另外我觉得builder这个fsdet太麻烦了,直接(这个要用官方链接)多好,免得出现了builder时候有错误,另外还是建议pytorch 1.4或者cuda不兼容情况。pip install detectron2==0.4

您好,我配置的环境总有一些问题,可以看一下您配置的环境吗?谢谢