Skip to content

Commit

Permalink
mod
Browse files Browse the repository at this point in the history
  • Loading branch information
hitokun-s committed Apr 2, 2016
1 parent 1f8f855 commit 7d46b4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions imagenet/food_hack/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def mnist_predict(x, model):
optimizer = optimizers.MomentumSGD(lr=0.01, momentum=0.9)
optimizer.setup(model)

serializers.load_npz(os.path.dirname(__file__) + 'model', model)
serializers.load_npz(os.path.dirname(__file__) + 'state', optimizer)
serializers.load_npz(os.path.join(os.path.dirname(__file__), 'model'), model)
serializers.load_npz(os.path.join(os.path.dirname(__file__), 'state'), optimizer)


mean_image = pickle.load(open("mean.npy", 'rb'))
Expand Down

0 comments on commit 7d46b4e

Please sign in to comment.