question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Output files are empty when testing

See original GitHub issue

Hello, thank you so much for providing code for great research paper. I am just wondering after I run python train.py --config config.json. All the values of mEP, mER, mEF, mEA are all 0 for every train Epoch. Is this normal? 2020-07-26 20:45:35.357166: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1 [2020-07-26 20:45:40,891 - train - INFO] - Model trainable parameters: 68575842 [2020-07-26 20:45:40,892 - train - INFO] - Train datasets: 8 samples Validation datasets: 8 samples Max_epochs: 100 Log_per_step: 10 Validation_per_step: 50 [2020-07-26 20:45:40,892 - train - INFO] - Training start… [2020-07-26 20:46:07,680 - trainer - INFO] - Train Epoch:[1/100] Step:[2/2] Total Loss: 1121.992798 GL_Loss: 8.390446 CRF_Loss: 1113.602295 [2020-07-26 20:46:09,988 - trainer - INFO] - [Epoch Validation] Epoch:[1/100] Total Loss: 1430.095032 GL_Loss: 0.091890 CRF_Loss: 1420.906006 ±--------±------±------±------±------+ | name | mEP | mER | mEF | mEA | +=========+=======+=======+=======+=======+ | date | 0 | 0 | 0 | 0 | ±--------±------±------±------±------+ | name | 0 | 0 | 0 | 0 | ±--------±------±------±------±------+ | overall | 0 | 0 | 0 | 0 | ±--------±------±------±------±------+ Also, I ran

python test.py --checkpoint /content/PICK-pytorch/saved/models/PICK_Default/test2_0726_194721/model_best.pth --boxes_transcripts /content/PICK-pytorch/data/test_data_example/boxes_and_transcripts \
               --images_path /content/PICK-pytorch/data/test_data_example/images/ --output_folder /content/PICK-pytorch/output/test2 \
               --gpu 0 --batch_size 2

Output files are generated, but the files are actually empty. Can you please give me the right direction to test the model? Thank you!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wenwenyucommented, Jul 27, 2020

@sophiajwchoi Theoretically, this model is also compatible with other types of documents. All you need to do is to gather as many data and label as possible.

0reactions
sophiajwchoicommented, Jul 27, 2020

Thank you for replying! The issue has been resolved. Just to confirm, this model can be used to train other form documents.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Output files are empty?
I am currently testing with mouse RNA seq data, and I built my own STAR index for mm10. Every time I run it,...
Read more >
Testing the real filesystem with Jest returns empty results
I am using Jest (in combination with TypeScript in a Node.js environment) to test the real file system (not a mock) if a...
Read more >
NYC output is empty · Issue #822 · istanbuljs/nyc
This is because nyc 's instrumentation /reporting works based the files you require (or import ) in your tests. If you split unit-test.js...
Read more >
Code coverage empty results generated for Unit Test App
"Empty results generated: no binaries were instrumented. make sure the tests ran, required binaries were loaded had matching symbol files, ...
Read more >
Why tail to same file create a empty file, or empty the file?
I try to maintain the last lines of a file, but when tail -n 10 test.txt > test.txt create or empty the file......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found