Skip to content

Commit 1b2a42b

Browse files
deruyter92C-Achard
authored andcommitted
update single-animal guide: images --> figures
1 parent 296f8f9 commit 1b2a42b

1 file changed

Lines changed: 32 additions & 12 deletions

File tree

docs/standardDeepLabCut_UserGuide.md

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,14 @@ Choose your interface below to launch DeepLabCut:
5050
python -m deeplabcut
5151
```
5252

53-
```{image} https://images.squarespace-cdn.com/content/v1/57f6d51c9f74566f55ecf271/1572824438905-QY9XQKZ8LAJZG6BLPWOQ/ke17ZwdGBToddI8pDm48kIIa76w436aRzIF_cdFnEbEUqsxRUqqbr1mOJYKfIPR7LoDQ9mXPOjoJoqy81S2I8N_N4V1vUb5AoIIIbLZhVYxCRW4BPu10St3TBAUQYVKcLthF_aOEGVRewCT7qiippiAuU5PSJ9SSYal26FEts0MmqyMIhpMOn8vJAUvOV4MI/guilaunch.jpg?format=1000w
53+
```{figure} https://images.squarespace-cdn.com/content/v1/57f6d51c9f74566f55ecf271/1572824438905-QY9XQKZ8LAJZG6BLPWOQ/ke17ZwdGBToddI8pDm48kIIa76w436aRzIF_cdFnEbEUqsxRUqqbr1mOJYKfIPR7LoDQ9mXPOjoJoqy81S2I8N_N4V1vUb5AoIIIbLZhVYxCRW4BPu10St3TBAUQYVKcLthF_aOEGVRewCT7qiippiAuU5PSJ9SSYal26FEts0MmqyMIhpMOn8vJAUvOV4MI/guilaunch.jpg?format=1000w
5454
---
55+
name: fig-gui-launch
56+
alt: The DeepLabCut Project Manager GUI after launch
5557
width: 60%
5658
align: center
5759
---
60+
The DeepLabCut Project Manager GUI.
5861
```
5962

6063
### Python API
@@ -350,15 +353,19 @@ deeplabcut.extract_frames(config_path, "manual")
350353
```
351354

352355
The user can use the *Load Video* button to load one of the videos in the project configuration file, use the scroll
353-
bar to navigate across the video and grab a frame or a range of frames to extract the frame(s).
356+
bar to navigate across the video and grab a frame or a range of frames to extract the frame(s)
357+
(see {numref}`fig-manual-frame-selection`).
354358
The user can also look at the extracted frames and e.g. delete frames (from the directory) that are too similar before
355359
reloading the set and then manually annotating them.
356360

357-
```{image} https://static1.squarespace.com/static/57f6d51c9f74566f55ecf271/t/5c71bfbc71c10b4a23d20567/1550958540700/cropMANUAL.gif?format=750w
361+
```{figure} https://static1.squarespace.com/static/57f6d51c9f74566f55ecf271/t/5c71bfbc71c10b4a23d20567/1550958540700/cropMANUAL.gif?format=750w
358362
---
363+
name: fig-manual-frame-selection
364+
alt: Manual frame selection using the extract_frames GUI
359365
width: 70%
360366
align: center
361367
---
368+
Manual frame selection using the `extract_frames` GUI.
362369
```
363370

364371
##### API Docs
@@ -719,7 +726,7 @@ data. This will reduce your training time.
719726
720727
```{figure} images/box2-single.png
721728
---
722-
name: config-box2
729+
name: pose-cfg-box2
723730
alt: Box 2 - Single Animal TensorFlow Configuration File Glossary
724731
align: center
725732
---
@@ -969,11 +976,14 @@ deeplabcut.filterpredictions(
969976

970977
Here is an example of how this can be applied to a video:
971978

972-
```{image} https://static1.squarespace.com/static/57f6d51c9f74566f55ecf271/t/5ccc8b8ae6e8df000100a995/1556908943893/filter_example-01.png?format=1000w
979+
```{figure} https://static1.squarespace.com/static/57f6d51c9f74566f55ecf271/t/5ccc8b8ae6e8df000100a995/1556908943893/filter_example-01.png?format=1000w
973980
---
981+
name: fig-filter-example
982+
alt: Example output of filterpredictions applied to a video
974983
width: 70%
975984
align: center
976985
---
986+
Example output of `filterpredictions` applied to a video.
977987
```
978988

979989
##### API Docs
@@ -995,7 +1005,8 @@ ______________________________________________________________________
9951005

9961006
The plotting components of this toolbox utilize matplotlib. Therefore, these plots can easily be customized by
9971007
the end user.
998-
We also provide a function to plot the trajectory of the extracted poses across the analyzed video, as shown in the example below.
1008+
We also provide a function to plot the trajectory of the extracted poses across the analyzed video
1009+
(see {numref}`fig-trajectory-frame` and {numref}`fig-trajectory-plots`).
9991010

10001011
##### Code example
10011012

@@ -1009,20 +1020,26 @@ It creates a folder called `plot-poses` (in the directory of the video). The plo
10091020
vs. time, likelihoods vs time, the x- vs. y- coordinate of the body parts, as well as histograms of consecutive
10101021
coordinate differences. These plots help the user to quickly assess the tracking performance for a video. Ideally, the
10111022
likelihood stays high and the histogram of consecutive coordinate differences has values close to zero (i.e. no jumps in
1012-
body part detections across frames). Here are example plot outputs on a demo video (left):
1023+
body part detections across frames). Example outputs are shown below.
10131024

