Comments (5)
I don't quite understand you mean. Do you mean to evaluate with other lmdb datasets ?
from cdistnet.
@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.
@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.
@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.
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)
- How many layers of MDCDP net did you use in best performing english model? HOT 1
- plan to release code? HOT 1
- plan to release code? HOT 1
- accuracy is lower than other models HOT 2
- Inference Time HOT 3
- ONNX and tensorRT conversion HOT 2
- Missing transformer HOT 2
- Has your paper been accepted?
- How should i prepare dictionary for train on other language? HOT 1
- about inference
- Eval request result.csv HOT 2
- Can it work with phone number ? HOT 7
- CDistNetv2 HOT 1
- Open source license? HOT 1
- train for other language
- Questions on Conv2d of Transformer Layers HOT 1
- Attention Maps
- Any way to train only on language and not images?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdistnet.