Closed lqzhao closed 4 years ago
do you meet this problem? ImportError: cannot import name '_C'
how to solve it?
how to solve it?
You can just force the program to use single thread as follows:
torch.set_num_threads(1)
This command can reduce CPU usage effectively with little effect on the speed of inference.
ImportError: cannot import name '_C'
Check your environment. Follow the instructions the author provided.
@lqzhao there are some mistake happened when i run demo on single image, I change the video stream into image in code, and there are some error , can u share your demo code?thank u so much!!
@lqzhao there are some mistake happened when i run demo on single image, I change the video stream into image in code, and there are some error , can u share your demo code?thank u so much!!
Leave your email. I'll find that code then send it to you.
@lqzhao 1034397129@qq.com, thank you so much!!!
@lqzhao 1034397129@qq.com, thank you so much!!!
check it.
@lqzhao 1034397129@qq.com, thank you so much!!!
check it.
ok, thanks!
it costs too much cpu resources when I run demo/webcom.py. It almost occupied all cpus, which makes other program has no cpu resources available. However, it doesn't happen while training or testing. I wonder why it cost so much cpu resource and how can I fix this problem?
I modified the code of webcom.py to make a single image as input.