mmsegmentation/tools
Kedreamix b6ec4ab1e6
Fixes an issue in isaid.py (#3010)
## Motivation

When processing data in the isaid experiment, generated images only have
binary pixel values of 0 or 1 instead of the corresponding class values.
This causes significant interference and prevents subsequent experiments
from proceeding. After investigation, it was found that the issue was
caused by using the wrong image format for saving the images. Saving the
images as PNG resulted in binary pixel values, while saving the images
as BMP resolved the issue and correctly saved the class values.

## Modification

`img_patch.save(save_path_image, format='BMP')`

This code will save the image data as BMP format.

## BC-breaking 

Confirm that the modification does not introduce new issues and test
that the modified code successfully resolves the original problem.

---------

Co-authored-by: 谢昕辰 <xiexinch@outlook.com>
Co-authored-by: CSH <40987381+csatsurnh@users.noreply.github.com>
2023-05-30 14:44:05 +08:00
..
analysis_tools [Feature] Support calculating FLOPs of segmentors (#2706) 2023-03-10 19:25:47 +08:00
dataset_converters Fixes an issue in isaid.py (#3010) 2023-05-30 14:44:05 +08:00
deployment [Refactor] Add pyupgrade pre-commit hook (#2078) 2022-09-19 14:06:29 +08:00
misc [Feature] Support auto import modules from registry. (#2481) 2023-02-23 20:33:17 +08:00
model_converters [Enhancement] Replace MMCV with MMEngine in convert model scripts (#1798) 2022-07-27 17:54:37 +08:00
torchserve [Fix]Remove modules from mmcv.runner and mmcv.utils (#1966) 2022-08-25 15:15:21 +08:00
dist_test.sh
dist_train.sh [Enhancement] Delete seed in dist_train.sh (#1519) 2022-04-28 11:35:10 +08:00
slurm_test.sh
slurm_train.sh
test.py Fix typo in tools/test.py (#2961) 2023-05-05 11:30:07 +08:00
train.py [Fix] Fix accepting an unexpected argument `local-rank` in PyTorch 2.0 (#2812) 2023-03-30 16:43:15 +08:00