[Solution] About the Version of Each Dependency
opened this issue · comments
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