gpt-2-simple icon indicating copy to clipboard operation
gpt-2-simple copied to clipboard

Doesn't work with Python3

Open hackermondev opened this issue 3 years ago • 3 comments

I'm trying to run the example on my machine but I'm having some weird issues. I used a tool which automatically installs all the needed python packages but its still not working.

The python console:

ModuleNotFoundError: No module named 'tensorflow.contrib'

hackermondev avatar Nov 21 '20 21:11 hackermondev

This is because you are trying to implement the vice written for TF1.X in a TF2.X environment. You need to use the exact version minimaxir specified. Contrib not available in TF2.

rbewoor avatar Nov 21 '20 22:11 rbewoor

Use Python 3.6 and TF1.X.

WAUthethird avatar Nov 23 '20 02:11 WAUthethird

Yes it has to be TF1.X. (I thought there was an assert to that effect? weird)

minimaxir avatar Dec 24 '20 04:12 minimaxir