## 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> |
||
---|---|---|
.. | ||
analysis_tools | ||
dataset_converters | ||
deployment | ||
misc | ||
model_converters | ||
torchserve | ||
dist_test.sh | ||
dist_train.sh | ||
slurm_test.sh | ||
slurm_train.sh | ||
test.py | ||
train.py |