text-detection-fots.pytorch icon indicating copy to clipboard operation
text-detection-fots.pytorch copied to clipboard

where is u.zip

Open daddydrac opened this issue 4 years ago • 4 comments

where is u.zip?

daddydrac avatar Apr 17 '20 01:04 daddydrac

It's generated by zip -jmq runs/u.zip res/*

Wovchena avatar Apr 17 '20 08:04 Wovchena

@Wovchena, error: ZIP entry not valid: res_1.txt, how do I fix?

python3 test.py --images-folder test/ --output-folder result/ --checkpoint epoch_582_checkpoint.pt && zip -jmq runs/u.zip result/* && python2 script.py -g=gt.zip -s=runs/u.zip

Epoch  582
Test: 100%|████████████████████████████████| 1/1 [00:03<00:00,  3.79s/it, 1.png]

zip I/O error: No such file or directory
zip error: Could not create output file (runs/u.zip)

root@71dce785c0f9:/app/app/textRx# python3 test.py --images-folder test/ --output-folder result/ --checkpoint epoch_582_checkpoint.pt && zip -jmq runs/u.zip result/* && python2 script.py -g=gt.zip -s=runs/u.zip

Epoch  582
Test: 100%|████████████████████████████████| 1/1 [00:03<00:00,  3.79s/it, 1.png]

Error!
ZIP entry not valid: res_1.txt

daddydrac avatar Apr 17 '20 13:04 daddydrac

@Wovchena friendly bump ^

daddydrac avatar Apr 18 '20 18:04 daddydrac

I don't know what causes the problem.

It works for me with one image in the test folder. May be you have modified something before running. The strange thing is that for the first run you provided, the error is different like if there are no res_*.txt generated at all. But on the second run it is able to find res_1.txt. May be something is corrupted: try inspecting your result folder and its content after running python3 test.py --images-folder test/ --output-folder result/ --checkpoint epoch_582_checkpoint.pt. If it is fine just zip it manually.

Wovchena avatar Apr 19 '20 12:04 Wovchena