I've installed you library and run this cmd:
labelme2yolo --source-path /tmp --output-path /tmp_res
and got the following error:
from datatypes import (
ImportError: cannot import name 'LabelMe' from 'datatypes'
in tmp dir I have images (jpg) and annotations (json)
Full log:
Traceback (most recent call last):
File "/Users/eolika/.pyenv/versions/3.10.3/bin/labelme2yolo", line 5, in <module>
from labelme2yolo.__main__ import main
File "/Users/eolika/.pyenv/versions/3.10.3/lib/python3.10/site-packages/labelme2yolo/__main__.py", line 13, in <module>
from datatypes import (
ImportError: cannot import name 'LabelMe' from 'datatypes' (/Users/eolika/.pyenv/versions/3.10.3/lib/python3.10/site-packages/datatypes/__init__.py)
To fix the following error, change file __main__.py:
Also its better to mention in README that if you run this command in your working directory, it would not work:
sudo labelme2yolo --source-path /tmp --output-path /tmp_res
Istead of this run:
sudo labelme2yolo --source-path tmp --output-path tmp_res
I've installed you library and run this cmd:
labelme2yolo --source-path /tmp --output-path /tmp_res
and got the following error:in tmp dir I have images (jpg) and annotations (json)
Full log:
To fix the following error, change file
__main__.py
:Also its better to mention in README that if you run this command in your working directory, it would not work:
sudo labelme2yolo --source-path /tmp --output-path /tmp_res
Istead of this run:sudo labelme2yolo --source-path tmp --output-path tmp_res