Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#34 from heavengate/update_paddle_io
Browse files Browse the repository at this point in the history
update paddle.io
  • Loading branch information
heavengate authored Apr 14, 2020
2 parents 4bf3662 + 84362df commit d8541ea
Show file tree
Hide file tree
Showing 82 changed files with 805 additions and 3,617 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
*.json
output*
*checkpoint*
build
dist
hapi.egg-info
279 changes: 0 additions & 279 deletions callbacks.py

This file was deleted.

2 changes: 1 addition & 1 deletion cyclegan/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import paddle.fluid as fluid


class Cityscapes(fluid.io.Dataset):
class Cityscapes(paddle.io.Dataset):
def __init__(self, root_path, file_path, mode='train', return_name=False):
self.root_path = root_path
self.file_path = file_path
Expand Down
4 changes: 2 additions & 2 deletions cyclegan/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ def main():
if FLAGS.resume:
g.load(FLAGS.resume)

loader_A = fluid.io.DataLoader(
loader_A = paddle.io.DataLoader(
data.DataA(),
places=place,
shuffle=True,
return_list=True,
batch_size=FLAGS.batch_size)
loader_B = fluid.io.DataLoader(
loader_B = paddle.io.DataLoader(
data.DataB(),
places=place,
shuffle=True,
Expand Down
Loading

0 comments on commit d8541ea

Please sign in to comment.