Comments (5)
Hard to tell - could be some problem with the WASM code. It's not very well tested.
Try this patch and see what happens:
diff --git a/src/ggml.c b/src/ggml.c
index d2a9dab..8a11f7c 100644
--- a/src/ggml.c
+++ b/src/ggml.c
@@ -12260,9 +12260,7 @@ static void ggml_compute_forward_soft_max_f32(
}
}
- assert(sum > 0.0);
-
- sum = 1.0/sum;
+ sum = sum > 0.0 ? 1.0/sum : 1.0;
ggml_vec_scale_f32(nc, dp, sum);
#ifndef NDEBUG
from stable-diffusion.cpp.
@Joinhack , if you're using Emscripten then try adding these flags and values during compilation:
-s INITIAL_MEMORY=1000MB -s MAXIMUM_MEMORY=4GB -s STACK_SIZE=11524288 -s ALLOW_MEMORY_GROWTH
This should get around the memory limitations. Example Script: https://github.com/rahuldshetty/ggml.js/blob/master/build-ggml.sh
from stable-diffusion.cpp.
@ggerganov any chance you could give us some pointers? :) Much obliged.
from stable-diffusion.cpp.
yes, it work, but other error occur.
from stable-diffusion.cpp.
thanks.
from stable-diffusion.cpp.
Related Issues (20)
- Strength value of image to image HOT 2
- Support Inpainting HOT 6
- Support tiling
- how to debug in vscode
- [featured] Support for Metal HOT 13
- [Feature Request] Embeddings like EasyNegative HOT 2
- Error with quantization and lora HOT 2
- Build fails on mingw
- Presets or enhancing output
- Generate another image without loading the model again HOT 3
- Is there anyone who can't generate images correctly? HOT 11
- Roop/Face Swap?
- UNet is not run with GPU HOT 6
- Metal build with SDXL-Turbo generates a black output image HOT 4
- Exception when delete StableDiffusion pointer HOT 2
- FreeU support HOT 8
- Flash attention abort trap HOT 9
- C-API export seems to not work correctly HOT 4
- std::set undefined HOT 1
- Can not release memory HOT 7
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 stable-diffusion.cpp.