NVIDIA / semantic-segmentation

Nvidia Semantic Segmentation monorepo
BSD 3-Clause "New" or "Revised" License
1.76k stars 388 forks source link

an image only 'road', 'sidewalk' label #177

Closed Shaiken closed 2 years ago

Shaiken commented 2 years ago

my enviorment GPU V100 docker : nvcr.io/nvidia/pytorch:20.12-py3 NVIDIA-SMI 470.63.01 Driver Version: 470.63.01 CUDA Version: 11.4

sorry ask this question, i try edit cityscapes.py and nullloader.py, adjust num_classes = 19 to num_classes = 2 and try edit cityscapes_labels.py label id,

loss rate: [epoch 0], [iter 11 / 986], [train main loss 1.809400], [lr 0.005000] [batchtime 1.47] ... [epoch 5], [iter 528 / 986], [train main loss 0.749431], [lr 0.002222] [batchtime 1.41] ...

i look my best image prediction just one color ...

image

how solve it

Shaiken commented 2 years ago

i found problem, if i wnat ignore a lot area, need inset a class not ignore val [255]