From 5d78821383e034e5fe5e7fe08182353bbdbb840f Mon Sep 17 00:00:00 2001 From: QuantumNovice <43876848+QuantumNovice@users.noreply.github.com> Date: Tue, 14 Jan 2020 13:06:13 +0500 Subject: [PATCH 1/2] Create download_dataset.bat --- cyclegan/download_dataset.bat | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 cyclegan/download_dataset.bat diff --git a/cyclegan/download_dataset.bat b/cyclegan/download_dataset.bat new file mode 100644 index 0000000000..b399a5f65c --- /dev/null +++ b/cyclegan/download_dataset.bat @@ -0,0 +1,40 @@ +@echo off +if not exist datasets mkdir datasets +cd datasets +set FILE=%1 + +set URL=https://people.eecs.berkeley.edu/~taesung_park/CycleGAN/datasets/%FILE%.zip + + +for %%x in ( ae_photos + apple2orange + summer2winter_yosemite + horse2zebra + monet2photo + cezanne2photo + ukiyoe2photo + vangogh2photo + maps + cityscapes + cityscapes + facades + iphone2dslr_flower + ae_photos + ) do ( + echo %%x + if %%x == %FILE% (goto download) else ( + echo Dataset Not Found + echo Available datasets are: apple2orange, summer2winter_yosemite, horse2zebra, monet2photo, cezanne2photo, ukiyoe2photo, vangogh2photo, maps, cityscapes, facades, iphone2dslr_flower, ae_photos + ) + ) + +goto exit + +:download +echo Downloading %FILE% +wget %URL% +tar -x -f %FILE%.zip +del %FILE%.zip + +:exit +cd.. From f8a2fda57ea214698a4c60d12d4a1653d8343c37 Mon Sep 17 00:00:00 2001 From: QuantumNovice <43876848+QuantumNovice@users.noreply.github.com> Date: Tue, 14 Jan 2020 13:07:51 +0500 Subject: [PATCH 2/2] Update download_dataset.bat Downloads dataset on Windows10 from command line. `tar` is comes packaged with windows. `wget` needs to be installed. --- cyclegan/download_dataset.bat | 1 - 1 file changed, 1 deletion(-) diff --git a/cyclegan/download_dataset.bat b/cyclegan/download_dataset.bat index b399a5f65c..04599cc2c1 100644 --- a/cyclegan/download_dataset.bat +++ b/cyclegan/download_dataset.bat @@ -27,7 +27,6 @@ for %%x in ( ae_photos echo Available datasets are: apple2orange, summer2winter_yosemite, horse2zebra, monet2photo, cezanne2photo, ukiyoe2photo, vangogh2photo, maps, cityscapes, facades, iphone2dslr_flower, ae_photos ) ) - goto exit :download