-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to output the text in the picture to a text file with your project like the picture on homepage #24
Comments
I think you should see tutorial (Part 3: detection baseline). After you run cd ../detection && python3 merge_results.py (and have run all code above it), you will get detection results in detection/products/detections.jsonl. |
If I want to use the existing models, are all the images shared(image-test, image-trainval) necessary? |
I think you could download only testset but not download trainval. Annotation files must be downloaded. |
Then how about using our own images? Should still download the image-test or just turn ours into 2048x2048x3(and put them into the correct place)? |
@kdzmwl |
When I run |
|
We didn't change your code, just put a picture of a zip file in image/test (a total of seven zip) and changed info.json. The code eval.py runs without error, but runs merge_results.py When he told us that there was no chinese.0.txt, we looked at products/result and found that only Chinese.00.txt was associated with this. And in the end we want to throw our own pictures and run out of the results, then shouldn't this be the case? |
I have 4 GPU on my server. What should I change in eval.py can make it run with 4GPU ? (It run at only one GPU now),Thanks! |
We decide which GPU to use in ctw-baseline/detection/eval.py Line 48 in f7b3467
Why your code use only 1 GPU? Did git diff indicates that there is no change?
|
And output filename is determined in https://github.com/yuantailing/ctw-baseline/blob/master/detection/eval.py#L30 , the number is formatted to string by |
But I print it and it just output" chinese.0.data", and it's correct . I download a new from your github and it's output is chinese.00.txt , too. |
And we found there are no cate_id in chinese.xx.txt,what should i do ?Thanks |
According to yuantailing/darknet@fe0a91a#diff-265d49678e2dbc64f1aeb120e056f2bfR176 , Did you clone the right version of darknet? It is defined in https://github.com/yuantailing/ctw-baseline/blob/master/.gitmodules (clone from yuantailing/darknet and switch to branch ctw). |
The Eorrr is in ctw-baseline/detection/merge_results.py Line 44 in f7b3467
3045513_2_1_1 0.012630 95.435127 23.111725 150.123352 120.032806 in chinese.xx.txt
|
It seems you are using a wrong version of darknet. |
I use the darknet in your github ... |
But, why no cate_id ... Could you run to this line? https://github.com/yuantailing/darknet/blob/ctw/examples/detector.c#L176 (commit id is 801409731a46b072b8ee11f6f2acfa29cb16f165: https://github.com/yuantailing/darknet/blob/801409731a46b072b8ee11f6f2acfa29cb16f165/examples/detector.c#L176 ) |
It can't |
Thanks for your share,it's good . But there are too many file for a new, and i just want that use it like this :input a picture with some text in it and output the text into a text file via the trained model in your project. Which py file should i use and what should i do ? Thanks !
The text was updated successfully, but these errors were encountered: