ssd_tensorflow_traffic_sign_detection icon indicating copy to clipboard operation
ssd_tensorflow_traffic_sign_detection copied to clipboard

Error during run the command "create_pickle.py"

Open TanmoyDL opened this issue 7 years ago • 13 comments

Thank you for your code. Great Work. I got the annotations folder after run the two codes for data processing : extractAnnotations.py and mergeAnnotationFiles.py. The annotation folder contains of 2325 crop images of stop and pedestrian detection sign. Now the problem is occurred when I run pickle file (create_pickle.py) for pickling the data of resize image. I got a pickle file name as "data_raw_400x260.p" but the size is 6 byte. If this problem is not solved then I can't move to next stage. Please help me.

TanmoyDL avatar Sep 15 '17 10:09 TanmoyDL

me too

c1a1o1 avatar Nov 02 '17 01:11 c1a1o1

I get problem in 'create_pickle.py' too . I only renamed the file 'allAnnotations.csv' to 'mergedAnnotations.csv', and I get this problem Traceback (most recent call last): File "create_pickle.py", line 42, in image_files = os.listdir('annotations') FileNotFoundError: [Errno 2] No such file or directory: 'annotations' Can you tell me how to solve this problem ?I am eager with this.

Tian14267 avatar Dec 25 '17 11:12 Tian14267

@Tian14267 Go to the tools folder and run

python extractAnnotations.py copy ../allAnnotations.csv
mv mergeAnnotationFiles.py ../
cd ..
python mergeAnnotationFiles.py frame mergedAnnotations.csv

I was able to run create_pickle.py after running these commands.

jsmith avatar Feb 14 '18 14:02 jsmith

Hello, @TanmoyDL @c1a1o1 @Tian14267 @jacsmith21 @georgesung I have just met the problem "No such file or directory: 'mergeAnnotations.csv'", How should I get this file ? or what is it in the file?

JoeyQWu avatar Jun 10 '18 11:06 JoeyQWu

@JoeyQWu You have to create mergedAnnovations.csv yourself using this command:

python extractAnnotations.py copy ../allAnnotations.csv

jsmith avatar Jun 10 '18 11:06 jsmith

Cannot install the libraries of Image and ImageDraw and ImageFont

BridgeQZH avatar Aug 02 '18 08:08 BridgeQZH

@BridgeQZH Those are all Pillow modules.

Install them with this command:

pip install Pillow

Then you should be able to import them like this:

from PIL import ImageFont, ImageDraw, Image

jsmith avatar Aug 02 '18 12:08 jsmith

@BridgeQZH Those are all Pillow modules.

Install them with this command:

pip install Pillow

Then you should be able to import them like this:

from PIL import ImageFont, ImageDraw, Image

@jsmith still No module named Image.why?i want to know.

wqyolo avatar Jul 24 '19 08:07 wqyolo

@wqyolo I would guess that the PIL library you are importing is not the Pillow library you think it is. I don't have a good answer for you but I would double check that the library you imported and the library that you installed are in fact the same!

jsmith avatar Jul 24 '19 09:07 jsmith

@wqyolo I would guess that the PIL library you are importing is not the Pillow library you think it is. I don't have a good answer for you but I would double check that the library you imported and the library that you installed are in fact the same!

hello.i use windows.how to make it in windows order?could you help me? ln -s $LISA_DATA/resized_images_* . ln -s $LISA_DATA/data_raw_*.p .

wqyolo avatar Jul 24 '19 09:07 wqyolo

Does this help? I don't have access to a Windows machine but this google search might help if the link above doesn't work for you!

Also, Windows Subsystem for Linux might help if you are using Windows 10.

jsmith avatar Jul 24 '19 17:07 jsmith

Thank you for your code. Great Work. I got the annotations folder after run the two codes for data processing : extractAnnotations.py and mergeAnnotationFiles.py. The annotation folder contains of 2325 crop images of stop and pedestrian detection sign. Now the problem is occurred when I run pickle file (create_pickle.py) for pickling the data of resize image. I got a pickle file name as "data_raw_400x260.p" but the size is 6 byte. If this problem is not solved then I can't move to next stage. Please help me.

where are the extractAnnotations.py and mergeAnnotationFiles.py?

Lipurple avatar Dec 17 '19 11:12 Lipurple

See the instructions. You have to "download the LISA Traffic Sign Dataset". From what I recall, the files are somewhere in there.

jsmith avatar Dec 17 '19 13:12 jsmith