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

Is there a link to download oscar_split_ViT-B_32_train_512.pkl with wget? #14

Open
vinevix opened this issue Jan 11, 2023 · 6 comments
Open

Comments

@vinevix
Copy link

vinevix commented Jan 11, 2023

No description provided.

@buxiangzhiren
Copy link
Owner

You can use wget download the file from Google Driver directly, the code is "wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1CVsEQ5YRH3b6ZVRr7gY7ni7Ge1TgHvuM' -O- | sed -rn 's/.confirm=([0-9A-Za-z_]+)./\1\n/p')&id=1CVsEQ5YRH3b6ZVRr7gY7ni7Ge1TgHvuM" -O FILENAME && rm -rf /tmp/cookies.txt"
where FILENAME denotes your destination directory. More information about this command is in "https://medium.com/@acpanjan/download-google-drive-files-using-wget-3c2c025a8b99".

@vinevix
Copy link
Author

vinevix commented Jan 12, 2023 via email

@buxiangzhiren
Copy link
Owner

  1. The code of "os.environ" does not require the sudo right. I think it is workable if you add it in the .py file.
  2. The issue of wget seems like that you cannot connect to docs.google.com.

@vinevix
Copy link
Author

vinevix commented Jan 12, 2023 via email

@buxiangzhiren
Copy link
Owner

buxiangzhiren commented Jan 12, 2023

You could use curl to download the file instead of wget, the commands are
" curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=1CVsEQ5YRH3b6ZVRr7gY7ni7Ge1TgHvuM" > /dev/null" and " curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=1CVsEQ5YRH3b6ZVRr7gY7ni7Ge1TgHvuM" -o FILENAME"

@buxiangzhiren
Copy link
Owner

You could use curl to download the file instead of wget, the commands are " curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=1CVsEQ5YRH3b6ZVRr7gY7ni7Ge1TgHvuM" > /dev/null" and " curl -Lb ./cookie "[https://drive.google.com/uc?export=download&confirm=awk](https://drive.google.com/uc?export=download&confirm=%60awk) '/download/ {print $NF}' ./cookie&id=1CVsEQ5YRH3b6ZVRr7gY7ni7Ge1TgHvuM" -o FILENAME"

First, you should make sure that you can connect to google. Maybe you need VPN or set up a proxy internet.

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

2 participants