ondyari / FaceForensics

Github of the FaceForensics dataset
http://niessnerlab.org/projects/roessler2018faceforensics.html
Other
2.37k stars 538 forks source link

Getting an error when executing the code related to downloading the database #100

Open azamani272 opened 1 year ago

azamani272 commented 1 year ago

Hello When I run the faceforensics_download.py code I get the following error:

============================================== usage: untitled0.py [-h] [-d {original_youtube_videos,original_youtube_videos_info,original,DeepFakeDetection_original,Deepfakes,DeepFakeDetection,Face2Face,FaceShifter,FaceSwap,NeuralTextures,all}] [-c {raw,c23,c40}] [-t {videos,masks,models}] [-n NUM_VIDEOS] [--server {EU,EU2,CA}] output_path untitled0.py: error: the following arguments are required: output_path An exception has occurred, use %tb to see the full traceback.

SystemExit: 2

please guide me

AnsonCNS commented 1 year ago

Read the error message.

It says output path is required.

So if you just want the dataset to download into your current directory, you do this

untitled0.py .

Where the . means the current directory.

But you should look into specifying other options too, otherwise it will download the complete dataset which is multiple TB.

azamani272 commented 1 year ago

Hi There is no variable in the code to set the output_path parameter. I can't fix this error. The code is not commented and it is not possible to check. Please guide me

On Thu, Sep 21, 2023 at 15:25 Anson Chan @.***> wrote:

Read the error message.

It says output path is required.

So if you just want the dataset to download into your current directory, you do this

untitled0.py .

Where the . means the current directory.

But you should look into specifying other options too, otherwise it will download the complete dataset which is multiple TB.

— Reply to this email directly, view it on GitHub https://github.com/ondyari/FaceForensics/issues/100#issuecomment-1729421194, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVJBEFKAYOMF42VVQR3RTM3X3QTKNANCNFSM6AAAAAA4YPGWWI . You are receiving this because you authored the thread.Message ID: @.***>

AnsonCNS commented 1 year ago

You do not need to modify any code. You just need to run the following command in a terminal. Assuming you named your download script to be untitled0.py

python untitled0.py .

There is no variable in the code to set the output_path parameter.

That's not true, it's defined in line 151. Otherwise, you might have the wrong python file.

    output_path = args.output_path
azamani272 commented 1 year ago

Hello. I just run the code. I will not change anything specific in the code. But I get the error that has already been attached. Could this error be related to insufficient storage space? How many gigs is the whole database? What part of the code should I change to reduce the size of database videos?

On Sat, Sep 23, 2023 at 13:17 Anson Chan @.***> wrote:

You do not need to modify any code. You just need to run the following command in a terminal.

untitled0.py .

There is no variable in the code to set the output_path parameter.

That's not true, it's defined in line 151. Otherwise, you might have the wrong python file.

output_path = args.output_path

— Reply to this email directly, view it on GitHub https://github.com/ondyari/FaceForensics/issues/100#issuecomment-1732269357, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVJBEFKZBS7ZCDTELIQYXUTX32VZRANCNFSM6AAAAAA4YPGWWI . You are receiving this because you authored the thread.Message ID: @.***>

AnsonCNS commented 1 year ago

Have a read of their README page.

The entire dataset is multiple TB in size.

But I get the error that has already been attached.

I don't know what you mean by that, posting the error message would be helpful.

Try this to only download a sample of 10 videos from the Face2Face subset.

python untitled0.py . -d Face2Face -c c23 -t videos --num_videos 10 --server EU2
azamani272 commented 1 year ago

I run this code in the Spider programming environment from the Anaconda software package under Windows. And I get the following error There is 100 gigs of space in the place where the code is executed The error image is attached. I changed the information about some parameters to reduce the download size

‫‪Anson Chan‬‏ @.***‬‏> در تاریخ شنبه ۲۳ سپتامبر ۲۰۲۳ ساعت ۱۵:۱۱ نوشت:‬

Have a read of their README page https://github.com/ondyari/FaceForensics/blob/master/dataset/README.md.

The entire dataset is multiple TB in size.

But I get the error that has already been attached.

I don't know what you mean by that, posting the error message would be helpful.

Try this to only download a sample of 10 videos from the Face2Face subset.

python untitled0.py . -d Face2Face -c c23 -t videos --num_videos 10 --server EU2

— Reply to this email directly, view it on GitHub https://github.com/ondyari/FaceForensics/issues/100#issuecomment-1732290088, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVJBEFJRRLDN3HR7SIU3ZP3X33DHJANCNFSM6AAAAAA4YPGWWI . You are receiving this because you authored the thread.Message ID: @.***>

azamani272 commented 1 year ago

I read the file README page but I don't know in which terminal I should enter the commands. please guide me. I work in Windows environment

‫‪Alireza Zamani‬‏ @.***‬‏> در تاریخ شنبه ۲۳ سپتامبر ۲۰۲۳ ساعت ۱۵:۲۶ نوشت:‬

I run this code in the Spider programming environment from the Anaconda software package under Windows. And I get the following error There is 100 gigs of space in the place where the code is executed The error image is attached. I changed the information about some parameters to reduce the download size

‫‪Anson Chan‬‏ @.***‬‏> در تاریخ شنبه ۲۳ سپتامبر ۲۰۲۳ ساعت ۱۵:۱۱ نوشت:‬

Have a read of their README page https://github.com/ondyari/FaceForensics/blob/master/dataset/README.md.

The entire dataset is multiple TB in size.

But I get the error that has already been attached.

I don't know what you mean by that, posting the error message would be helpful.

Try this to only download a sample of 10 videos from the Face2Face subset.

python untitled0.py . -d Face2Face -c c23 -t videos --num_videos 10 --server EU2

— Reply to this email directly, view it on GitHub https://github.com/ondyari/FaceForensics/issues/100#issuecomment-1732290088, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVJBEFJRRLDN3HR7SIU3ZP3X33DHJANCNFSM6AAAAAA4YPGWWI . You are receiving this because you authored the thread.Message ID: @.***>

AnsonCNS commented 1 year ago

powershell or cmd. Any terminal

azamani272 commented 1 year ago

Thank you very much, it was fixed

‫‪Anson Chan‬‏ @.***‬‏> در تاریخ شنبه ۲۳ سپتامبر ۲۰۲۳ ساعت ۱۵:۳۵ نوشت:‬

powershell or cmd. Any terminal

— Reply to this email directly, view it on GitHub https://github.com/ondyari/FaceForensics/issues/100#issuecomment-1732294270, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVJBEFKPZ36JX24HUWR7PRTX33GANANCNFSM6AAAAAA4YPGWWI . You are receiving this because you authored the thread.Message ID: @.***>

chenchuang11 commented 1 year ago

hello, I did not found faceforensics_download.py file in this project, could you tell me why, thank you very much

AnsonCNS commented 1 year ago

You have to contact the authors, as written in the README

donyafiuji commented 10 months ago

hi, I try to download the dataset using the faceforensics_download_v4.py. but i cant connect to any of the servers. it refuses my request!