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

Function prompt_switch

tasks/automatic_mask_generator.py:35–50  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

33
34
35def prompt_switch(p):
36 p = int(p)
37 if p == 1:
38 return 3
39 if p == 2:
40 return 2
41 if p == 3:
42 return 0
43 if p == 4:
44 return 4
45 if p == 5:
46 return 1
47 if p == 6:
48 return 5
49 else:
50 raise NotImplementedError
51
52
53class SemanticSamAutomaticMaskGenerator:

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected