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

How to run projects/CenterNet2/demo.py #61

Open
SHIsue opened this issue Jul 23, 2021 · 2 comments
Open

How to run projects/CenterNet2/demo.py #61

SHIsue opened this issue Jul 23, 2021 · 2 comments

Comments

@SHIsue
Copy link

SHIsue commented Jul 23, 2021

  1. download zip and unzip
  2. makesure your torch>=1.6
  3. open INSTALL.md and install Pre-Built Detectron2. For example, if your torch==1.6 & cuda==10.1, then run "python -m pip install detectron2 -f
    https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.6/index.html"
  4. cd CenterNet2-master
  5. python setup.py develop
  6. vim projects/CenterNet2/demo.py
  7. Comment out all cv2.imshow & cv2.nameWindow & cv2.waitkey() & cv2.destroyAllWindows() and save demo.py
  8. back to CenterNet2-master/ and run "CUDA_VISIBLE_DEVICES=5 python projects/CenterNet2/demo.py --config-file projects/CenterNet2/configs/CenterNet2_DLA-BiFPN-P3_24x.yaml --input datasets/imgs/ --opts MODEL.WEIGHTS ../models/CenterNet2_DLA-BiFPN-P3_24x.pth" (make sure you have imgs in datasets/imgs/ and download the model in models/ , Just An Example!!!!!)
@shengyuan-tang
Copy link

How do you find the 'CenterNet2_DLA-BiFPN-P3_24x.pth', i can't find this weights.

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

2 participants