keras-team / keras-contrib

Keras community contributions
MIT License
1.58k stars 650 forks source link

AttributeError: DSSIMObjective instance has no attribute 'get_shape' #159

Open deepakanandece opened 6 years ago

deepakanandece commented 6 years ago

I am trying to use DSSIM objective function with Keras and tensorflow backend. I get this error while compiling the model.

thisisashukla commented 6 years ago

I also encountered the same error

mongoose54 commented 6 years ago

I had the same issue @git-ankur-shukla , @deepakanandece

DSSIMObjective is a class. You need to declare a new object: e.g. sim_loss = DSSIMObjective() and it should work