thuml / Universal-Domain-Adaptation

Code release for Universal Domain Adaptation(CVPR 2019)
272 stars 52 forks source link

error of train #1

Closed ThoamsDong closed 5 years ago

ThoamsDong commented 5 years ago

Thanks for your impressive work! When I run your code in my workstation, it always reports "[easydl] tensorflow not available!" And I satisfy the requirements which you mentioned in "readme". What should I do? 1

youkaichao commented 5 years ago

it always reports "[easydl] tensorflow not available!"

Maybe you have not installed tensorflow.

And the exception is about the tensorboardX, you should also install the tensorboard.

To sum up, install tensorflow && tensorboard.

youkaichao commented 5 years ago

@ThoamsDong please check 75a8e5d8bbdca21e03503a19714c8e230db569dd, it should work without tensorflow now.

eehjc commented 5 years ago

Hello, when I run this code, it reports File "/home/huangjc/uda/main.py", line 27 log_dir = f'{args.log.root_dir}/{now}' ^ SyntaxError: invalid syntax, in our yaml file, log is set as : root_dir: /home/huangjc/uda/time.

youkaichao commented 5 years ago

@eehjc Please check the requirements, python3 is required. Maybe you are using python2. The f-string syntax is introduced in python3.6.

image

eehjc commented 5 years ago

We check the requirements, and the version of python is 3.5, and pytorch is 1.0, but it still reports File "/home/huangjc/uda/main.py", line 27 log_dir = f'{args.log.root_dir}/{now}' ^ SyntaxError: invalid syntax, in our yaml file, log is set as : root_dir: /home/huangjc/uda/time. I want to know if we make mistake to the setting of root_dir?

eehjc commented 5 years ago

only python 3.6 can support the f"{}", thanks for your reply

youkaichao commented 5 years ago

To make things clear, I have updated the requirements in README.

Dayro-9 commented 3 years ago

Hello, I run the code on Google Colab and met the similar error ' I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.10.1 [easydl] tensorflow not available!' Have you solved the error? if yes, could you please help me to solve the above error?