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
when I use labelme_json_to_dataset , error like the following:
(labelme) F:\labelme>python .\scripts\labelme_json_to_dataset .\mytest\test1.json
Traceback (most recent call last):
File ".\scripts\labelme_json_to_dataset", line 45, in
main()
File ".\scripts\labelme_json_to_dataset", line 30, in main
lbl_viz = utils.draw_label(lbl, img, lbl_names)
File "C:\Anaconda2\envs\labelme\lib\site-packages\labelme\utils.py", line 89, in draw_label
label_viz = label2rgb(label, img, n_labels=len(label_names))
File "C:\Anaconda2\envs\labelme\lib\site-packages\labelme\utils.py", line 57, in label2rgb
lbl_viz = alpha * lbl_viz + (1 - alpha) * img_gray
MemoryError
and how much is the max polygen points?
The text was updated successfully, but these errors were encountered:
I have correct this problem.
It is just memory over.
change the code like the following:
lbl_viz = lbl_viz.astype(np.float32)
lbl_viz*= alpha
lbl_viz+= (1 - alpha) * img_gray
It runs OK.
when I use labelme_json_to_dataset , error like the following:
(labelme) F:\labelme>python .\scripts\labelme_json_to_dataset .\mytest\test1.json
Traceback (most recent call last):
File ".\scripts\labelme_json_to_dataset", line 45, in
main()
File ".\scripts\labelme_json_to_dataset", line 30, in main
lbl_viz = utils.draw_label(lbl, img, lbl_names)
File "C:\Anaconda2\envs\labelme\lib\site-packages\labelme\utils.py", line 89, in draw_label
label_viz = label2rgb(label, img, n_labels=len(label_names))
File "C:\Anaconda2\envs\labelme\lib\site-packages\labelme\utils.py", line 57, in label2rgb
lbl_viz = alpha * lbl_viz + (1 - alpha) * img_gray
MemoryError
and how much is the max polygen points?
The text was updated successfully, but these errors were encountered: