Coder Social home page Coder Social logo

Comments (5)

simplify23 avatar simplify23 commented on September 26, 2024

I don't quite understand you mean. Do you mean to evaluate with other lmdb datasets ?

from cdistnet.

saichandra1199 avatar saichandra1199 commented on September 26, 2024

@simplify23 It means like is there any inference script so that we can direct test the model on images rather than lmdb files

from cdistnet.

simplify23 avatar simplify23 commented on September 26, 2024

@saichandra1199 our code support for testing by txt labels. You can set cfg.test.is_test_gt in Config file for test, some code need to be change.

from cdistnet.

saichandra1199 avatar saichandra1199 commented on September 26, 2024

@simplify23 so you are saying that we need ground truth txt file for every image which needs to be tested. Is that right ?
Can't we get direct predictions over set of images given using a model which is trained
So what you're saying that cfg.test.is_test_gt = True and i've to give image_dir path consisting of images and a txt file which consists of image name and ground truth text seperated by space

from cdistnet.

simplify23 avatar simplify23 commented on September 26, 2024

If you can't get real txt labels, you can also try this method. The prediction result will save as submit.txt,you just need empty txt or note other code.
You can read the eval.py line 180 for change.

gt_file = os.path.join(cfg.test.model_dir, 'gt.txt')
pred_file = os.path.join(cfg.test.model_dir, 'submit.txt')
name_file = os.path.join(cfg.test.model_dir, 'name.txt')
write_to_file(gt_file, gt_list)
write_to_file(pred_file, pred_list)
write_to_file(name_file, name_list)

from cdistnet.

Related Issues (19)

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.