1014-
```{image} https://images.squarespace-cdn.com/content/v1/57f6d51c9f74566f55ecf271/1559946148685-WHDO5IG9MMCHU0T7RC62/ke17ZwdGBToddI8pDm48kEOb1vFO6oRDmR8SXh4iL21Zw-zPPgdn4jUwVcJE1ZvWEtT5uBSRWt4vQZAgTJucoTqqXjS3CfNDSuuf31e0tVG1gXK66ltnjKh4U2immgm7AVAdfOWODmXNLQLqbLRZ2DqWIIaSPh2v08GbKqpiV54/file0289.png?format=500w
1025+
```{figure} https://images.squarespace-cdn.com/content/v1/57f6d51c9f74566f55ecf271/1559946148685-WHDO5IG9MMCHU0T7RC62/ke17ZwdGBToddI8pDm48kEOb1vFO6oRDmR8SXh4iL21Zw-zPPgdn4jUwVcJE1ZvWEtT5uBSRWt4vQZAgTJucoTqqXjS3CfNDSuuf31e0tVG1gXK66ltnjKh4U2immgm7AVAdfOWODmXNLQLqbLRZ2DqWIIaSPh2v08GbKqpiV54/file0289.png?format=500w
10151026
---
1027+
name: fig-trajectory-frame
1028+
alt: Example video frame with tracked body parts overlaid
10161029
height: 240px
10171030
align: center
10181031
---
1032+
Example video frame with tracked body parts overlaid.
10191033
```
10201034

1021-
```{image} https://images.squarespace-cdn.com/content/v1/57f6d51c9f74566f55ecf271/1559939762886-CCB0R107I2HXAHZLHECP/ke17ZwdGBToddI8pDm48kNeA8e5AnyMqj80u4_mB0hV7gQa3H78H3Y0txjaiv_0fDoOvxcdMmMKkDsyUqMSsMWxHk725yiiHCCLfrh8O1z5QPOohDIaIeljMHgDF5CVlOqpeNLcJ80NK65_fV7S1UcpboONgOQYHLzaUWEI1Ir9fXt7Ehyn7DSgU3GCReAA-ZDqXZYzu2fuaodM4POSZ4w/plot_poses-01.png?format=1000w
1035+
```{figure} https://images.squarespace-cdn.com/content/v1/57f6d51c9f74566f55ecf271/1559939762886-CCB0R107I2HXAHZLHECP/ke17ZwdGBToddI8pDm48kNeA8e5AnyMqj80u4_mB0hV7gQa3H78H3Y0txjaiv_0fDoOvxcdMmMKkDsyUqMSsMWxHk725yiiHCCLfrh8O1z5QPOohDIaIeljMHgDF5CVlOqpeNLcJ80NK65_fV7S1UcpboONgOQYHLzaUWEI1Ir9fXt7Ehyn7DSgU3GCReAA-ZDqXZYzu2fuaodM4POSZ4w/plot_poses-01.png?format=1000w
10221036
---
1037+
name: fig-trajectory-plots
1038+
alt: Example plot_trajectories output
10231039
height: 250px
10241040
align: center
10251041
---
1042+
Example `plot_trajectories` output: body part coordinates, likelihoods, and consecutive displacement histograms.
10261043
```
10271044

10281045
##### API Docs
@@ -1069,8 +1086,8 @@ deeplabcut.create_labeled_video(
10691086
)
10701087
```
10711088

1072-
You can also optionally add a skeleton to connect points and/or add a history of points for visualization. To set the
1073-
"trailing points" you need to pass `trailpoints`:
1089+
You can also optionally add a skeleton to connect points and/or add a history of points for visualization
1090+
(see {numref}`fig-skeleton-trail`). To set the "trailing points" you need to pass `trailpoints`:
10741091

10751092
```python
10761093
deeplabcut.create_labeled_video(
@@ -1131,11 +1148,14 @@ The best quality videos are created when `fastmode=False` is passed. Therefore,
11311148
`trailpoints` and `draw_skeleton` are used, we **highly** recommend you also pass `fastmode=False`!
11321149
```
11331150

1134-
```{image} https://images.squarespace-cdn.com/content/v1/57f6d51c9f74566f55ecf271/1559935526258-KFYZC8BDHK01ZIDPNVIX/ke17ZwdGBToddI8pDm48kJbosy0LGK_KqcAZRQ_Qph1Zw-zPPgdn4jUwVcJE1ZvWQUxwkmyExglNqGp0IvTJZUJFbgE-7XRK3dMEBRBhUpzkC6kmM1CbNgeHQVxASNv0wiXikHv274BIFe4LR7nd1rKmAka4uxYMJ9FupazBoaU/mouse_skel_trail.gif?format=750w
1151+
```{figure} https://images.squarespace-cdn.com/content/v1/57f6d51c9f74566f55ecf271/1559935526258-KFYZC8BDHK01ZIDPNVIX/ke17ZwdGBToddI8pDm48kJbosy0LGK_KqcAZRQ_Qph1Zw-zPPgdn4jUwVcJE1ZvWQUxwkmyExglNqGp0IvTJZUJFbgE-7XRK3dMEBRBhUpzkC6kmM1CbNgeHQVxASNv0wiXikHv274BIFe4LR7nd1rKmAka4uxYMJ9FupazBoaU/mouse_skel_trail.gif?format=750w
11351152
---
1153+
name: fig-skeleton-trail
1154+
alt: Labeled video with skeleton overlay and trailing points
11361155
width: 40%
11371156
align: center
11381157
---
1158+
Labeled video with skeleton overlay and trailing points (`draw_skeleton=True`, `trailpoints=10`).
11391159
```
11401160

11411161
This function has various other parameters, in particular the user can set the `colormap`, the `dotsize`, and

0 commit comments

Comments
 (0)