Skip to content

Commit

Permalink
Fix pix2pix preprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
soochan-lee committed May 29, 2019
1 parent 7d976dc commit 1cbeb75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ $ python ./scripts/preprocess_pix2pix_data.py \
--src data/cityscapes/original/leftImg8bit \
--dst data/cityscapes/256x256 \
--size 256 \
--random-flip \
--random-rotate
--random-flip
```

### Maps
Expand Down
8 changes: 4 additions & 4 deletions scripts/preprocess_pix2pix_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ def main():
src_dir = os.path.join(args.src, mode)
dst_dir = os.path.join(args.dst, mode)

items = [
os.path.join(src_dir, name)
for name in os.listdir(src_dir)
]
items = []
for path, dir, files in os.walk(src_dir):
for file in files:
items.append(os.path.join(path, file))

index = 0
print('Processing %s...' % mode)
Expand Down

0 comments on commit 1cbeb75

Please sign in to comment.