Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

# Directory for training and testing dataset
training_dir = "train2014"
testing_dir = "test2014"
testing_dir = "vgg/test_data"

# Model, result and generated images stored path
summary_path = "summary"
Expand Down
2 changes: 1 addition & 1 deletion vgg/vgg16.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, vgg16_npy_path=None):
vgg16_npy_path = path
print(path)

self.data_dict = np.load(vgg16_npy_path, encoding='latin1').item()
self.data_dict = np.load(vgg16_npy_path, encoding='latin1', allow_pickle=True).item()
print("npy file loaded")

def build(self, rgb):
Expand Down