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

Solution : Connection refused #108

Open
dippadappam opened this issue Sep 14, 2024 · 0 comments
Open

Solution : Connection refused #108

dippadappam opened this issue Sep 14, 2024 · 0 comments

Comments

@dippadappam
Copy link

Ps: I was working on google collab.
from google.colab import files

Upload the script

uploaded = files.upload()

import os

Assuming the uploaded file is named 'faceforensics_download_v4 (1) .py'

If you know the file name will always be 'faceforensics_download_v4 (1) .py', you can use that directly

original_filename = 'faceforensics_download_v4 (1) .py'

Open the file to read and modify

with open('/content/' + original_filename, 'r') as file:
lines = file.readlines()

Create a new file to write the modified content

with open('/content/download_FaceForensics.py', 'w') as file:
for line in lines:
# Skip lines asking for user confirmation
if 'Press any key to continue, or CTRL-C to exit.' in line:
continue
if 'By pressing any key to continue you confirm that you have agreed '
'to the FaceForensics terms of use as described at:' in line:
continue
# Write other lines to the new file
file.write(line)

Run the modified script with the --server parameter

!python3 /content/download_FaceForensics.py /content/faceforensics -d all -c c23 -t videos --server EU2

double check your filename and change if necessary and there you go.

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

1 participant