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

The version of tensorflow #19

Closed
wang-ps opened this issue May 31, 2019 · 4 comments
Closed

The version of tensorflow #19

wang-ps opened this issue May 31, 2019 · 4 comments

Comments

@wang-ps
Copy link

wang-ps commented May 31, 2019

Could you please provide the tensorflow version you used?
I tried tensorflow 2.0, 1.12, 1.13, but they all failed.

@EdwardSmith1884
Copy link
Owner

Can you post errors you are getting when you run it?

@wang-ps
Copy link
Author

wang-ps commented Jun 1, 2019

  1. tensorflow 2.0, python 2.7
    when installing tensorlayer, the error message is:

    ERROR: Could not find a version that satisfies the requirement scikit-image==0.15.0 (from tensorlayer) (from versions: 0.7.2, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.9.3, 0.10.0, 0.10.1, 0.11.2, 0.11.3, 0.12.0, 0.12.1, 0.12.2, 0.12.3, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.14.2)
    ERROR: No matching distribution found for scikit-image==0.15.0 (from tensorlayer)

  2. tensorflow 1.13.0/1.12.0, python 2.7
    tensorlayer is not supported for tensorflow 1.13.0/1.12.0

  3. tensorflow 1.11.0, python 2.7
    tenserlayer is installed sucessfully.
    But when running the code, the error message is:

    Using TensorFlow backend.
    [TL] WARNING: Function: tensorlayer.layers.utils.set_name_reuse (in file: /usr/local/lib/python2.7/dist-packages/tensorlayer/layers/utils.py) is deprecated and will be removed after 2018-06-30.
    Instructions for updating: TensorLayer relies on TensorFlow to check name reusing

    [TL] WARNING: this method is DEPRECATED and has no effect, please remove it from your code.
    [TL] WARNING: this method is DEPRECATED and has no effect, please remove it from your code.
    [TL] WARNING: Function: tensorlayer.activation.leaky_relu (in file: /usr/local/lib/python2.7/dist-packages/tensorlayer/activation.py) is deprecated and will be removed after 2018-09-30.
    Instructions for updating: This API is deprecated. Please use as tf.nn.leaky_relu

    [TL] WARNING: this method is DEPRECATED and has no effect, please remove it from your code.
    [TL] WARNING: this method is DEPRECATED and has no effect, please remove it from your code.
    2019-06-01 02:25:57.873037: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 AVX512F FMA
    2019-06-01 02:26:00.116621: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1411] Found device 0 with properties:
    name: GeForce RTX 2080 Ti major: 7 minor: 5 memoryClockRate(GHz): 1.545
    pciBusID: 0000:af:00.0
    totalMemory: 10.73GiB freeMemory: 10.57GiB
    2019-06-01 02:26:00.222735: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1411] Found device 1 with properties:
    name: GeForce RTX 2080 Ti major: 7 minor: 5 memoryClockRate(GHz): 1.545
    pciBusID: 0000:d8:00.0
    totalMemory: 10.73GiB freeMemory: 10.57GiB
    2019-06-01 02:26:00.223478: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1490] Adding visible gpu devices: 0, 1
    2019-06-01 02:26:01.007506: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] Device interconnect StreamExecutor with strength 1 edge matrix:
    2019-06-01 02:26:01.007566: I tensorflow/core/common_runtime/gpu/gpu_device.cc:977] 0 1
    2019-06-01 02:26:01.007573: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 0: N N
    2019-06-01 02:26:01.007579: I tensorflow/core/common_runtime/gpu/gpu_device.cc:990] 1: N N
    2019-06-01 02:26:01.007755: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1103] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 10202 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2080 Ti, pci bus id: 0000:af:00.0, compute capability: 7.5)
    2019-06-01 02:26:01.149070: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1103] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:1 with 10202 MB memory) -> physical GPU (device: 1, name: GeForce RTX 2080 Ti, pci bus id: 0000:d8:00.0, compute capability: 7.5)
    Traceback (most recent call last):
    File "32-3D-IWGan.py", line 83, in
    tl.ops.set_gpu_fraction(sess=sess, gpu_fraction=0.998)
    AttributeError: 'module' object has no attribute 'ops'

So could you please provide the tensorflow version and all the dependencies for running the code?

@EdwardSmith1884
Copy link
Owner

Yeah, I cloned the repo and tried to run for the first time in a while, and got the same. I will figure this out and update once I have a few cycles free. sorry for the wait

@mallorbc
Copy link

For error three, I you can solve it by following the instructions in this other issue it seems. #6

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

3 participants