Questions tagged [plaidml]

28 questions
0
votes
0 answers

plaidml keras python script gives oserror

I have a plaidml keras python script and the (i believe) relevant part is as follows from __future__ import print_function import plaidml.keras plaidml.keras.install_backend() import os os.environ["KERAS_BACKEND"] =…
0
votes
1 answer

How to use Keras effectively agnostic to backend

I am trying out some examples using keras models, that are already available. Most of the examples are using keras with tensorflow (or pytorch or theano). Due to limited available resource and cost cutting, I am using plaidml to work with amd gpu.…
Senthil
  • 323
  • 4
  • 15
0
votes
0 answers

What am I missing in these plaidML instructions?

I'm beginning to feel like a complete idiot. I'm trying to build plaidML from scratch following these instructions. First step, install Anaconda. Already installed. No problem. Second, install bazelisk. Took me a while to successfully install wget…
Randy Poe
  • 11
  • 3
0
votes
1 answer

How do I fix a keras error for a plaidbench keras test?

I am trying to install plaidml-keras so I can use non-Nvidia GPUs with Keras in python/jupyter. After clearing several other hurdles I get as far as: plaidbench keras mobilenet but it errors twice ImportError: cannot import name 'object_list_uid'…
jtlz2
  • 7,700
  • 9
  • 64
  • 114
0
votes
1 answer

I used plaidml in python but my GPU did not run. ( I use Macbook Pro 16, 2019)

I followed the instructions below: https://plaidml.github.io/plaidml/docs/install#macos And run codes starting with from os import environ environ["KERAS_BACKEND"] = "plaidml.keras.backend" import keras from keras.models import Sequential from…
Tommy
  • 19
  • 2
0
votes
1 answer

Issue passing concatenated inputs to LSTM in keras

I have several neural networks. Their outputs are concatenated and then passed to LSTM. Here is a simplified code snippet: import keras.backend as K from keras.layers import Input, Dense, LSTM, concatenate from keras.models import Model # 1st…
Georgy Firsov
  • 286
  • 1
  • 13
0
votes
1 answer

How to setup plaidml?

I am using pycharm where I have created an environment using miniconda. I have installed Tensorflow and Keras. Now I wanted to use plaidml to access my GPU (it is Intel 620) so I typed the following command into the terminal of my pycharm…
EMT
  • 458
  • 3
  • 14
0
votes
0 answers

How does Keras with PlaidML backend significantly outperform Keras with Tensorflow backend?

I was surprised to find out that there is a significant performance difference in terms of speed and model accuracy when using different backends for the same Deep Learning problem, namely the famous MNIST hand-written digit recognition. The code…
Ahmadov
  • 1,567
  • 5
  • 31
  • 48
0
votes
0 answers

PlaidML accuracy not improving

When I run my code on Colab and on my machine using the CPU the accuracy of the network improves but when running the same code using PlaidML the accuracy never improves. My requirements.txt file is as…
0
votes
0 answers

PlaidML Environment

I'm trying to install PlaidML with a specific environment but the correct version of Keras and Tensorflow aren't installed or the correct versions are installed but the PlaidML backend is not used. My requirements.txt file…
0
votes
1 answer

Remove Dustbin within Keras CNN

I have the following problem, I want to remove a "Dustbin" from the output of one of the layers in my Keras model. The Code without the dustbin removal looks like this and works: def create_detector_network(): input = Input(shape=(128, 128,…
KalvinB
  • 305
  • 1
  • 3
  • 11
0
votes
0 answers

Keras create dataset from CSV without TensorFlow

On every question and tutorial I have found, tf.data.Dataset is used for CSV files, but I am not using tensorflow, I am using PlaidML because my AMD GPU is not supported in ROCm. I have tried using the same code by doing os.environ["KERAS_BACKEND"]…
Arsen Gaming
  • 1
  • 1
  • 1
-1
votes
1 answer

How to use PlaidML with nighly Keras bulds?

Whenever I try to use from tensorflow import keras PlaidML refuses to work and import keras uses stable build.
Gaijin
  • 61
  • 8
1
2