Skip to content

Commit

Permalink
update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
yurayli committed Nov 9, 2019
1 parent 54415d9 commit ab93880
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import torchvision.transforms as T
from torchvision import models

from .tokenize_caption import *
from .encode_image import *
from tokenize_caption import *
from encode_image import *


def split_image_files(path):
Expand Down
2 changes: 1 addition & 1 deletion encode_image.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .data_utils import *
from data_utils import *

dtype = torch.cuda.FloatTensor
path = '/flikr8k/'
Expand Down
2 changes: 1 addition & 1 deletion model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .data_utils import *
from data_utils import *

USE_GPU = True
dtype = torch.float32
Expand Down
6 changes: 3 additions & 3 deletions sample.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .data_utils import *
from .solver import *
from .model import *
from data_utils import *
from solver import *
from model import *

trn_feat_path = '/features/train_feat_arrays.pkl'
trn_cap_path = '/captions/train_cap_tokens.pkl'
Expand Down
4 changes: 2 additions & 2 deletions solver.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .data_utils import *
from .eval_metrics import *
from data_utils import *
from eval_metrics import *

output_path = '/output/'
USE_GPU = True
Expand Down
2 changes: 1 addition & 1 deletion tokenize_caption.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .data_utils import *
from data_utils import *

path = '/flikr8k/'
output_path = '/output/'
Expand Down
6 changes: 3 additions & 3 deletions train.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .data_utils import *
from .solver import *
from .model import *
from data_utils import *
from solver import *
from model import *

trn_feat_path = '/features/train_feat_arrays.pkl'
trn_cap_path = '/captions/train_cap_tokens.pkl'
Expand Down

0 comments on commit ab93880

Please sign in to comment.