Open psdprasad opened 4 years ago
Sounds like an installation error to me: maybe this will help? https://github.com/openai/gpt-2/issues/236#issue-581076387
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 ...
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
~/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'