Comments (8)
Hi @z-spider, if you got true from torch.cuda.is_available(), then the code will be running right on your GPU. Have you checked the GPU status like memory usage while running the code?
from stylized-neural-painting.
me.too
when i run ,i says
Traceback (most recent call last):
File "demo.py", line 4, in
torch.cuda.current_device()
File "C:\Users\xxiew\AppData\Roaming\Python\Python37\site-packages\torch\cuda_init_.py", line 384, in current_device
lazy_init()
File "C:\Users\xxiew\AppData\Roaming\Python\Python37\site-packages\torch\cuda_init.py", line 186, in _lazy_init
check_driver()
File "C:\Users\xxiew\AppData\Roaming\Python\Python37\site-packages\torch\cuda_init.py", line 61, in _check_driver
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
i got false from torch.cuda.is_available()
from stylized-neural-painting.
Hi @whuxxie, thanks for your feedback. Can you try to clone this repo again and replace those py files in your local directory? I made an update yesterday where I have removed those torch.cuda.current_device() code lines.
from stylized-neural-painting.
Hi @z-spider, if you got true from torch.cuda.is_available(), then the code will be running right on your GPU. Have you checked the GPU status like memory usage while running the code?
I got true from the torch, but it still doesn't work.
This is my GPU, and I'm having no problems with memory usage.
Or is there anything else you'd recommend checking?
from stylized-neural-painting.
Hi @z-spider, did you receive any error report while running? How long does it take to process one image?
from stylized-neural-painting.
Hi @whuxxie, thanks for your feedback. Can you try to clone this repo again and replace those py files in your local directory? I made an update yesterday where I have removed those torch.cuda.current_device() code lines.
hi,i try just now ,it's ok,thank u very much.
without GPU,i find it very very slow.
from stylized-neural-painting.
Hi @z-spider, did you receive any error report while running? How long does it take to process one image?
I reinstalled the environment with conda and it now works, taking about thirteen minutes to process an image.
Before that, it took about several hours, which is too long.
I don't know why, but thanks again.
from stylized-neural-painting.
Yes it should be very slow on CPU. You can try to switch to lightweight renderers or using less strokes and see if there is any speed up.
from stylized-neural-painting.
Related Issues (20)
- Advice on combining CLIP with the neural renderer HOT 3
- MacBook HOT 4
- intersection brushstroke question HOT 7
- brush_alpha erro HOT 2
- Google drive not letting me download the oil pretrained HOT 1
- Style Transfer Colab Notebook error HOT 2
- 文件版许可证与readme中的内容不符 HOT 1
- Rendering Vector To Image
- About training new painting styles HOT 1
- style transfer in demo_nst.py
- ImportError: cannot import name 'is_url' from 'runway.utils'
- Graphics card not working
- The difference of _render and _drawing_step_states
- Cannot find zipfile directory HOT 2
- Limiting brush stroke sizes
- 2 Questions about the method of this paper
- Ask some questions about this project
- How can change the color and shape parameter of the input picture?
- 詢問資料集相關事宜
- What Exactly AI do?
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 stylized-neural-painting.