You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I opened a prior issue here for getting annotations of unannotated images: #1350 . The solution was very precise and simple, but there seemed to be a problem. I could export the project in other formats but not cvat, which kept throwing an error. Here's the trace:
(restenv) mashrur@dealer-hp:~/This_PC/Work/datumaro-sandbox/test_project_0$ datum project export -f cvat
2020-05-06 00:31:42,240 ERROR: init() missing 1 required positional argument: 'self'
Traceback (most recent call last):
File "/home/mashrur/anaconda3/envs/restenv/bin/datum", line 8, in
sys.exit(main())
File "/home/mashrur/anaconda3/envs/restenv/lib/python3.6/site-packages/datumaro/cli/main.py", line 156, in main
return args.command(args)
File "/home/mashrur/anaconda3/envs/restenv/lib/python3.6/site-packages/datumaro/cli/contexts/project/init.py", line 310, in export_command
extra_args = converter.from_cmdline(args.extra_args)
File "/home/mashrur/anaconda3/envs/restenv/lib/python3.6/site-packages/datumaro/components/cli_plugin.py", line 36, in from_cmdline
parser = cls.build_cmdline_parser()
File "/home/mashrur/anaconda3/envs/restenv/lib/python3.6/site-packages/datumaro/plugins/cvat_format/converter.py", line 373, in build_cmdline_parser
parser = super().init(**kwargs)
TypeError: init() missing 1 required positional argument: 'self'
It works fine for exporting in other formats like voc, coco or datumaro. Since I had a manual workaround, I didn't spend much time on reviewing this, but sometime back I returned to this problem to see if I could figure out what's wrong. build_cmdline_parser isn't taking self and thus calling super().__init()__ in it is a bit strange. After checking out the superclasses of the CvatConverter I figured out a fix:
This is from datumaro>plugins>cvat_format>converter.py:
Now it works fine and exports in cvat format as I wanted.
(restenv) mashrur@dealer-hp:~/This_PC/Work/datumaro-sandbox/test_project_0$ datum project export -f cvat
2020-05-06 00:47:06,574 INFO: Loading the project...
2020-05-06 00:47:06,575 INFO: Exporting the project...
2020-05-06 00:47:06,579 INFO: Project exported to '/home/mashrur/This_PC/Work/datumaro-sandbox/test_project_0/test_project_0-cvat' as 'cvat'
I'm not sure if this is a bug (it could be some problem with my installation/environment?), so I'm again opening an issue to get your opinion on this. If this is indeed a bug, then should I open a pull request?
The text was updated successfully, but these errors were encountered:
Hello. I opened a prior issue here for getting annotations of unannotated images: #1350 . The solution was very precise and simple, but there seemed to be a problem. I could export the project in other formats but not cvat, which kept throwing an error. Here's the trace:
It works fine for exporting in other formats like voc, coco or datumaro. Since I had a manual workaround, I didn't spend much time on reviewing this, but sometime back I returned to this problem to see if I could figure out what's wrong. build_cmdline_parser isn't taking self and thus calling super().__init()__ in it is a bit strange. After checking out the superclasses of the CvatConverter I figured out a fix:
This is from datumaro>plugins>cvat_format>converter.py:
If we change the above to:
Now it works fine and exports in cvat format as I wanted.
I'm not sure if this is a bug (it could be some problem with my installation/environment?), so I'm again opening an issue to get your opinion on this. If this is indeed a bug, then should I open a pull request?
The text was updated successfully, but these errors were encountered: