Skip to content

Commit bddc146

Browse files
authored
Merge pull request #12 from LWShowTime/latest_branch
解决重影问题的issue & SOD配置文件调整修改。
2 parents 7baf080 + bdf0076 commit bddc146

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

configs/train/segformer/train_segformer_evp_sod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ optimizer:
5858
name: adamw
5959
args:
6060
lr: 2.e-4
61-
epoch_max: 20
61+
epoch_max: 50
6262
multi_step_lr:
6363
milestones: [1]
6464
gamma: 0.1

demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
img = img.cuda()
6464

6565
pred = model.encoder.forward_dummy(img.unsqueeze(0))
66-
pred = torch.sigmoid(pred).view(1, h, w).cpu()
66+
pred = torch.sigmoid(pred).view(1, w, h).cpu()
6767

6868
transforms.ToPILImage()(pred).save(args.output)
6969

0 commit comments

Comments
 (0)