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

Function main

deeplabcut/__main__.py:14–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def main():
15 try:
16 import_module("PySide6")
17
18 lite = False
19 except ModuleNotFoundError:
20 lite = True
21
22 # if module is executed directly (i.e. `python -m deeplabcut.__init__`) launch straight into the GUI
23 if not lite:
24 print("Starting GUI...")
25 from deeplabcut.gui.launch_script import launch_dlc
26
27 launch_dlc()
28 else:
29 print(
30 "You installed DLC lite, thus GUI's cannot be used. If you need GUI support please: pip install"
31 "'deeplabcut[gui]''"
32 )
33
34
35if __name__ == "__main__":

Callers 1

__main__.pyFile · 0.70

Calls 1

launch_dlcFunction · 0.90

Tested by

no test coverage detected