Download original/tools/visualize.m from dronefreak/Penn-Action: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/datasets/dronefreak/Penn-Action/resolve/main/original/tools/visualize.m
- Command line
-
hf download hf://datasets/dronefreak/Penn-Action/original/tools/visualize.m
-
curl -L -o visualize.m https://huggingface.co/datasets/dronefreak/Penn-Action/resolve/main/original/tools/visualize.m
515 Bytes
| % visualize the action video sequences with the joint annotation | |
| for i = 1:100:2326 | |
| % read the i_th annotation | |
| annotation = load(sprintf('labels/%04d',i)); | |
| % create point display of human joints | |
| vol = CreatePointLightDisplay(annotation); | |
| % display every 3 frame of the video | |
| % and show joint annotation side-by-side | |
| for j = 1:3:annotation.nframes | |
| im = imread(sprintf('frames/%04d/%06d.jpg',i,j)); | |
| imshow([im repmat(vol(:,:,j),[1,1,3])]); | |
| pause(0.1); | |
| end | |
| end |