Questions tagged [tensorlayer]

Questions regarding how to use the TensorLayer Library.

enter image description here

TensorLayer is Deep Learning library built on top of Tensorflow providing ready-to-use best practices and state-of-the-art Layers / Optimizers / Metrics.

Open Source Project: https://github.com/tensorlayer/tensorlayer

Official documentation: https://tensorlayer.readthedocs.io/en/stable/

17 questions
1
vote
0 answers

tensorlayer can't load pretrained weight propaly

I have a problem to load pretrained params in tensorlayer. I try to use srgan (https://github.com/tensorlayer/srgan) and its pretrained params (https://github.com/tensorlayer/srgan/releases/tag/1.2.0) Applicable code is below G = get_G([1, None,…
musako
  • 897
  • 2
  • 10
  • 26
1
vote
2 answers

Attribute Error: 'module' object has no attribute 'GraphKeys'

I'm currently trying to get a chatbot running with tensorflow. The example for the chatbot is from this repository: Github I ran into some issues when I tried to run this in my tensorflow docker container. When starting the script the script exits…
David Nagl
  • 69
  • 1
  • 7
1
vote
2 answers

Tensorlayer fails with Tensorflow 1.10.0rc0

I just updated Tensorflow from 1.9.0 to 1.10.0 and Tensorlayer refuse to launch: python import tensorlayer as tl ../../../virtualenv/python2.7.14/lib/python2.7/site-packages/tensorlayer/__init__.py:22: in "TensorLayer does not support…
Jonathan DEKHTIAR
  • 3,456
  • 1
  • 21
  • 42
1
vote
1 answer

how to load local data in tensorlayer

How would I change this code which loads cifar10dataset for tensorlayer: # The data, shuffled and split between train and test sets self.x_train, self.y_train, self.x_test, self.y_test = tl.files.load_cifar10_dataset(shape=(-1, 32, 32, 3),…
user3483676
  • 177
  • 1
  • 8
1
vote
1 answer

how to do hyperparameters gridsearch in tensorlayer?

I just started to learn tensorlayer, an excellent high-level wrapper over tensorflow framework for deep learning. Does anyone know how to do parameter gridsearch to tune DNN? Is there anyway that I can use GridSearchCV from sklearn to tune network…
zesla
  • 11,155
  • 16
  • 82
  • 147
0
votes
0 answers

How do I resolve 'GraphKeys' Attribute Error while importing Tensorflow?

I am trying to run the following codes: import os import pprint import numpy as np import tensorflow as tf import tensorlayer as tl from tensorlayer.layers import * from tensorlayer.prepro import * from random import shuffle However, I am getting…
Dean
  • 129
  • 2
  • 9
0
votes
1 answer

Incompatible Tensorlayer, Tensorflow and numpy version

I am struggling to install tensorflow 2.0.0 and tensorlayer 2.0.0. ERROR: tensorflow 2.0.0 has requirement numpy<2.0,>=1.16.0, but you'll have numpy 1.14.0 which is incompatible. ERROR: tensorlayer 2.0.0 has requirement numpy<1.16,>=1.14, but you'll…
psuresh
  • 535
  • 2
  • 13
  • 25
0
votes
0 answers

module 'tensorlayer.layers' has no attribut 'DeConv3dLayer'

Using tensorlayer 1.2 (for compatibility reasons), I get this error, although in the documentation of tensorlayer v1.2 DeConv3dLayer is in the layer list.
rider4
  • 9
  • 1
0
votes
1 answer

What does model.train() function do in tensorlayer Seq2seq model

I was reading the tensorlayer documentation and in the NLP section there was a code for chatbots which I studied but could not find what _model.train() function do in it. It does not start the training process which I thought would be the role of…
0
votes
0 answers

Importing torch failed when lazyimported cv2 first

I am using self-compiled python 3.6.3 (link) on Ubuntu 14.04. My torch is 1.0.1.post2, Tensorlayer 1.10.1. To reproduce my issue, try with from tensorlayer.lazy_imports import LazyImport cv2 = LazyImport("cv2") import torch It fails with, Traceback…
MeadowMuffins
  • 507
  • 1
  • 5
  • 20
0
votes
1 answer

I am getting the following import error, although I have numpy installed

When I tried to run dataloader.py I got the following import error. I tried the code line by line and I found this error came while importing tensorlayer as t1. $C:\Users\chinm\Desktop\Malta\Project\image synthesis\text-to-image-master>py…
0
votes
0 answers

ValueError: Variable bcnn1/W_conv2d already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope?

The problem is "ValueError: Variable bcnn1/W_conv2d already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at: " I am trying to build a binarized CNN network of MNIST dataset . I get the…
avik
  • 271
  • 1
  • 4
  • 14
0
votes
1 answer

Tensorflow ValueError: No variables to optimize

I am trying to use 3D unet on meical image. The interface I am using is tensorlayer. While I am trying to calculate the mean_squared_error of two tensors: mse_loss = tl.cost.mean_squared_error(dense_unet3D.outputs, t_target_image,…
zhuofeng
  • 19
  • 3
0
votes
2 answers

Neural Network producing NaN after first train

My neural network's outputs become all nan quickly after the first train. And all the costs are nan no matter how I modified learning rate. I have checked on Stack Overflow and other websites, and my problem falls into none of them. My network does…
0
votes
1 answer

I'm delete the one subpixel convolution, then there was a error

I am using a source code file named SRGAN. This will 4x upscale photos. https://github.com/tensorlayer/srgan However, I wanted to 2x upscale the photos. The developer asked to remove one subpixel as a way to do that.…
1
2