Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Solution] About the Version of Each Dependency #15

Open
ghost opened this issue Jan 12, 2021 · 0 comments
Open

[Solution] About the Version of Each Dependency #15

ghost opened this issue Jan 12, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 12, 2021

Firstly, thank the authors for providing this excellent project!
Here I want to report a small problem and corresponding solution.

I prefer pip to docker. pip always install the latest version of each package, and this has caused some compatibility problems (if you install it in a new environment Now).

pip install numpy
pip install tensorflow-gpu
pip install opencv-python
pip install tqdm
pip install tflearn

And then execute:
python main.py

Error:

Traceback (most recent call last):
  File "main.py", line 57, in <module>
    model = GenerateNet()
  File "D:\DeepNormals\model.py", line 134, in
 GenerateNet
    Network = tf.nn.l2_normalize(Network, dim = 3)
  File "D:\VirtualEnvs\deep_normal\lib\site-packages\tensorflow\python\util\dispatch.py",
 line 201, in wrapper
    return target(*args, **kwargs)
TypeError: l2_normalize_v2() got an unexpected keyword argument 'dim'

[Fix]
I suggest specify the version of each package in requirements.txt.

pip install -r requirements.txt

requirements.txt:

numpy==1.15.1
tensorflow-gpu==1.11.0
opencv-python==3.4.3.18
tqdm==4.26.0
tflearn==0.3.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants