MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / hook_opt

Function hook_opt

utils/misc.py:16–20  ·  view source on GitHub ↗
(model, name)

Source from the content-addressed store, hash-verified

14 return metadata
15
16def hook_opt(model, name):
17 if name in ['cityscapes_fine_panoptic_val', 'ade20k_panoptic_val', 'bdd10k_40_panoptic_val', 'cityscapes_fine_panoptic_val', 'scannet_21_panoptic_val']:
18 model.model.object_mask_threshold = 0.4
19 else:
20 model.model.object_mask_threshold = 0.8
21
22# HACK for evalution
23def hook_switcher(model, name):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected