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

Empty csv file on "MOT CSV 1.0" #1096

Closed
Rub21 opened this issue Jan 27, 2020 · 10 comments
Closed

Empty csv file on "MOT CSV 1.0" #1096

Rub21 opened this issue Jan 27, 2020 · 10 comments
Assignees
Labels
Easy to fix The issue is easy to fix and probably it will be release in a next minor release

Comments

@Rub21
Copy link

Rub21 commented Jan 27, 2020

It does not work Actions/Dump annotation/ MOT CSV 1.0, it export a empty file.

@azhavoro
Copy link
Contributor

@Rub21 Hi, what kind of annotation objects are you trying to dump in MOT format?https://github.com/opencv/cvat/blob/04c7669cf585a1aa0e88a4b5e9b45f9ff727630c/cvat/apps/annotation/mot.py#L37-L39 Export of tracks works fine for me.

@Rub21
Copy link
Author

Rub21 commented Jan 29, 2020

@azhavoro , I have a task with a couple of thousands of images, I labeled many of them, and I want to export them in CSV format,the XML works fine the but not in CSV.

@azhavoro
Copy link
Contributor

@Rub21 Have you annotated images with single bounding boxes or tracks?

@Rub21
Copy link
Author

Rub21 commented Jan 29, 2020

some cases are a single box, some other multiple boxes, I think that is the reason why it is empty, what should be the right formats for using the options "MOT CSV 1.0".

@azhavoro
Copy link
Contributor

Do you mean interpolation objects as multiple boxes(https://github.com/opencv/cvat/blob/develop/cvat/apps/documentation/user_guide.md#interpolation-mode-basics)?
MOT exporter dumps only interpolation tracks. You can try the trick - dump your annotation as CVAT XML for video, upload it (be careful: this step will change the current annotations, you can create a new task with the same images or save annotations in the default format witch marked by bold font), after that dump as MOT CSV.

@azhavoro
Copy link
Contributor

azhavoro commented Feb 3, 2020

@Rub21 I will close the issue. Don't hesitate to reopen the issue if you still have questions.

@azhavoro azhavoro closed this as completed Feb 3, 2020
@cstamatopoulos
Copy link

I can confirm that this is the case for me as well.
All I did was add a single bounding box in an image, either by 2 or 4 points.
Saved, and then tried to dump to MOT but the file was empty.
Other file format seem to be fine

@azhavoro
Copy link
Contributor

azhavoro commented Feb 6, 2020

Basically we can represent a single bounding box as a track with with the one box to dump it in MOT format. Is this approach is applicable for you?

@azhavoro azhavoro reopened this Feb 6, 2020
@cstamatopoulos
Copy link

I would say so.
I expect that in the case of more bounding boxes being present in an image additional entries will be present in the csv file.
Frame will be the same, but the identity number is just going to be increasing with the number of bboxes.

@azhavoro azhavoro added Easy to fix The issue is easy to fix and probably it will be release in a next minor release good first issue labels Feb 11, 2020
@azhavoro azhavoro self-assigned this Feb 11, 2020
@zhiltsov-max
Copy link
Contributor

Fixed in #1352

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy to fix The issue is easy to fix and probably it will be release in a next minor release
Projects
None yet
Development

No branches or pull requests

4 participants