Skip to content

Commit 6135e5a

Browse files
fix: updates to notebook
1 parent 04cecb3 commit 6135e5a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/litpose_training_demo.ipynb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@
9898
"# ERROR: pip's dependency resolver does not currently take into account all the packages that are installed.\n",
9999
"# This is fine and can be ignored\n",
100100
"\n",
101-
"!pip install -e ."
101+
"!pip install -e .\n",
102+
"\n",
103+
"# fiftyone patch for ubuntu 22.04, which colab runs as of 07/2023\n",
104+
"!pip install fiftyone-db-ubuntu2204"
102105
]
103106
},
104107
{
@@ -841,7 +844,6 @@
841844
" labeled_mp4_file=labeled_mp4_file,\n",
842845
" trainer=trainer,\n",
843846
" model=model,\n",
844-
" gpu_id=cfg.training.gpu_id,\n",
845847
" data_module=data_module_pred,\n",
846848
" save_heatmaps=cfg.eval.get(\"predict_vids_after_training_save_heatmaps\", False),\n",
847849
" )\n",
@@ -981,6 +983,7 @@
981983
"# Launch the FiftyOne UI\n",
982984
"# - Select the dataset you just built (e.g., `lightning-pose-demo`) on the top left dropdown menu.\n",
983985
"# - If you receive a 403 error, be sure to enable all cookies for this site in your browser\n",
986+
"# - You may need to wait up to a minute for the UI to appear\n",
984987
"fo.launch_app()"
985988
]
986989
},
@@ -1024,7 +1027,7 @@
10241027
"model_names = get_model_folders_vis(model_folders)\n",
10251028
"\n",
10261029
"# get prediction files for each model\n",
1027-
"prediction_files = update_vid_metric_files_list(video=\"test_vid\", model_preds_folder=model_folders)\n",
1030+
"prediction_files = update_vid_metric_files_list(video=\"test_vid\", model_preds_folders=model_folders)\n",
10281031
"\n",
10291032
"# load data\n",
10301033
"dframes_metrics = defaultdict(dict)\n",

0 commit comments

Comments
 (0)