Comments (7)
I could fix this issue by going back to using tensorflow-gpu==1.14
from stylegan-encoder.
Hi, After installing tensorflow-gpu==1.14 I am getting error as follows. I am executing in Google Colab.
InvalidArgumentError: Cannot assign a device for operation learnable_dlatents/read: node learnable_dlatents/read (defined at /content/stylegan-encoder/encoder/generator_model.py:15) was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0, /job:localhost/replica:0/task:0/device:XLA_CPU:0, /job:localhost/replica:0/task:0/device:XLA_GPU:0 ]. Make sure the device specification refers to a valid device.
[[learnable_dlatents/read]]
Any suggestions Please. Ty!
from stylegan-encoder.
Hi, After installing tensorflow-gpu==1.14 I am getting error as follows. I am executing in Google Colab.
InvalidArgumentError: Cannot assign a device for operation learnable_dlatents/read: node learnable_dlatents/read (defined at /content/stylegan-encoder/encoder/generator_model.py:15) was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/device:CPU:0, /job:localhost/replica:0/task:0/device:XLA_CPU:0, /job:localhost/replica:0/task:0/device:XLA_GPU:0 ]. Make sure the device specification refers to a valid device.
[[learnable_dlatents/read]]Any suggestions Please. Ty!
I am getting the same error in Colab. Were you able to fix the issue?
from stylegan-encoder.
I am getting the same error in Colab. Were you able to fix the issue?
No. It seems like problem with colab GPU. It's working in other GPU by installing tenforflow-gpu==1.14 at start without importing any libraries.
I hope it helps.
from stylegan-encoder.
Seems working for me with tensorflow-gpu==1.14 in Colab GPU runtime.
from stylegan-encoder.
Seems working for me with tensorflow-gpu==1.14 in Colab GPU runtime.
Like Radeeswar and taniyaghosh29 I cannot make it work in Colab either. Did you do anything extra to make it work in Colab with tensorflow-gpu==1.14?
Edit: Made it work. My error was to use tensorflow==1.14, instead of tensorflow-gpu==1.14
from stylegan-encoder.
I remove all tensorflow pkg and do pip3 install tensorflow-gpu==1.14 --user
this problem still exists.
I add allow_soft_placement
to gpu config and didn't solve this problem.
from stylegan-encoder.
Related Issues (20)
- I just found a project that allows controlling a bunch of StyleGAN features through UI knobs: HOT 3
- About 'Google Drive quota exceeded' error. HOT 2
- colab cant run missing packages HOT 1
- Basic Usage Question
- tensorflow.python.framework.errors_impl.InvalidArgumentError
- Download couldn't happen from url, error in functions used in file named network.py and encode
- Download couldn't happen from url, error in functions used in file named network.py and encode_image.py
- How can I speed up the encode_image.py process? HOT 2
- why is an optimizer used in something that is not a neural network?
- samples needed to learn a direction
- KeyError: "The name 'G_synthesis_1/_Run/concat:0' refers to a Tensor which does not exist. The operation, 'G_synthesis_1/_Run/concat', does not exist in the graph." HOT 4
- ModuleNotFoundError: No module named 'encoder'
- Generated images color was deformed HOT 1
- Syntax error in encode_images.py HOT 1
- latent directions
- Can't download LATENT_TRAINING_DATA HOT 7
- lines of code to crop and resave a collection of images to Gdrive
- Reduce encode_images.py time by using one model instance
- The error of load image
- Work with StyleGAN3?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stylegan-encoder.