MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / Task

Class Task

deeplabcut/pose_estimation_pytorch/task.py:25–43  ·  view source on GitHub ↗

A task to solve.

Source from the content-addressed store, hash-verified

23
24
25class Task(TaskDataMixin, Enum):
26 """A task to solve."""
27
28 BOTTOM_UP = ("BU", "BottomUp"), "snapshot"
29 DETECT = ("DT", "Detect"), "snapshot-detector"
30 TOP_DOWN = ("TD", "TopDown"), "snapshot"
31 COND_TOP_DOWN = ("CTD", "CondTopDown", "ConditionalTopDown"), "snapshot"
32
33 @classmethod
34 def _missing_(cls, value):
35 if isinstance(value, str):
36 value = value.upper()
37 for member in cls:
38 if value in member.aliases:
39 return member
40 return None
41
42 def __repr__(self) -> str:
43 return f"Task.{self.name}"

Callers 12

adaptation_trainFunction · 0.90
__init__Method · 0.90
get_scorer_nameFunction · 0.90
get_inference_runnersFunction · 0.90
analyze_imagesFunction · 0.90
analyze_image_folderFunction · 0.90
train_networkFunction · 0.90
make_pytorch_pose_configFunction · 0.90
test_build_taskFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_build_taskFunction · 0.72