Skip to content

Commit ea0b562

Browse files
committed
huggingface download link
1 parent 0d78cc1 commit ea0b562

File tree

4 files changed

+26
-18
lines changed

4 files changed

+26
-18
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ This repository contains models, evaluation code, and training code on datasets
1616

1717
**Jul 24th, 2024 Update** Unfortunately, the previous Google Drive link for the dataset is no longer available. Please use this temporary download [link](https://drive.google.com/drive/folders/1RwCSaraEUctIwFgoQXWMKFvW07gM80_3?usp=drive_link). I am planning to host the dataset on Huggingface within a week.
1818

19+
**Jul 26th, 2024 Update** The link has been fixed! Please follow the README to download the dataset. You will need to install 7z to prepare the dataset. For linux, run `sudo apt-get install p7zip-full` to install.
20+
1921
## (1) Setup
2022

2123
### Install packages
@@ -62,6 +64,12 @@ The training set used in the paper can be downloaded [here](https://drive.google
6264
The validation set consists of held-out ProGAN real and fake images, and can be downloaded [here](https://drive.google.com/file/d/1FU7xF8Wl_F8b0tgL0529qg2nZ_RpdVNL/view?usp=sharing). The directory structure is identical to that of the training set.
6365

6466
### Download the dataset
67+
Before downloading, install 7z if needed.
68+
```
69+
# Download script for linux
70+
sudo apt-get install p7zip-full
71+
```
72+
6573
A script for downloading the dataset is as follows:
6674
```
6775
# Download the testset

dataset/test/download_testset.sh

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/bin/bash
2-
DOCUMENT_ID="1z_fD3UKgWQyOTZIBbYSaQ-hz4AzUrLC1"
3-
FINAL_DOWNLOADED_FILENAME="testset.zip"
2+
wget https://huggingface.co/datasets/sywang/CNNDetection/resolve/main/CNN_synth_testset.zip
43

5-
curl -c /tmp/cookies "https://drive.google.com/uc?export=download&id=$DOCUMENT_ID" > /tmp/intermezzo.html
6-
curl -L -b /tmp/cookies "https://drive.google.com$(cat /tmp/intermezzo.html | grep -Po 'uc-download-link" [^>]* href="\K[^"]*' | sed 's/\&/\&/g')" > $FINAL_DOWNLOADED_FILENAME
7-
unzip testset.zip
8-
rm testset.zip
4+
unzip CNN_synth_testset.zip
5+
rm CNN_synth_testset.zip

dataset/train/download_trainset.sh

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
#!/bin/bash
2-
DOCUMENT_ID="1iVNBV0glknyTYGA9bCxT_d0CVTOgGcKh"
3-
FINAL_DOWNLOADED_FILENAME="trainset.zip"
2+
wget https://huggingface.co/datasets/sywang/CNNDetection/resolve/main/progan_train.7z.001 &
3+
wget https://huggingface.co/datasets/sywang/CNNDetection/resolve/main/progan_train.7z.002 &
4+
wget https://huggingface.co/datasets/sywang/CNNDetection/resolve/main/progan_train.7z.003 &
5+
wget https://huggingface.co/datasets/sywang/CNNDetection/resolve/main/progan_train.7z.004 &
6+
wget https://huggingface.co/datasets/sywang/CNNDetection/resolve/main/progan_train.7z.005 &
7+
wget https://huggingface.co/datasets/sywang/CNNDetection/resolve/main/progan_train.7z.006 &
8+
wget https://huggingface.co/datasets/sywang/CNNDetection/resolve/main/progan_train.7z.007 &
9+
wait $(jobs -p)
410

5-
curl -c /tmp/cookies "https://drive.google.com/uc?export=download&id=$DOCUMENT_ID" > /tmp/intermezzo.html
6-
curl -L -b /tmp/cookies "https://drive.google.com$(cat /tmp/intermezzo.html | grep -Po 'uc-download-link" [^>]* href="\K[^"]*' | sed 's/\&/\&/g')" > $FINAL_DOWNLOADED_FILENAME
7-
unzip trainset.zip
8-
rm trainset.zip
11+
7z x progan_train.7z.001
12+
rm progan_train.7z.*
13+
unzip progan_train.zip
14+
rm progan_train.zip

dataset/val/download_valset.sh

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/bin/bash
2-
DOCUMENT_ID="1FU7xF8Wl_F8b0tgL0529qg2nZ_RpdVNL"
3-
FINAL_DOWNLOADED_FILENAME="valset.zip"
2+
wget https://huggingface.co/datasets/sywang/CNNDetection/resolve/main/progan_val.zip
43

5-
curl -c /tmp/cookies "https://drive.google.com/uc?export=download&id=$DOCUMENT_ID" > /tmp/intermezzo.html
6-
curl -L -b /tmp/cookies "https://drive.google.com$(cat /tmp/intermezzo.html | grep -Po 'uc-download-link" [^>]* href="\K[^"]*' | sed 's/\&/\&/g')" > $FINAL_DOWNLOADED_FILENAME
7-
unzip valset.zip
8-
rm valset.zip
4+
unzip progan_val.zip
5+
rm progan_val.zip

0 commit comments

Comments
 (0)