DeepLabCut Workflow Cont.
Create a Python Script#
- Create a python script for your DLC project.
- Copy and paste the following script, then make sure to update
cfgandvideofile_pathwith the appropiate paths.
- When you are done, hit
CTRL+O,ENTER,CTRL+Xto save and exit.
Create a GPU Job#
- Now we will submit the python script you created earlier as a GPU job. To do this, create a new file
<project_name>.slurm.
- Copy and paste the following script, then update
<username>and<project_name>to your username and project folder name.
- Save
CTRL+OENTERand exitCTRL+X.
Submit Your GPU Job#
- To submit the job, run:
Check Job Status#
- To check your submitted job status, run:
Job state (ST) codes: R - Running, PD - Pending: Job is awaiting resource allocation.
If you want to monitor the job, you can add watch before the squeue command (i.e., $ watch squeue -u <username>).