Skip to content

Commit 7eb3b1a

Browse files
committed
minor fix
1 parent ac0019c commit 7eb3b1a

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

demo_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ python3 -u test.py \
2828
--cfg config/ade20k-resnet50dilated-ppm_deepsup.yaml \
2929
DIR $MODEL_PATH \
3030
TEST.result ./ \
31-
TEST.suffix _epoch_20.pth
31+
TEST.checkpoint epoch_20.pth

eval_multipro.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ def worker(cfg, gpu_id, start_idx, end_idx, result_queue):
109109
weights=cfg.MODEL.weights_decoder,
110110
use_softmax=True)
111111

112-
net_encoder.features[0][0].weight.data = net_encoder.features[0][0].weight.data[:, (2,1,0), :, :] * 255.
113-
114112
crit = nn.NLLLoss(ignore_index=-1)
115113

116114
segmentation_module = SegmentationModule(net_encoder, net_decoder, crit)

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def unique(ar, return_index=False, return_inverse=False, return_counts=False):
108108
return ret
109109

110110

111-
def colorEncode(labelmap, colors, mode='BGR'):
111+
def colorEncode(labelmap, colors, mode='RGB'):
112112
labelmap = labelmap.astype('int')
113113
labelmap_rgb = np.zeros((labelmap.shape[0], labelmap.shape[1], 3),
114114
dtype=np.uint8)

0 commit comments

Comments
 (0)