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.

WHERE ARE gt_img_1001.txt ... gt_img_6000.txt FILES?!

See original GitHub issue

I cloned the project, downloaded the pretrained model and the training data, unzipped them then got a folder named TEXTVOC that contains other folders (Annotations, ImagesSets and JPEGImages). I placed TEXTVOC in the data folder and edited the paths in the split_label.py as following: path = '/home/hani/Desktop/text-detection-ctpn/data/TEXTVOC/JPEGImages' gt_path = '/home/hani/Desktop/text-detection-ctpn/data/TEXTVOC/Annotations'. But, when I run it python lib/prepare_training_data/split_label.py, I got this error:

/home/hani/Desktop/text-detection-ctpn/data/TEXTVOC/JPEGImages/img_1001.jpg
Traceback (most recent call last):
  File "lib/prepare_training_data/split_label.py", line 34, in <module>
    with open(gt_file, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/hani/Desktop/text-detection-ctpn/data/TEXTVOC/Annotations/gt_img_1001.txt'

As it is shown, the gt_img_1001.txt is not missing, which means whether the gt_path is wrong whether those files do not exist. I looked into all folders and I didn’t find any file starting with gt_* PS: I also run this command: ln -s TEXTVOC VOCdevkit2007, so I didn’t miss anything that should be done.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
yharshavardhan97commented, Nov 6, 2018

@maky-hnou , Sure. Thank you.

1reaction
yharshavardhan97commented, Nov 5, 2018

I think each .txt should contain the bounding box coordinates of the respective image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import or export text (.txt or .csv) files - Microsoft Support
Go to File > Open and browse to the location that contains the text file. · Select Text Files in the file type...
Read more >
TXT - Text Document File - File Format Docs
TXT extension represents a text document that contains plain text in the form of lines. Paragraphs in a text document are recognized by...
Read more >
How to open TXT files - IONOS
On Windows, you have the option between the programs Editor and WordPad. If you want to use another program, right-click on the file...
Read more >
Import a text (.txt) file into Microsoft Excel
Import a text (.txt) file into Microsoft Excel. Save the text file to a folder on your computer. 1. Open Microsoft Excel. 2....
Read more >
Mime type for .txt files? - Stack Overflow
I´m trying to share a .txt file with share intent. If I set "text/plain" as mime type, it reads the content like text...
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