Skip to content

AttributeError: type object 'vgg16' has no attribute 'vgg16' #14

@LuLuSaBee

Description

@LuLuSaBee

AttributeError Traceback (most recent call last)
in ()
21 model_name = style_img_path.split("/")[2].split(".")[0]
22 print(model_name)
---> 23 main()
24 # for i in range(0,25):
25 # style_img_path = img_path[i]

in main()
17 with tf.compat.v1.variable_scope('vgg'):
18 X_vgg = tf.compat.v1.placeholder(tf.float32, shape=style_img.shape, name='input')
---> 19 vggnet = vgg16.vgg16(X_vgg)
20 with tf.compat.v1.Session() as sess:
21 vggnet.load_weights('libs/vgg16_weights.npz', sess)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions