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

incorrect string ends (CLRF instead of LF) #6

Open
dpogosov opened this issue Mar 29, 2017 · 20 comments
Open

incorrect string ends (CLRF instead of LF) #6

dpogosov opened this issue Mar 29, 2017 · 20 comments
Assignees

Comments

@dpogosov
Copy link

Data was labeled with Euclid. However darknet (your repo) said that images could not be opened. I changed CLRF to LF at the end of strings (every label) and now it works.

@prabindh prabindh self-assigned this Mar 29, 2017
@prabindh
Copy link
Owner

Could you also share - if this is behaviour is on Linux, or on Windows ?

@dpogosov
Copy link
Author

I checked only on Linux

@prabindh
Copy link
Owner

Could you pls check the latest now ?

@dpogosov
Copy link
Author

dpogosov commented Mar 29, 2017 via email

@dpogosov
Copy link
Author

dpogosov commented Apr 3, 2017

if I try to check the labelled images and use buttons 'next' or right arrow, it gives the error:
Exception in Tkinter callback
Traceback (most recent call last):
File "d:\Users\Denis\Anaconda35\lib\tkinter_init_.py", line 1550, in call
return self.func(*args)
File "euclid_old.py", line 528, in nextImage
self.saveLabel()
File "euclid_old.py", line 406, in saveLabel
f.write('%s' %CLASSES[self.classLabelList[labelCnt]])
TypeError: list indices must be integers or slices, not str

Notes:

  1. Both old and new versions have such behaviour
  2. When I use window with the number of image and 'go' button it works
  3. Error appears only if labels ended with LF (CRLF - no error)
  4. Tested on Windows 10

@prabindh
Copy link
Owner

prabindh commented Apr 3, 2017

Is it possible that KITTI mode is being selected instead of YOLO ? This error should not occur if same mode is being used. The CRLF change was done only for Yolo.

@dpogosov
Copy link
Author

dpogosov commented Apr 3, 2017 via email

@prabindh
Copy link
Owner

prabindh commented Apr 3, 2017

What I mean is, the CRLF change was done only on the train.txt (list of images), not on Image-Label files (containing the coordinates).

@dpogosov
Copy link
Author

dpogosov commented Apr 3, 2017 via email

@prabindh
Copy link
Owner

prabindh commented Apr 3, 2017

Ok, this must be another issue. Could you share the offending file ?

@dpogosov
Copy link
Author

dpogosov commented Apr 3, 2017 via email

@prabindh
Copy link
Owner

prabindh commented Apr 3, 2017 via email

@dpogosov
Copy link
Author

dpogosov commented Apr 3, 2017 via email

@prabindh
Copy link
Owner

prabindh commented Apr 3, 2017

Yes I did, do not have it, I just checked. Not in spam as well. Could you pls resend to prabindh.sundareson_a t _ g m a i l c om address ?

@prabindh
Copy link
Owner

prabindh commented Apr 6, 2017

Could you resend the files ?

@dpogosov
Copy link
Author

dpogosov commented Apr 6, 2017

files.zip

@mursalal
Copy link

Hello! Can this tool convert dataset from Yolo format to Kitii?

@prabindh
Copy link
Owner

@mursalal You mean, there are a set of label files in Yolo format, that need to be converted to Kitti without doing any change ?

@mursalal
Copy link

@prabindh yes

@prabindh
Copy link
Owner

It cannot, but can be done with trivial modifications to the code. Please raise a separate issue.

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

3 participants