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

Update #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update #10

wants to merge 1 commit into from

Conversation

jxqhhh
Copy link

@jxqhhh jxqhhh commented Feb 22, 2018

Without changing these indexes, the program will meet some errors.I think this may be caused by the change of VGG model downloaded from the website mentioned in READMD.md or something else like this.What's more,b = vgg_layers[0][layer][0][0][2][0][1] will return a numpy.ndarray of shape (1,None),so I decided to use b = tf.constant(b.T) in the code.
Here is my test code to find out what vgg_layers looks like:

VGG_MODEL = 'imagenet-vgg-verydeep-19.mat'
vgg = scipy.io.loadmat(VGG_MODEL)
vgg_layers = vgg['layers']
vgg_layers[0][0][0][0][-2]
array([[1]], dtype=uint8)
vgg_layers[0][0][0][0][0][0][0]
'c'
vgg_layers[0][0][0][0][0][0][1]
'o'
vgg_layers[0][0][0][0][2][0][0].shape
(3, 3, 3, 64)
vgg_layers[0][0][0][0][2][0][1].shape
(64, 1)

Without changing these indexes, the program will meet some errors.I think this may be caused by the change of VGG model in the website mentioned in READMD.md or something else like this.What's more,b = vgg_layers[0][layer][0][0][2][0][1] will return a numpy.ndarray of shape (1,None),so I decided to use b = tf.constant(b.T) in the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant