Comments (3)
Did you install libtorch manually or rely on the automated install? See this readme for more details.
The automated install will default to the cpu version, you can get it to install the cuda enabled libtorch by setting TORCH_CUDA_VERSION
to something like cu117
though in the long run it's probably better/more stable to go through the manual install process.
from diffusers-rs.
Thanks a lot for your pointer. I installed using automated script to get the models converted at first, then after having read the README at tch-rs
I've followed the instructions there to config the proper env vars. I think I almost got it working except for encountering two linker errors:
Creating library E:\projects\diffusers-rs\target\debug\examples\stable_diffusion.lib and object E:\projects\diffusers-rs\target\debug\examples\stable_diffusion.exp
libtorch_sys-1e4b51fbd71aba4d.rlib(torch_api.o) : error LNK2001: unresolved external symbol __imp___tls_index_?init@?1??lazy_init_num_threads@internal@at@@YAXXZ@4_NA
libtorch_sys-1e4b51fbd71aba4d.rlib(torch_api.o) : error LNK2001: unresolved external symbol __imp___tls_offset_?init@?1??lazy_init_num_threads@internal@at@@YAXXZ@4_NA
E:\projects\diffusers-rs\target\debug\examples\stable_diffusion.exe : fatal error LNK1120: 2 unresolved externals
warning: `diffusers` (example "stable-diffusion") generated 17 warnings
error: could not compile `diffusers` due to previous error; 17 warnings emitted
(I switched to libtorch
debug build after seeing the release build generated even more errors, as I recall). But I think this linking issue would belong to the tch-rs
repo instead, and actually not a biggie for me, as I can wait until things get more stable.
This is an image I generated using CPU for fun:
"A rusty intimidating robot holding a fire torch, Gustave Courbet"
from diffusers-rs.
Re the tls error, this has indeed already been reported on the tch side here. It seems that the issue is at the libtorch/Visual Studio level stackoverflow post. The quickest workaround is probably to use an older version of visual studio if you can.
from diffusers-rs.
Related Issues (20)
- Feature Request: Negative prompts HOT 1
- Add Scheduler trait/enum HOT 2
- m1 mac gpu HOT 6
- Google Colab Notebook to run diffusion experiment on the GPU
- Embed the examples logic into the pipeline HOT 1
- How to load a parameter file in safetensors format? HOT 1
- PytorchStreamReader failed reading zip archive HOT 2
- ControlNet support? HOT 5
- Bad distorted picture using the in-painting example provided HOT 4
- Loading of text embeddings in pt format? HOT 2
- Example of inpaint doesn't work for Stable Diffusion 2.1 HOT 2
- CUDA out of memory on 12GB GPU HOT 2
- Error: The system cannot find the file specified. (os error 2) HOT 2
- Tracking issue for SD ecosystem feature parity HOT 6
- DirectML Support HOT 1
- Cannot link when used together with cxx-qt crate HOT 1
- CUDA/GPU Not Working. HOT 1
- STATUS_DLL_NOT_FOUND HOT 1
- Benchmarks? HOT 1
- Integration with Stable Diffusion XL 1.0 ? HOT 1
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 diffusers-rs.