Skip to content

Commit 725ea3f

Browse files
author
yi.wu
committed
update
1 parent 2e0d851 commit 725ea3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

benchmark/fluid/models/resnet.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ def get_model(args):
142142
else:
143143
dshape = [224, 224, 3]
144144
model = resnet_imagenet
145-
if not args.data_dir:
145+
if not args.data_path:
146146
raise Exception(
147-
"Must specify --data_dir when training with imagenet")
148-
train_reader = imagenet_train(args.data_dir)
149-
test_reader = imagenet_test(args.data_dir)
147+
"Must specify --data_path when training with imagenet")
148+
train_reader = imagenet_train(args.data_path)
149+
test_reader = imagenet_test(args.data_path)
150150

151151
if args.use_reader_op:
152152
filelist = [

0 commit comments

Comments
 (0)