Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for run demo.py #356

Closed
David-19940718 opened this issue Sep 14, 2019 · 5 comments
Closed

Error for run demo.py #356

David-19940718 opened this issue Sep 14, 2019 · 5 comments

Comments

@David-19940718
Copy link

Hi, author, i met the following problem while running demo.py:
when i install pytorch==0.4.1, it reported this error:
RuntimeError: CuDNN error: CUDNN_STATUS_SUCCESS
so i replace it to 1.0 or 1.2 version, and then get the new problem:
ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead.
I am going to be tortured by it.
Looking forward to your suggestions and responses, tks.

@David-19940718
Copy link
Author

I fixed it.
cuda=10.0, python=3.6, anaconda=Anaconda3-5.3.1-Linux-x86_64.sh
1- git clone https://github.com/xingyizhou/CenterNet.git
2- conda create --name CenterNet python=3.6
3- conda activate CenterNet
4- pip install -r requirements.txt
5- conda install pytorch=1.1 torchvision(the pip channel use https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free)
6- cd CenterNet\src\lib\external
python setup.py build_ext --inplace
7- cd /CenterNet/src/lib/models/networks
rm -r DCNv2
git clone https://github.com/CharlesShang/DCNv2.git
cd /CenterNet/src/lib/models/networks/DCNv2
python setup.py build develop
8- down ctdet_coco_dla_2x.pth from this https://drive.google.com/file/d/1pl_-ael8wERdUREEnaIfqOV_VF2bEVRT/view and put it in /Centernet/models
9- cd CenterNet/src/, and run:
python demo.py ctdet --demo ../images/24274813513_0cfd2ce6d0_k.jpg --load_model ../models/ctdet_coco_dla_2x.pth
10- done!

@markytools
Copy link

I fixed it.
cuda=10.0, python=3.6, anaconda=Anaconda3-5.3.1-Linux-x86_64.sh
1- git clone https://github.com/xingyizhou/CenterNet.git
2- conda create --name CenterNet python=3.6
3- conda activate CenterNet
4- pip install -r requirements.txt
5- conda install pytorch=1.1 torchvision(the pip channel use https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free)
6- cd CenterNet\src\lib\external
python setup.py build_ext --inplace
7- cd /CenterNet/src/lib/models/networks
rm -r DCNv2
git clone https://github.com/CharlesShang/DCNv2.git
cd /CenterNet/src/lib/models/networks/DCNv2
python setup.py build develop
8- down ctdet_coco_dla_2x.pth from this https://drive.google.com/file/d/1pl_-ael8wERdUREEnaIfqOV_VF2bEVRT/view and put it in /Centernet/models
9- cd CenterNet/src/, and run:
python demo.py ctdet --demo ../images/24274813513_0cfd2ce6d0_k.jpg --load_model ../models/ctdet_coco_dla_2x.pth
10- done!

thnx!

@WJ-Lai
Copy link

WJ-Lai commented Oct 17, 2019

It works! thanks!

@LIUHAO121
Copy link

I fixed it.
cuda=10.0, python=3.6, anaconda=Anaconda3-5.3.1-Linux-x86_64.sh
1- git clone https://github.com/xingyizhou/CenterNet.git
2- conda create --name CenterNet python=3.6
3- conda activate CenterNet
4- pip install -r requirements.txt
5- conda install pytorch=1.1 torchvision(the pip channel use https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free)
6- cd CenterNet\src\lib\external
python setup.py build_ext --inplace
7- cd /CenterNet/src/lib/models/networks
rm -r DCNv2
git clone https://github.com/CharlesShang/DCNv2.git
cd /CenterNet/src/lib/models/networks/DCNv2
python setup.py build develop
8- down ctdet_coco_dla_2x.pth from this https://drive.google.com/file/d/1pl_-ael8wERdUREEnaIfqOV_VF2bEVRT/view and put it in /Centernet/models
9- cd CenterNet/src/, and run:
python demo.py ctdet --demo ../images/24274813513_0cfd2ce6d0_k.jpg --load_model ../models/ctdet_coco_dla_2x.pth
10- done!

thnx!

thanks you

@lhyfst
Copy link

lhyfst commented Jun 7, 2020

You are AWESOME! @David-19940718

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants