StevenLiuWen / ano_pred_cvpr2018

Official implementation of Paper Future Frame Prediction for Anomaly Detection -- A New Baseline, CVPR 2018
433 stars 126 forks source link

Problem about trainsets of ShanghaiTech #52

Closed ZiruiYan closed 3 years ago

ZiruiYan commented 3 years ago

I found that all videos from ped1, Avenue and the test set of ShanghaiTech of science and technology were extracted into frames. However, Shanghaitech's trainsets are in video format. How to extract it?

ZiruiYan commented 3 years ago

Use ffmpeg -r 1 -i 'input_file' -qmin 1 - qscale:v 1 -r 1 'result_file' This will give what you want.

abhishekaich27 commented 3 years ago

@ZiruiYan were you able to make your code work with this preprocessing of Shanghai-Tech training dataset?

ZiruiYan commented 3 years ago

Yes, but I didn’t carefully adjust the parameters to achieve high accuracy on that dataset. So I'm not 100% sure that the training set and the test set are extracted with the same parameter.

BenedictGreen commented 3 years ago

@ZiruiYan 你好,请问使用ffmpeg把video处理成图像时,参数‘-r’选择多少合适呀,我设置成每秒提取一帧,总共的图片量只有700m,应该不太合适,

abhishekaich27 commented 3 years ago

@BenedictGreen I have created two scripts that can help you extract these frames according to the author's settings. Let me know if you need them (share your email ID).

BenedictGreen commented 3 years ago

@abhishekaich27 Thxs for your reply. I'd appreciate if you send me the scripts.'kuaikuaizhang9700@163.com', that's my e-mail.

zzzzyq-18 commented 2 years ago

Excuse me, are you how many frames 1 second extraction

BenedictGreen commented 2 years ago

12 frames per second. But i'm not sure it is correct.Maybe this processing has produced too many redundant frames

Smallwhite999 commented 2 years ago

Is there a complete code? On data set preprocessing

zdl12345678 commented 1 year ago

@BenedictGreen I have created two scripts that can help you extract these frames according to the author's settings. Let me know if you need them (share your email ID).

Can you share a copy with me? Thank you very much, 840771073@qq.com

fanzz1208 commented 1 year ago

2563992699@qq.com 谢谢

hhhh1230kvj commented 1 year ago

@BenedictGreen I have created two scripts that can help you extract these frames according to the author's settings. Let me know if you need them (share your email ID).

1418319084@qq.com,thanks

HannoChen commented 1 year ago

@BenedictGreen I have created two scripts that can help you extract these frames according to the author's settings. Let me know if you need them (share your email ID).

Could you share a copy with me, thanks very much! email: hichen.yh@qq.com

kelummadusanka commented 1 year ago

@BenedictGreen I have created two scripts that can help you extract these frames according to the author's settings. Let me know if you need them (share your email ID).

@abhishekaich27 can you share a script with me also, thanks ikelummadusanka@gmail.com

ck-w-0 commented 8 months ago

@BenedictGreen I have created two scripts that can help you extract these frames according to the author's settings. Let me know if you need them (share your email ID).

can you share me alse,thx wck1916@gmail.com

LeoGeralt commented 3 months ago

@BenedictGreen我创建了两个脚本,可以帮助您根据作者的设置提取这些帧。如果您需要它们,请告诉我(分享您的电子邮件 ID)。

Can you also share it with me?Thank you! 1749953604@qq.com