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

Why label_colors in .labelmerc not work in linux #1338

Open
shunmian opened this issue Oct 11, 2023 · 1 comment
Open

Why label_colors in .labelmerc not work in linux #1338

shunmian opened this issue Oct 11, 2023 · 1 comment
Labels
bug issue

Comments

@shunmian
Copy link

shunmian commented Oct 11, 2023

Provide environment information

/home/miniconda3/envs/labelme/bin/python
Python 3.12.0
labelme 5.2.1

What OS are you using?

ubuntu 20.04

Describe the Bug

I have added

label_colors: {
  '1': [255,0,0],
  '2': [0,0,255]
}

to .labelmerc for customize label color assignment as suggested by issue 712.
It doesn't work in ubuntu 20.04 (the labelme shows all green color for every label) while it works in macOS. Any guidance?

Expected Behavior

The label_colors should work in linux.

To Reproduce

No response

@shunmian shunmian added the bug issue label Oct 11, 2023
@sc0v0ne
Copy link

sc0v0ne commented Oct 17, 2023

Good evening @shunmian, to be able to change the colors you will have to change more than one parameter in the .labelmerc file.

flags: null
label_flags: null
labels: [AB, BC, CD]
file_search: null
sort_labels: true
validate_label: null

default_shape_color: [0, 255, 0]
shape_color: manual  # null, 'auto', 'manual'
shift_auto_shape_color: 0
label_colors: {AB: [255,21,0], BC: [12,23,255], CD: [12,225,125]}

labels: Define the labels
shape_color: Change auto to manual, if not another color will be defined.
label_colors: Then you pass the dictionary with the name of the label defined in the previous variable 'labels', then define the colors.

image

config:

image

Also note that labelme supports these Python versions.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue
Projects
None yet
Development

No branches or pull requests

2 participants