dnc icon indicating copy to clipboard operation
dnc copied to clipboard

can't run train.py

Open MustafaFayez opened this issue 6 years ago • 4 comments

I ran ipython3 train.py I got this: screenshot from 2018-11-04 21-33-29

I installed sonnet from this command $ pip install dm-sonnet

MustafaFayez avatar Nov 05 '18 02:11 MustafaFayez

If you're still stuck on that, or someone else runs into the same problem, this is probably due to the use of sonnet >=2

LaithS avatar Feb 29 '20 17:02 LaithS

It will work with these exact versions:

pip install -q tensorflow==1.13.2
pip install -q tensorflow-probability==0.6.0
pip install -q dm-sonnet

Edit: Looks like pip install -q "tensorflow<=1.15" also works.

vincentrolfs avatar Apr 26 '20 13:04 vincentrolfs

Sonnet 1.35 is required.

pip install -q dm-sonnet==1.35

saschaschramm avatar Sep 22 '21 16:09 saschaschramm

Doesn't seem to work anymore. I keep getting SystemError: Sonnet requires tensorflow_probability (minimum version 0.4.0) to be installed. If using pip, run 'pip install tensorflow-probability' or 'pip install tensorflow-probability-gpu' even though tensorflow-probability is installed (even with dm-sonnet==1.35). Anyone have any ideas that could solve this?

MoxyFoxy avatar Jan 16 '23 23:01 MoxyFoxy