Spaces:
Build error
Build error
File size: 303 Bytes
0ab9a32 |
1 2 3 4 5 6 7 8 |
from segmenter.base_segmenter import BaseSegmenter
def build_segmenter(type, device, args=None, model=None):
if type == 'base':
return BaseSegmenter(device, args.segmenter_checkpoint, reuse_feature=not args.disable_reuse_features, model=model)
else:
raise NotImplementedError() |