Skip to content

Commit

Permalink
update (PaddlePaddle#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilong12 authored Jul 17, 2020
1 parent ce760c9 commit 069d8b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plsc/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import errno
import json
import os
import math
import shutil
import subprocess
import sys
Expand Down Expand Up @@ -142,7 +143,7 @@ def __init__(self):
self.log_period = 200

self.input_info = [{'name': 'image',
'shape': [-1, 3, 224, 224],
'shape': [-1, 3, 112, 112],
'dtype': 'float32'},
{'name': 'label',
'shape':[-1, 1],
Expand Down Expand Up @@ -957,9 +958,8 @@ def train(self):
self.load_checkpoint(executor=exe, main_program=origin_prog)

if self.train_reader is None:
train_reader = paddle.batch(reader.arc_train(
self.dataset_dir, self.num_classes),
batch_size=self.train_batch_size)
train_reader = reader.arc_train(
self.dataset_dir, self.num_classes)
else:
train_reader = self.train_reader

Expand Down

0 comments on commit 069d8b0

Please sign in to comment.