tancik / StegaStamp

Invisible Hyperlinks in Physical Photographs
http://www.matthewtancik.com/stegastamp
MIT License
675 stars 191 forks source link

ValueError: The first layer in a Sequential model must get an `input_shape` or `batch_input_shape` argument. #58

Closed BarryAlllen closed 10 months ago

BarryAlllen commented 10 months ago

Hi,Thank you very much for your open-source project. When I run "bash scripts/base.sh EXP_NAME", it shows that "ValueError: The first layer in a Sequential model must get an input_shape or batch_input_shape argument.", but your code(models.py) does not have an input_shape or batch_input_shape, so how to fix it?

BarryAlllen commented 10 months ago

I used TensorFlow GPU 1.14.1, so this error is displayed. Then I used 1.13.1 and the problem was solved.