-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Problem1. Other palette colors are applied / Problem2. Train 2 classes #2197
Comments
Hi: PALETTE = [[0, 0, 0], [128, 0, 0], [0, 128, 0], [128, 128, 0], [0, 0, 128],
[128, 0, 128], [0, 128, 128], [128, 128, 128], [64, 0, 0],
[192, 0, 0], [64, 128, 0], [192, 128, 0], [64, 0, 128],
[192, 0, 128], [64, 128, 128], [192, 128, 128], [0, 64, 0],
[128, 64, 0], [0, 192, 0], [128, 192, 0], [0, 64, 128]] Could you clearify which class in which dataset is not identical? Thanks. (Perhaps I ignored some differences.) A2: This error usually happened by wrong match up with Best, |
Hi
A2:
reduce_zero_label = True / num_classes = 1
|
A1: If you modified palette in your dataset class, the palette code uses is from that dataset class rather than mmseg.core.evaluation.class_names.py. A2: It is because it is not binary segmentation task, could you try to set |
I have a little question about your dataset, does it only have 2 kinds of labels? Did you merge all classes expect flash_light? |
--> A1: I also modified CLASSES and PALETTE in voc.py --> A2: The variable was set like that on my first trial, and the result is shown at the top. |
Problem 1 ---> I use dataset with 7 labels Datasets were merged only those contained in the label. |
A1: |
question2: |
Hi, I encountered the Q2 either, could you please tell me how to solve this problem? Thank you so much. |
yes,i can tell you how to save this problem.
Клоун
***@***.***
…------------------ 原始邮件 ------------------
发件人: "open-mmlab/mmsegmentation" ***@***.***>;
发送时间: 2023年1月12日(星期四) 晚上9:01
***@***.***>;
***@***.******@***.******@***.***>;
主题: Re: [open-mmlab/mmsegmentation] Problem1. Other palette colors are applied / Problem2. Train 2 classes (Issue #2197)
Hi Thank you for replying A1 I modified CLASSES and PALETTE for my dataset. And the order of CLASSES and PALETTE is same in the mmseg.datasets.voc.py and mmseg.core.evaluation.class_names.py All classes are not identical except 'background'.
CLASSES = ('_background_', 'fire_extinguisher', 'straight_valve', 'fire_extinguisher_box', 'emergency_light', 'flash_light', 'circular_valve') PALETTE = [[0, 0, 0], [128, 0, 128], [128, 0, 0], [0, 128, 128], [128, 128, 0], [0, 0, 128], [0, 128, 0]]
A2: reduce_zero_label = False / num_classes = 1
+--------------+-------+-------+ | Class | IoU | Acc | +--------------+-------+-------+ | _background_ | 81.09 | 100.0 | | flash_light | nan | nan | +--------------+-------+-------+ 2022-10-18 10:56:56,032 - mmseg - INFO - Summary: 2022-10-18 10:56:56,032 - mmseg - INFO - +-------+-------+-------+ | aAcc | mIoU | mAcc | +-------+-------+-------+ | 100.0 | 81.09 | 100.0 | +-------+-------+-------+
reduce_zero_label = True / num_classes = 1
+--------------+-----+-----+ | Class | IoU | Acc | +--------------+-----+-----+ | _background_ | 0.0 | nan | | flash_light | nan | nan | +--------------+-----+-----+ 2022-10-18 11:03:57,927 - mmseg - INFO - Summary: 2022-10-18 11:03:57,927 - mmseg - INFO - +------+------+------+ | aAcc | mIoU | mAcc | +------+------+------+ | nan | 0.0 | nan | +------+------+------+
question2: I encountered a problem similar to yours, but it has been successfully solved. Have you solved your problem? I can share it if necessary.
Hi, I encountered the Q2 either, could you please tell me how to solve this problem? Thank you so much.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
sorry, i can't figure out your email address. Could you please write the solution here? |
Sorry, there are other things now. Let me give you a link. You can try it.
https://blog.csdn.net/hasque2019/article/details/128626958?spm=1001.2014.3001.5501
Клоун
***@***.***
…------------------ 原始邮件 ------------------
发件人: "open-mmlab/mmsegmentation" ***@***.***>;
发送时间: 2023年1月12日(星期四) 晚上9:12
***@***.***>;
***@***.******@***.******@***.***>;
主题: Re: [open-mmlab/mmsegmentation] Problem1. Other palette colors are applied / Problem2. Train 2 classes (Issue #2197)
sorry, i can't figure out your email address. Could you please write the solution here?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Sorry, I was busy with other work yesterday. Have you solved your problem? |
Closing the issue, as there is no activity for a while. |
* Fix typo in StableDiffusionInpaintPipeline * Add embedded prompt handling --------- Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Problem 1.
Train was successful. But there is a weird thing.
When I run demo file with trained model, It shows different colors defined in scripts('mmseg.core.evaluation.class_names.py' and 'mmseg.datasets.voc.py')
Problem 2.
When I trained with custom datasets(num_classes=2 --- 'background', 'emergency_light'), emergency_light's IoU / ACC were '0.0' / 'nan'.
You know how to solve it?
The text was updated successfully, but these errors were encountered: