Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ruotianluo authored Oct 15, 2018
1 parent ab5f364 commit f793097
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from .ShowTellModel import ShowTellModel
from .FCModel import FCModel
from .OldModel import ShowAttendTellModel, AllImgModel
from .Att2inModel import Att2inModel
from .AttModel import *
from .TransformerModel import TransformerModel

Expand Down Expand Up @@ -58,4 +57,4 @@ def setup(opt):
assert os.path.isfile(os.path.join(opt.start_from,"infos_"+opt.id+".pkl")),"infos.pkl file does not exist in path %s"%opt.start_from
model.load_state_dict(torch.load(os.path.join(opt.start_from, 'model.pth')))

return model
return model

0 comments on commit f793097

Please sign in to comment.