-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
json_to_dataset.py #529
Comments
Please run |
Fixed via 967f360f4dfff4857a8ed1212adbb7f812a65f54 Now |
Thank you very much for your timely help!~谢谢♪(・ω・)ノ |
Hi [WARNING] This script is aimed to demonstrate how to convert theJSON file to a single image dataset, and not to handlemultiple JSON files to generate a real-use dataset. (json_to_dataset.py:15) |
What’s the version of labelme and ingviz?
On Mon, 16 Mar 2020 at 14:37, Abhiroop Talasila ***@***.***> wrote:
Hi
This issue persists even after installing imgviz and pillow
My code output:
$ labelme_json_to_dataset /home/user/Documents/new.json
[WARNING] This script is aimed to demonstrate how to convert theJSON file
to a single image dataset, and not to handlemultiple JSON files to generate
a real-use dataset. (json_to_dataset.py:15)
Traceback (most recent call last):
File "/usr/local/bin/labelme_json_to_dataset", line 11, in
sys.exit(main())
File
"/usr/local/lib/python3.6/dist-packages/labelme/cli/json_to_dataset.py",
line 61, in main
label=lbl, img=imgviz.asgray(img), label_names=label_names, loc='rb'
File "/usr/local/lib/python3.6/dist-packages/imgviz/label.py", line 160,
in label2rgb
legend, aabb1, aabb2, fill=(255, 255, 255)
File "/usr/local/lib/python3.6/dist-packages/imgviz/draw.py", line 188, in
rectangle
xy=(x1, y1, x2, y2), fill=fill, outline=outline, width=width
TypeError: rectangle() got an unexpected keyword argument 'width'
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#529 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABA4LE4OKAXOODUX2BKGNL3RHY2TVANCNFSM4J76APSA>
.
--
Kentaro Wada / 和田 健太郎
https://wkentaro.com <http://wkentaro.com>
|
Hi Thank you and hope this helps others! |
labelme: error: unrecognized arguments: -2}' |
when i use json_to_dataset.py home/xxx.json, it can't work, and it will go wrong
�[33m[WARNING]�[0m This script is aimed to demonstrate how to convert theJSON file to a single image dataset, and not to handlemultiple JSON files to generate a real-use dataset. (�[1mjson_to_dataset.py�[0m:16)
Traceback (most recent call last):
File "c:\users\xxx\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\xxx\anaconda3\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\xxx\Anaconda3\Scripts\labelme_json_to_dataset.exe_main.py", line 9, in
File "c:\users\xxx\anaconda3\lib\site-packages\labelme\cli\json_to_dataset.py", line 59, in main
label=lbl, img=img, label_names=label_names, loc='rb'
File "c:\users\xxxanaconda3\lib\site-packages\imgviz\label.py", line 113, in label2rgb
legend, aabb1, aabb2, fill=(255, 255, 255))
File "c:\users\xxx\anaconda3\lib\site-packages\imgviz\draw.py", line 181, in rectangle
xy=(x1, y1, x2, y2), fill=fill, outline=outline, width=width
TypeError: rectangle() got an unexpected keyword argument 'width'
The text was updated successfully, but these errors were encountered: