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

Added batch script to download dataset for windows user. #205

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions cyclegan/download_dataset.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
@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..