Visitar URL original
DeepLabCut 3.0 - Updates to COLABs and Notebooks for the PyTorch Engine by n-poulsen · Pull Request #2868 · DeepLabCut/DeepLabCut · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update superanimal notebook
  • Loading branch information
Niels Poulsen
Niels Poulsen committed Feb 7, 2025
commit 8a53a06cbed64d74a2e654b3661de69d0f8a9ea0
22 changes: 9 additions & 13 deletions examples/COLAB/COLAB_YOURDATA_SuperAnimal.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"outputId": "290a589f-a063-4933-d315-e13052ec1024"
},
"outputs": [],
"source": [
"!pip install \"git+https://github.com/DeepLabCut/DeepLabCut.git@pytorch_dlc#egg=deeplabcut[modelzoo]\""
]
"source": "!pip install \"deeplabcut>=3\""
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -83,8 +81,6 @@
"from deeplabcut.pose_estimation_pytorch.apis import (\n",
" superanimal_analyze_images,\n",
")\n",
"from deeplabcut.core.weight_init import WeightInitialization\n",
"from deeplabcut.core.engine import Engine\n",
"from deeplabcut.modelzoo import build_weight_init\n",
"from deeplabcut.modelzoo.utils import (\n",
" create_conversion_table,\n",
Expand Down Expand Up @@ -541,7 +537,7 @@
" Shuffles=[imagenet_transfer_learning_shuffle],\n",
" net_type=f\"top_down_{model_name}\",\n",
" detector_type=detector_name,\n",
" engine=Engine.PYTORCH,\n",
" engine=deeplabcut.Engine.PYTORCH,\n",
" userfeedback=False,\n",
")"
]
Expand Down Expand Up @@ -600,7 +596,7 @@
" epochs=50,\n",
" save_epochs=10,\n",
" batch_size=64, # if you get a CUDA OOM error when training on a GPU, reduce to 32, 16, ...!\n",
" display_iters=10,\n",
" displayiters=10,\n",
" shuffle=imagenet_transfer_learning_shuffle,\n",
")"
]
Expand Down Expand Up @@ -673,7 +669,7 @@
" config_path,\n",
" from_shuffle=imagenet_transfer_learning_shuffle,\n",
" shuffles=[superanimal_transfer_learning_shuffle],\n",
" engine=Engine.PYTORCH,\n",
" engine=deeplabcut.Engine.PYTORCH,\n",
" net_type=f\"top_down_{model_name}\",\n",
" detector_type=detector_name,\n",
" weight_init=weight_init,\n",
Expand Down Expand Up @@ -736,7 +732,7 @@
" epochs=50,\n",
" save_epochs=10,\n",
" batch_size=64, # if you get a CUDA OOM error when training on a GPU, reduce to 32, 16, ...!\n",
" display_iters=10,\n",
" displayiters=10,\n",
" shuffle=superanimal_transfer_learning_shuffle,\n",
")"
]
Expand Down Expand Up @@ -959,7 +955,7 @@
" config_path,\n",
" from_shuffle=imagenet_transfer_learning_shuffle,\n",
" shuffles=[superanimal_naive_finetune_shuffle],\n",
" engine=Engine.PYTORCH,\n",
" engine=deeplabcut.Engine.PYTORCH,\n",
" net_type=f\"top_down_{model_name}\",\n",
" detector_type=detector_name,\n",
" weight_init=weight_init,\n",
Expand Down Expand Up @@ -993,7 +989,7 @@
" epochs=50,\n",
" save_epochs=10,\n",
" batch_size=64, # if you get a CUDA OOM error when training on a GPU, reduce to 32, 16, ...!\n",
" display_iters=10,\n",
" displayiters=10,\n",
" shuffle=superanimal_naive_finetune_shuffle,\n",
")"
]
Expand Down Expand Up @@ -1092,7 +1088,7 @@
" config_path,\n",
" from_shuffle=imagenet_transfer_learning_shuffle,\n",
" shuffles=[superanimal_memory_replay_shuffle],\n",
" engine=Engine.PYTORCH,\n",
" engine=deeplabcut.Engine.PYTORCH,\n",
" net_type=f\"top_down_{model_name}\",\n",
" detector_type=detector_name,\n",
" weight_init=weight_init,\n",
Expand Down Expand Up @@ -1126,7 +1122,7 @@
" epochs=50,\n",
" save_epochs=10,\n",
" batch_size=64, # if you get a CUDA OOM error when training on a GPU, reduce to 32, 16, ...!\n",
" display_iters=10,\n",
" displayiters=10,\n",
" shuffle=superanimal_memory_replay_shuffle,\n",
")"
]
Expand Down