Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
# loss params
_C.LOSS = CN(new_allowed=True)
_C.LOSS.LOSS_NAME = ''
_C.LOSS.MULTI_HEAD_LAMBDA = None
_C.LOSS.MULTI_HEAD_LAMBDA = False
_C.LOSS.FL_GAMMA = 0.0 # focal loss gamma
_C.LOSS.CLS_POS_WEIGHT = 1.0 # classification loss positive weights
_C.LOSS.OBJ_POS_WEIGHT = 1.0 # object loss positive weights
Expand Down
6 changes: 2 additions & 4 deletions lib/models/YOLOP.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def forward(self, x):
cache.append(x if block.index in self.save else None)
out.insert(0,det_out)
return out


def _initialize_biases(self, cf=None): # initialize biases into Detect(), cf is class frequency
# https://arxiv.org/abs/1708.02002 section 3.3
Expand All @@ -586,9 +586,7 @@ def get_net(cfg, **kwargs):
input_ = torch.randn((1, 3, 256, 256))
gt_ = torch.rand((1, 2, 256, 256))
metric = SegmentationMetric(2)
model_out,SAD_out = model(input_)
detects, dring_area_seg, lane_line_seg = model_out
Da_fmap, LL_fmap = SAD_out
detects, dring_area_seg, lane_line_seg = model(input_)
for det in detects:
print(det.shape)
print(dring_area_seg.shape)
Expand Down