misads / easy_detection

一个简单方便的目标检测框架(PyTorch环境可直接运行,不需要cuda编译),支持Faster_RCNN、Cascade_RCNN、Yolo系列、SSD等经典网络。
MIT License
256 stars 41 forks source link

NameError: name 'config' is not defined #21

Open xiaofeng-c opened 3 years ago

xiaofeng-c commented 3 years ago

Thanks for your work.When i run with the command "python inference.py --config configs/faster_rcnn_voc.yml" a problem occur as follow: Traceback (most recent call last): File "inference.py", line 45, in Model = get_model(config.MODEL.NAME) NameError: name 'config' is not defined i want to know if the inference.py is complete?or what should i do?

xiaofeng-c commented 3 years ago

I have solve this question.

yuanfangshang888 commented 10 months ago

请问你怎么解决的这个问题?我也遇到了很相似的问题,能不能分享一下你解决的方法呢?谢谢啦,我出现的问题是AttributeError: 'Option' object has no attribute 'DATA'