Skip to content

Commit 5151cf9

Browse files
committed
Fix hard-coded data paths
1 parent 45ed0ed commit 5151cf9

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

examples/image-vae/image_vae_baseline_pytorch.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
'help': 'grad-clip, defautt 2.0'},
3434
{'name': 'log_interval', 'default': 25, 'type': int,
3535
'help': 'logging interval, default 25'},
36-
{'name': 'data_dir', 'default': 'moses/data', 'help': 'folder with train and test smiles files'},
3736
{'name': 'model_path', 'help': 'model save path', 'default': 'models/'},
3837
{'name': 'output_dir', 'help': 'output files path', 'default': 'output/'},
3938
{'name': 'checkpoint', 'default': None, 'type': str}
@@ -117,9 +116,9 @@ def run(gParams):
117116
kwargs = {'num_workers': args.workers, 'pin_memory': True} if cuda else {'num_workers': args.workers}
118117

119118
print("\nloading data...")
120-
smiles_lookup_train = pd.read_csv(f"{args.data_dir}/train.csv")
119+
smiles_lookup_train = pd.read_csv(train_file)
121120
print(smiles_lookup_train.head())
122-
smiles_lookup_test = pd.read_csv(f"{args.data_dir}/test.csv")
121+
smiles_lookup_test = pd.read_csv(test_file)
123122
print(smiles_lookup_test.head())
124123
print("Done.\n")
125124

examples/image-vae/image_vae_default_model.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ test_data = 'test.csv'
55
workers = 16
66
batch_size = 256
77
grad_clip = 2.0
8-
data_dir = 'moses/data'
98
model_path = 'models'
109
output_dir = 'output'
1110
rng_seed = 42

examples/image-vae/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
'resnet152': 'https://download.pytorch.org/models/resnet152-b121ed2d.pth',
1515
}
1616

17-
from extra_uts import *
17+
from extra_uts import right_shift, down_shift, concat_elu
1818

1919
from utils import MS_SSIM
2020

0 commit comments

Comments
 (0)