Skip to content
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

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

Open
azamani272 opened this issue Sep 14, 2023 · 12 comments

Comments

@azamani272
Copy link

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
Copy link

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
Copy link
Author

azamani272 commented Sep 23, 2023 via email

@AnsonCNS
Copy link

AnsonCNS commented Sep 23, 2023

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
Copy link
Author

azamani272 commented Sep 23, 2023 via email

@AnsonCNS
Copy link

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
Copy link
Author

azamani272 commented Sep 23, 2023 via email

@azamani272
Copy link
Author

azamani272 commented Sep 23, 2023 via email

@AnsonCNS
Copy link

powershell or cmd. Any terminal

@azamani272
Copy link
Author

azamani272 commented Sep 23, 2023 via email

@chenchuang11
Copy link

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

@AnsonCNS
Copy link

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

@donyafiuji
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants