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

one error #49

Closed
alexliyang opened this issue Dec 20, 2017 · 1 comment
Closed

one error #49

alexliyang opened this issue Dec 20, 2017 · 1 comment

Comments

@alexliyang
Copy link

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?

@alexliyang
Copy link
Author

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.

@wkentaro wkentaro added this to the Closed PRs / Issues for questions milestone May 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants