Remove Transformers.js tag
#3
by Xenova HF Staff - opened
12345671 unmodified line910111213141542 unmodified lines5859606162636415 unmodified lines808182838485865 unmodified lines929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714841 unmodified lines190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232---license: creativeml-openrail-mbase_model: runwayml/stable-diffusion-v1-5library_name: transformers.jstags:- stable-diffusion- text-to-image1 unmodified line- webgpu- browser-ai- onnx- transformers.js- zhare-ai- client-side- privacy-preserving42 unmodified lines15 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 Start5 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 devicesenable_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 settingsnum_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 64width: 512, // Must be multiple of 64// Quality settingsnegative_prompt: "blurry, low quality, distorted",seed: undefined, // Random seed, or integer for reproducibility// Performance optimizationsenable_attention_slicing: true, // Reduces VRAM usageenable_sequential_cpu_offload: false, // CPU fallback for componentsuse_fp16: true // Half precision for speed/memory};```### Memory OptimizationFor devices with limited VRAM or older hardware:```javascriptconst memoryOptimizedConfig = {num_inference_steps: 15, // Fewer steps = less memoryguidance_scale: 7.0, // Slightly lower guidanceenable_attention_slicing: true, // Essential for <6GB VRAMenable_sequential_cpu_offload: true, // Move components to CPU when neededuse_safety_checker: false // Disable to save ~600MB};```## 📝 Model Details### Training Information12345671 unmodified line9101112131442 unmodified lines57585960616215 unmodified lines7879808182835 unmodified lines89909192939441 unmodified lines136137138139140141---license: creativeml-openrail-mbase_model: runwayml/stable-diffusion-v1-5library_name: onnxtags:- stable-diffusion- text-to-image1 unmodified line- webgpu- browser-ai- onnx- zhare-ai- client-side- privacy-preserving42 unmodified lines15 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## 🚀 Quick Start5 unmodified linesgit clone https://huggingface.co/Zhare-AI/sd-1-5-webgpu```## 📊 Performance Specifications### Model Architecture41 unmodified lines*All browsers support WebAssembly fallback for universal compatibility*## 📝 Model Details### Training Information
README.md+1-92