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

got this error

Open psdprasad opened this issue 4 years ago • 3 comments

~/gpt-2$ python3 src/interactive_conditional_samples.py Traceback (most recent call last): File "src/interactive_conditional_samples.py", line 9, in import model, sample, encoder File "/home/prasad/gpt-2/src/model.py", line 3, in from tensorflow.contrib.training import HParams ModuleNotFoundError: No module named 'tensorflow.contrib'

psdprasad avatar May 31 '20 03:05 psdprasad

Sounds like an installation error to me: maybe this will help? https://github.com/openai/gpt-2/issues/236#issue-581076387

skillor avatar May 31 '20 15:05 skillor

It should be a tensorflow version error! You can reinstall a tensorflow version with contrib module. Such as: tensorflow==1.12.0 or tensorflow-gpu==1.12.0 ...

HonayKing avatar Jun 12 '20 09:06 HonayKing

Sounds like an installation error to me: maybe this will help? #236 (comment)

Awesome, this fixed the issue :)

python3 -m pip install tensorflow==1.13.1
python3 -m pip install regex

moona3k avatar Jun 18 '20 07:06 moona3k