TachibanaYoshino / AnimeGANv2

[Open Source]. The improved version of AnimeGAN. Landscape photos/videos to anime
5.06k stars 709 forks source link

ImportError: cannot import name 'trace' #48

Open Chauban opened 2 years ago

Chauban commented 2 years ago

我用的是conda的虚拟环境,tf1.5,但是每次运行实例代码(inference和video transfer)总会出错,不知道问题在哪里呢?google说的是升级tf2.0,感觉问题不在这里.. from tensorflow_estimator.python.estimator import estimator File "C:\Users\XU\.conda\envs\anime\lib\site-packages\tensorflow_estimator\python\estimator\estimator.py", line 36, in <module> from tensorflow.python.profiler import trace ImportError: cannot import name 'trace'

hui121 commented 2 years ago

conda安装tf1.15时,其中tensorflow-estimator库的版本可能不正确,可以手动重新安装该库,conda install tensorflow-estimator=1.15.1

IngshaPhombo commented 1 year ago

thank you hui121. it solved the error for me