ImportError: cannot import name 'notf' from 'tensorboard.compat'

7.3k Views Asked by At

i am training stylegan2-ada-pytorch from google colab with my custom images however on trying to perform the initial training i get the above error from tensorboard

cmd = f"/usr/bin/python3 /content/stylegan2-ada-pytorch/train.py --snap {SNAP} --outdir {EXPERIMENTS} --data {DATA}"

!{cmd}

3

There are 3 best solutions below

0
Blaq_2022 On

solved it by uninstalling jax and reinstalling the cuda version of iy

!pip uninstall jax jaxlib -y
!pip install "jax[cuda11_cudnn805]==0.3.10" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

And then changed the torch version to 1.8.1

0
Karthikeyan Sise On

It might be due to a compatibility issue between the Tensorboard and Numpy version, updating Numpy to the latest version could solve this issue

>> pip install --upgrade numpy
0
Anubhav Srivastava On

Try reinstalling TensorFlow. I used pip3 install tensorflow==2.9.1 and it got resolved.