Giter Club home page Giter Club logo

Comments (4)

dk-liang avatar dk-liang commented on July 17, 2024

Thanks for your feedback. Do you modify the test.py?
I guess your Pred result is by summing the predicted output instead of by finding the local maxima.
Maybe you can solve the problem by adopting the latest version of test.py. The implementation of LMDS is in Line 154 of test.py.
When I run python test.py --test_dataset ShanghaiA --pre model_best.pth,
........
begin test
IMG_1.jpg Gt 172.00 Pred 231
IMG_10.jpg Gt 502.00 Pred 429
IMG_100.jpg Gt 391.00 Pred 430
IMG_101.jpg Gt 211.00 Pred 228
IMG_102.jpg Gt 223.00 Pred 255
IMG_103.jpg Gt 430.00 Pred 510
.......

from fidtm.

 avatar commented on July 17, 2024

Thank you for your answer. I updated a test.py file, but this problem still exists, and I found that the results of not loading “/model/ShanghaiA/model_best.pth” and successfully loading “/model/ShanghaiA/model_best.pth” are the same result, I don’t think it’s the problem of LMDS.

#####################
./model/ShanghaiA/model_best.pth
=> no checkpoint found at './model/ShanghaiA/model_best.pth'
100000.0 0
Pre_load dataset ......
begin test
IMG_1.jpg Gt 172.00 Pred 177319
IMG_10.jpg Gt 502.00 Pred 193268
IMG_100.jpg Gt 391.00 Pred 91857

#####################
./model/ShanghaiA/model_best_57.pth
=> loading checkpoint './model/ShanghaiA/model_best_57.pth'
57.0989010989011 921
Pre_load dataset ......
begin test
IMG_1.jpg Gt 172.00 Pred 177319
IMG_10.jpg Gt 502.00 Pred 193268
IMG_100.jpg Gt 391.00 Pred 91857
IMG_101.jpg Gt 211.00 Pred 183484
IMG_102.jpg Gt 223.00 Pred 31301

In the Baidu-Disk you provided, the pre-training file of Part_A model is the model_best_57.pth

from fidtm.

dk-liang avatar dk-liang commented on July 17, 2024

The command "./model/ShanghaiA/model_best_57.pth" is right. It seems that the pre-trained model did not load successfully. However, I do not get any wrong when I utilize the same command. You can add my WeChat (liangdingkang) to let me know about this problem in detail.

from fidtm.

 avatar commented on July 17, 2024

Thank you for your excellent work. I sent you a friend request. I am sorry to disturb you during the holidays.

from fidtm.

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.