Skip to content
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

Error during run the command "create_pickle.py" #21

Open
TanmoyDL opened this issue Sep 15, 2017 · 13 comments
Open

Error during run the command "create_pickle.py" #21

TanmoyDL opened this issue Sep 15, 2017 · 13 comments

Comments

@TanmoyDL
Copy link

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.

@c1a1o1
Copy link

c1a1o1 commented Nov 2, 2017

me too

@Tian14267
Copy link

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.

@jsmith
Copy link

jsmith commented Feb 14, 2018

@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.

@JoeyQWu
Copy link

JoeyQWu commented Jun 10, 2018

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?

@jsmith
Copy link

jsmith commented Jun 10, 2018

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

python extractAnnotations.py copy ../allAnnotations.csv

@BridgeQZH
Copy link

Cannot install the libraries of Image and ImageDraw and ImageFont

@jsmith
Copy link

jsmith commented Aug 2, 2018

@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

@wqyolo
Copy link

wqyolo commented Jul 24, 2019

@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.

@jsmith
Copy link

jsmith commented Jul 24, 2019

@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!

@wqyolo
Copy link

wqyolo commented Jul 24, 2019

@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 .

@jsmith
Copy link

jsmith commented Jul 24, 2019

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.

@Lipurple
Copy link

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?

@jsmith
Copy link

jsmith commented Dec 17, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants