Giter Site home page Giter Site logo

ModuleNotFoundError about fairmot HOT 7 CLOSED

ifzhang avatar ifzhang commented on May 12, 2024
ModuleNotFoundError

from fairmot.

Comments (7)

zubairahmed-ai avatar zubairahmed-ai commented on May 12, 2024

See my issue #5 basically get the latest version of the code, download HRNet models and comment a few lines and it should work, I struggled alot on this myself

from fairmot.

ifzhang avatar ifzhang commented on May 12, 2024

Sadly it is difficult to build DCNv2 on Windows. You can use HRNet which do not use DCNv2 to run the demo code following the instructions in readme. You can also turn to issue #5 for help when running HRNet.

from fairmot.

zubairahmed-ai avatar zubairahmed-ai commented on May 12, 2024

Haha...I beat you to it @ifzhang

from fairmot.

FLyingLSJ avatar FLyingLSJ commented on May 12, 2024

run this code may be can fix this probelm.
pip install --upgrade cython

from fairmot.

wyh1992-NJ avatar wyh1992-NJ commented on May 12, 2024

Thank you all,now I have only one question left,the problems are as follows:
F:\FairMOT-master\FairMOT\src>python demo.py mot --load_model ../models/all_hrnet_v2_w18.pth --input-video ../videos/mot16-03.mp4 --output-root ../results --arch hrnet_w18 --reid_dim 128 --conf_thres 0.4 --arch hrnet_18
Fix size testing.
training chunk_sizes: [6, 6]
The output will be saved to F:\FairMOT-master\FairMOT\src\lib....\exp\mot\default
heads {'hm': 1, 'wh': 2, 'id': 128, 'reg': 2}
2020-04-17 17:30:01 [INFO]: Starting tracking...
Lenth of the video: 1500 frames
Creating model...
=> please download pre-trained models first!
2020-04-17 17:30:01 [INFO]: ../models/hrnetv2_w18_imagenet_pretrained.pth is not exist!
'ffmpeg' 不是内部或外部命令,也不是可运行的程序
I have changed the hrnet_w18.yaml:
#PRETRAINED: '../models/hrnetv2_w18_imagenet_pretrained.pth'
#PRETRAINED: '../models/hrnetv2_w32_imagenet_pretrained.pth'
PRETRAINED: '../models/hrnetv2_w18_imagenet_pretrained.pth'
and I have downloaded the hrnetv2_w18_imagenet_pretrained.pth and the hrnetv2_w32_imagenet_pretrained.pth py python ,and I put the files in the models.

img

I doubt that the file I have downloaded is wrong,please give me some suggestion, Thank you very much!

from fairmot.

ifzhang avatar ifzhang commented on May 12, 2024

Oh, I see! You should put all the models in $FAIRMOT_ROOT$/models instead of $FAIRMOT_ROOT$/src/lib/models.

from fairmot.

wyh1992-NJ avatar wyh1992-NJ commented on May 12, 2024

I have successfully run this model, thank you very much!

from fairmot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.