Open gkoays opened 4 years ago
You also need to copy ttfnet.py
to mmdet/models/detectors
and modify the mmdet/models/detectors/__init__.py
.
You also need to copy
ttfnet.py
tommdet/models/detectors
and modify themmdet/models/detectors/__init__.py
.
Thank you, also there is other a couple files that should be copied. It can be understood from errors. Then it worked.
I encountered the same proble, and I noticed there already exists "ttfnet.py". what other files should I copied?
您还需要复制
ttfnet.py
到mmdet/models/detectors
并修改mmdet/models/detectors/__init__.py
。谢谢,还有其他几个文件应该被复制。从错误中可以理解。然后它起作用了。
您好,可以交流一下您是如何成功训练的吗?我安装的过程也是和您一样,先是git的mmdetection,然后在mmdetetion中编译mmdet,然后再git ttfnet,没有编译ttfnet,然后在ttfnet文件夹下运行网络摄像头的demo,用的是ttfnet_r18_2x.py,但是也收到了和您一样错误,这是我的微信:shiyi809,我希望能和您交流一下,万分感谢。
You also need to copy
ttfnet.py
tommdet/models/detectors
and modify themmdet/models/detectors/__init__.py
.Thank you, also there is other a couple files that should be copied. It can be understood from errors. Then it worked. Hello, can you share how you successfully trained? The process of my installation is the same as yours. First, mmdetection of git, then compile mmdet in mmdetetion, then git ttfnet, without compiling ttfnet, and then run the demo of the webcam under the ttfnet folder, using ttfnet_r18_2x.py, but I also received the same error as you, this is my WeChat: shiyi809, I hope to communicate with you, thank you very much.
@enhenghengheng Have you successfully trained and tested. I also encountered the same problem and ttfnet.py already exists in the mmdet/models/detectors
ttfnet
i have trained and tested,from my question,i first git mmdetection ,secend install mmdet,but this two step is rong, you do not run this two step,and dirrect git ttfnet and install ttfnet.
@enhenghengheng您是否已成功培训和测试过。我也遇到了同样的问题,并且ttfnet.py已经存在于mmdet / models / detectors中
git clone https://github.com/ZJULearning/ttfnet.git cd ttfnet pip install -r requirements/build.txt pip install -v -e .
@enhenghengheng I have only ran the ttfnet and build the evnvironment according to the requirement.txt But it have some others problems for example, Error compiling objects for extension. Can you add your QQ or other contact information, because I am more interested in the ttfnet component and I want to run successfully。 Thank you
I also caught this problem when I install mmdetection as the guide said. I think this is a fatal problem for ttfnet usage if the author doesn't explain the solution.
I get this error message 'ImportError: cannot import name 'get_dist_info' when I run './tools/dist_test.sh configs/ttfnet/ttfnet_d53_2x.py /path/to/the/checkpoint 8' command. As I see from issues of open-mmlab/mmdetection repository, I upgraded mmcv and mmdet with 'pip install --upgrade mmdet' and launched 'python setup.py develop' again but it doesn't work. Also I tried using open-mmlab/mmdetection repository, but it doesn't contain ttfnet config file. So, I copied the ttfnet config file from ttfnet repo to mmdetection config files, and tried to test webcam demo. However, I got this error message: 'KeyError: 'TTFNet is not in the detector registry'. Can anyone help about that? Thanks.