.. _streamlit: ########## Evaluation ########## Beyond providing access to loss values throughout training with Tensorboard, the Lightning Pose package also offers several diagnostic tools to compare the performance of trained models on labeled frames and unlabeled videos. Labeled Frame Diagnostics ========================= Analyze predictions of one or more networks on the `train/test/val` images. Run the following command from inside the ``lightning-pose/lightning_pose/apps`` directory (make sure you have activated your conda environment): .. code-block:: console streamlit run labeled_frame_diagnostics.py -- --model_dir The only argument needed is ``--model_dir``, which tells the app where to find model directories. It should contain model directories of the type ``YYYY-MM-DD/HH-MM-SS``. The app shows: * plot of a selected metric (e.g. pixel errors, confidences) for each network and each body part, using bar/box/violin/etc plots. * scatterplot of a selected metric between two networks Video Diagnostics ================= Visualizes multiple networks' predictions on a test video. From within ``lightning-pose/lightning_pose/apps``, run: .. code-block:: console streamlit run video_diagnostics.py -- --model_dir where ``--model_dir`` is explained above. The app shows: * timeseries of predictions/confidences/losses of a selected keypoint (x and y coordinate) for each network * boxplot/histogram of confidences/losses for each network and each body part