Hi!
I recently have been having trouble with the step of “Analyzing Videos”. This time I had this error as code:
Analyzing ...
Config:
{'Task': None,
'TrainingFraction': None,
'all_joints': [[0], [1], [2], [3], [4], [5], [6], [7], [8]],
'all_joints_names': ['head',
'snout',
'forepawright',
'forepawleft',
'trunk',
'hindpawright',
'hindpawleft',
'tailbase',
'tail1'],
'alphavalue': None,
'batch_size': 8,
'bodyparts': None,
'bottomheight': 400,
'colormap': None,
'corner2move2': None,
'crop': True,
'crop_pad': 0,
'croppedtraining': None,
'cropping': None,
'cropratio': 0.4,
'dataset': 'training-datasets/iteration-0/UnaugmentedDataSet_Project04Jun13/Project04_CorderLab95shuffle1.pickle',
'dataset_type': 'multi-animal-imgaug',
'date': None,
'default_augmenter': None,
'default_net_type': None,
'deterministic': False,
'display_iters': 500,
'dotsize': None,
'fg_fraction': 0.25,
'global_scale': 0.8,
'init_weights': '/Users/justinjames/Applications/anaconda3/envs/DLC-CPU/lib/python3.7/site-packages/deeplabcut/pose_estimation_tensorflow/models/pretrained/resnet_v1_50.ckpt',
'intermediate_supervision': False,
'intermediate_supervision_layer': 12,
'iteration': None,
'leftwidth': 400,
'location_refinement': True,
'locref_huber_loss': True,
'locref_loss_weight': 0.05,
'locref_stdev': 7.2801,
'log_dir': 'log',
'max_input_size': 1500,
'mean_pixel': [123.68, 116.779, 103.939],
'metadataset': 'training-datasets/iteration-0/UnaugmentedDataSet_Project04Jun13/Documentation_data-Project04_95shuffle1.pickle',
'min_input_size': 64,
'minconfidence': 0.01,
'minsize': 100,
'mirror': False,
'move2corner': None,
'multi_step': [[0.0001, 7500], [5e-05, 12000], [1e-05, 200000]],
'multianimalproject': None,
'net_type': 'resnet_50',
'nmsradius': 5.0,
'num_joints': 9,
'num_limbs': 12,
'num_outputs': 1,
'numframes2pick': None,
'optimizer': 'adam',
'pafwidth': 20,
'pairwise_huber_loss': False,
'pairwise_loss_weight': 0.1,
'pairwise_predict': False,
'partaffinityfield_graph': [[1, 0],
[1, 2],
[1, 3],
[1, 4],
[1, 7],
[0, 4],
[4, 3],
[4, 2],
[4, 7],
[4, 6],
[4, 5],
[7, 8]],
'partaffinityfield_predict': True,
'pcutoff': None,
'pos_dist_thresh': 17,
'project_path': '/Users/justinjames/Desktop/DeepLabCut/Project04-CorderLab-2020-06-13',
'regularize': False,
'rightwidth': 400,
'save_iters': 10000,
'scale_jitter_lo': 0.5,
'scale_jitter_up': 1.25,
'scoremap_dir': 'test',
'scorer': None,
'shuffle': True,
'skeleton': [],
'skeleton_color': 'black',
'snapshot_prefix': '/Users/justinjames/Desktop/DeepLabCut/Project04-CorderLab-2020-06-13/dlc-models/iteration-0/Project04Jun13-trainset95shuffle1/test/snapshot',
'snapshotindex': None,
'start': None,
'stop': None,
'stride': 8.0,
'topheight': 400,
'video_sets': None,
'weigh_negatives': False,
'weigh_only_present_joints': False,
'weigh_part_predictions': False,
'weight_decay': 0.0001,
'x1': None,
'x2': None,
'y1': None,
'y2': None}
Using snapshot-100 for model /Users/justinjames/Desktop/DeepLabCut/Project04-CorderLab-2020-06-13/dlc-models/iteration-0/Project04Jun13-trainset95shuffle1
Initializing ResNet
Activating extracting of PAFs
Starting to analyze % /Users/justinjames/Desktop/DeepLabCut/Project04-CorderLab-2020-06-13/videos/vid.mp4
/Users/justinjames/Desktop/DeepLabCut/Project04-CorderLab-2020-06-13/videos already exists!
Loading /Users/justinjames/Desktop/DeepLabCut/Project04-CorderLab-2020-06-13/videos/vid.mp4
Traceback (most recent call last):
File "/Users/justinjames/Applications/anaconda3/envs/DLC-CPU/lib/python3.7/site-packages/deeplabcut/gui/analyze_videos.py", line 477, in analyze_videos
robust_nframes=robust,
File "/Users/justinjames/Applications/anaconda3/envs/DLC-CPU/lib/python3.7/site-packages/deeplabcut/pose_estimation_tensorflow/predict_videos.py", line 300, in analyze_videos
robust_nframes=robust_nframes,
File "/Users/justinjames/Applications/anaconda3/envs/DLC-CPU/lib/python3.7/site-packages/deeplabcut/pose_estimation_tensorflow/predict_multianimal.py", line 57, in AnalyzeMultiAnimalVideo
nframes = auxfun_videos.get_nframes_robust(video)
File "/Users/justinjames/Applications/anaconda3/envs/DLC-CPU/lib/python3.7/site-packages/deeplabcut/utils/auxfun_videos.py", line 293, in get_nframes_robust
output = subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
File "/Users/justinjames/Applications/anaconda3/envs/DLC-CPU/lib/python3.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/Users/justinjames/Applications/anaconda3/envs/DLC-CPU/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'ffprobe -i /Users/justinjames/Desktop/DeepLabCut/Project04-CorderLab-2020-06-13/videos/vid.mp4 -v error -count_frames -select_streams v:0 -show_entries stream=nb_read_frames -of default=nokey=1:noprint_wrappers=1' returned non-zero exit status 127.
When I submitted for this error before, I was told it was because the name of my video file or project file was too complex with its characters and whatnot, so I deleted it. I am not too sure why this is occurring but here is an image of my GUI also…
Please let me know how I can resolve this issue as I would greatly appreciate it!