Remove Transformers.js tag (#3)
Browse files- Update README.md (1fedb07f66e0f8dedec16508cb0a6efd773c0ecb)
Co-authored-by: Joshua <Xenova@users.noreply.huggingface.co>
123445671 unmodified line910111212131442 unmodified lines5758596160616215 unmodified lines787980838182835 unmodified lines899091959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414592939441 unmodified lines136137138193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229139140141---license: creativeml-openrail-mbase_model: runwayml/stable-diffusion-v1-5library_name: transformers.jslibrary_name: onnxtags:- stable-diffusion- text-to-image1 unmodified line- webgpu- browser-ai- onnx- transformers.js- zhare-ai- client-side- privacy-preserving42 unmodified lines 
15 unmodified lines- π **Privacy-First**: All processing happens locally, protecting user prompts and generated content- π± **Cross-Platform**: Compatible with desktop and mobile browsers- π οΈ **Production-Ready**: Optimized for real-world web applications- π **Transformers.js Compatible**: Direct integration with Hugging Face Transformers.js
## π Quick Start
5 unmodified linesgit clone https://huggingface.co/Zhare-AI/sd-1-5-webgpu```
### Usage with Transformers.js
```javascriptimport { pipeline } from '@huggingface/transformers';
// Initialize the pipelineconst generator = await pipeline( 'text-to-image', 'Zhare-AI/sd-1-5-webgpu', { device: 'webgpu', dtype: 'fp16' });
// Generate an imageconst result = await generator( 'A majestic mountain landscape at sunrise, digital art', { num_inference_steps: 20, guidance_scale: 7.5, height: 512, width: 512 });
// Display the resultdocument.getElementById('output').src = result.images[0];```
### Advanced Configuration
```javascript// Custom generation parametersconst advancedOptions = { prompt: "A futuristic city with flying cars, neon lights, cyberpunk style", negative_prompt: "blurry, low quality, distorted, ugly, deformed", num_inference_steps: 25, guidance_scale: 8.0, height: 512, width: 512, seed: 12345, // For reproducible results // Memory optimization for lower-end devices enable_attention_slicing: true, enable_cpu_offload: false};
const image = await generator(advancedOptions.prompt, advancedOptions);```
## π Performance Specifications
### Model Architecture41 unmodified lines
*All browsers support WebAssembly fallback for universal compatibility*
## βοΈ Configuration Options
### Generation Parameters
```javascriptconst generationConfig = { // Core settings num_inference_steps: 20, // 10-50 (quality vs speed trade-off) guidance_scale: 7.5, // 1.0-20.0 (prompt adherence) height: 512, // Must be multiple of 64 width: 512, // Must be multiple of 64 // Quality settings negative_prompt: "blurry, low quality, distorted", seed: undefined, // Random seed, or integer for reproducibility // Performance optimizations enable_attention_slicing: true, // Reduces VRAM usage enable_sequential_cpu_offload: false, // CPU fallback for components use_fp16: true // Half precision for speed/memory};```
### Memory Optimization
For devices with limited VRAM or older hardware:
```javascriptconst memoryOptimizedConfig = { num_inference_steps: 15, // Fewer steps = less memory guidance_scale: 7.0, // Slightly lower guidance enable_attention_slicing: true, // Essential for <6GB VRAM enable_sequential_cpu_offload: true, // Move components to CPU when needed use_safety_checker: false // Disable to save ~600MB};```
## π Model Details
### Training InformationREADME.md+1-92