Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set allow_pickle True #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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 vgg16.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,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
2 changes: 1 addition & 1 deletion vgg19.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, vgg19_npy_path=None):
vgg19_npy_path = path
print(vgg19_npy_path)

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

def build(self, rgb):
Expand Down
2 changes: 1 addition & 1 deletion vgg19_trainable.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Vgg19:

def __init__(self, vgg19_npy_path=None, trainable=True, dropout=0.5):
if vgg19_npy_path is not None:
self.data_dict = np.load(vgg19_npy_path, encoding='latin1').item()
self.data_dict = np.load(vgg19_npy_path, encoding='latin1', allow_pickle=True).item()
else:
self.data_dict = None

Expand Down