Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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}

like image 999
Blaq_2022 Avatar asked Oct 18 '25 15:10

Blaq_2022


2 Answers

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

like image 81
Anubhav Srivastava Avatar answered Oct 21 '25 14:10

Anubhav Srivastava


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
like image 34
Karthikeyan Sise Avatar answered Oct 21 '25 15:10

Karthikeyan Sise