open-mmlab/mmsegmentation

预测结果不一致的问题

RS-Hong opened this issue · 1 comments

我使用test.py并设置show_dir对验证集进行预测。同时,我使用init_model初始化模型后,使用inference_model进行预测,取其中的pred_sem_seg作为预测结果。结果发现与test.py得到的预测结果并不一致,这是什么原因呢?

I provided two images, the color image is the GT image and prediction result obtained using the test.by file, and the black and white image is the result obtained using inference_madel. Obviously, there are differences。
the first picutre
000000000008
test_000000000008 png_1
the sceond picture
000000000024
test_000000000024 png_2