yuanyao366 / PRP

Apache License 2.0
40 stars 10 forks source link

Can't run train_predict.py #9

Closed 0xyangl closed 2 years ago

0xyangl commented 2 years ago

Can't run the train_predict.py, after i download the whole file and the datasets, then when i tried to run train_predict.py it stopped. image Is there anything that i do it wrong? Thanks 👍

0xyangl commented 2 years ago

this is the main fileimage i created a folder named "split" with testlist01 and put it into UCF-101 file image

0xyangl commented 2 years ago

目前測試從 train_predict.py 第292行 image 呼叫PredictDataset進入到predict_dataset.py後 運行到 第66行 後predict_dataset.py就卡住沒有運作了 image train_predict.py 則是跑到337行 進入到train才卡住的 image 進入train()後 運行到第100行要進入for迴圈之後就卡住了 image

0xyangl commented 2 years ago

Sorry i'm a student so i might ask some easy question

0xyangl commented 2 years ago

i found out that in predict_dataset.py image the fram_count always gets 0, so it can not break out the while loop. image

yuanyao366 commented 2 years ago

Can the "cv2.VideoCapture(fname)" in line 130 of predict_dataset.py load the video correctly? It seems that the video is not loaded, resulting in frame_count = 0.

0xyangl commented 2 years ago

image After I changing the path of the UCF-101 to image the code start working! Thank you so much for helping me solving the problem!

0xyangl commented 2 years ago

Thanks for helping 👍