forked from salesforce/densecap
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error running test.py: #7
Comments
@duola1970 According to the log "total number of samples (unique videos): 0", it appears to be an issue with your data or feature path. Please double check on that. Related issues: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The errors and configurations are as follows:
D:\Anaconda2\envs\py36\python.exe D:/PythonCode1/densecap-master/test.py --cfgs_file cfgs/anet.yml --densecap_eval_file tools/densevid_eval/evaluate.py --batch_size 1 --start_from checkpoint/anet-2L-e2e-mask/model_epoch_19.t7 --id anet-2L-e2e-mask-19 --val_data_folder validation --learn_mask --gated_mask --cuda
D:/PythonCode1/densecap-master/test.py:82: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
options_yaml = yaml.load(handle)
Namespace(attn_dropout=0.2, batch_size=1, cap_dropout=0.2, cfgs_file='cfgs/anet.yml', cuda=True, d_hidden=2048, d_model=1024, dataset='anet', dataset_file='data/anet/anet_annotations_trainval.json', densecap_eval_file='tools/densevid_eval/evaluate.py', densecap_references=['data/anet/val_1.json', 'data/anet/val_2.json'], dur_file='data/anet/anet_duration_frame.csv', feature_root='dataset/anet/ActivityNet', gated_mask=True, id='anet-2L-e2e-mask-19', image_feat_size=3072, in_emb_dropout=0.1, kernel_list=[1, 2, 3, 4, 5, 7, 9, 11, 15, 21, 29, 41, 57, 71, 111, 161, 211, 251], learn_mask=True, max_prop_num=500, max_sentence_len=20, min_prop_before_nms=200, min_prop_num=50, n_heads=8, n_layers=2, num_workers=2, pos_thresh=0.7, sampling_sec=0.5, slide_window_size=480, slide_window_stride=20, start_from='checkpoint/anet-2L-e2e-mask/model_epoch_19.t7', stride_factor=50, val_data_folder='validation', vis_emb_dropout=0.1)
loading dataset
of words in the vocab: 4563
of sentences in training: 37421, # of sentences in validation: 17505
of training videos: 10009
total number of samples (unique videos): 0
total number of sentences: 0
building model
Initializing weights from checkpoint/anet-2L-e2e-mask/model_epoch_19.t7
avg_prop_num:
0
loader.dataset:
0
Traceback (most recent call last):
File "D:/PythonCode1/densecap-master/test.py", line 256, in
main()
File "D:/PythonCode1/densecap-master/test.py", line 250, in main
recall_area = validate(model, test_loader, args)
File "D:/PythonCode1/densecap-master/test.py", line 202, in validate
print("average proposal number: {}".format(avg_prop_num/len(loader.dataset)))
ZeroDivisionError: division by zero
Process finished with exit code 1
Looking forward to your reply!
The text was updated successfully, but these errors were encountered: