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

fix: ValueError: RGBA values should be within 0-1 range #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mhd-medfa
Copy link

No description provided.

@YUANMU227
Copy link

File "/home/OpenSeeD/utils/visualizer.py", line 889, in draw_text
color = np.maximum(list(mplc.to_rgb(color)), 0.2)
File "/home/miniconda3/envs/panoptic_seg/lib/python3.10/site-packages/matplotlib-3.8.2-py3.10-linux-x86_64.egg/matplotlib/colors.py", line 514, in to_rgb
return to_rgba(c)[:3]
File "/home/miniconda3/envs/panoptic_seg/lib/python3.10/site-packages/matplotlib-3.8.2-py3.10-linux-x86_64.egg/matplotlib/colors.py", line 302, in to_rgba
rgba = _to_rgba_no_colorcycle(c, alpha)
File "/home/miniconda3/envs/panoptic_seg/lib/python3.10/site-packages/matplotlib-3.8.2-py3.10-linux-x86_64.egg/matplotlib/colors.py", line 405, in _to_rgba_no_colorcycle
raise ValueError("RGBA values should be within 0-1 range")
ValueError: RGBA values should be within 0-1 range

Hello, still has the problem!!

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

Successfully merging this pull request may close these issues.

2 participants