llSourcell / AI_Artist

AI Artist for Machine Learning for Hackers #5
235 stars 91 forks source link

ZeroPadding2D object has no attribute set_input #9

Open JuanuMusic opened 7 years ago

JuanuMusic commented 7 years ago

Hi! I just tried to run the project, and I'm getting the following error:

Traceback (most recent call last):

  File "network.py", line 252, in <module>
    first_layer.set_input(input_tensor, shape=(3, 3, img_width, img_height))
AttributeError: 'ZeroPadding2D' object has no attribute 'set_input'

Thanks in advance for pointing me in the right direction!

GeorgeKesaev commented 7 years ago

Hey, I have exactly same issue. Would like some help please

AlexBella365 commented 7 years ago

Me too. Probably due to the script expecting an earlier version of Tensorflow.

DirkWW commented 7 years ago

I had the same issue until I downgraded to Keras 1.0.2.

beerjamin commented 7 years ago

Same problem, downgrading to Keras 1.0.2 didnt really fix it for me

sunmouren commented 7 years ago

me too

how to resolve it?

beerjamin commented 7 years ago

Just go to the original repo https://github.com/titu1994/Neural-Style-Transfer . Siraj just copied it and made a video, didnt really program anything, same as his other videos. Give the real credit to the guys who create the original content of Sirajs videos, he is just a slacker who happens to spend hours on github looking for projects to make videos on.

hertzane commented 7 years ago

Same problem, my Keras is 2.0.8. and the titu1994's show that it is in Keras 2.0+[https://github.com/titu1994/Neural-Style-Transfer]. so it should be working. i dont know whats going wrong