Spaces:
Sleeping
Sleeping
File size: 2,015 Bytes
1c70275 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | # Quick Start Guide - Local Testing
## Installation Complete! ✅
All dependencies have been installed successfully. Here's what to do next:
## Running the App
### Option 1: Simple Run
```bash
python app.py
```
The app will start and show you a URL like:
```
Running on local URL: http://127.0.0.1:7860
```
Open that URL in your browser!
### Option 2: Share Publicly (Temporary)
```bash
# Edit app.py, change the last line to:
demo.launch(share=True)
```
This creates a temporary public URL you can share with others.
## What to Expect
### First Run
- The app will download the Stable Diffusion model (~4GB)
- This happens only once - subsequent runs are fast
- Download location: `~/.cache/huggingface/`
### Performance
- **With GPU (CUDA)**: ~10-15 seconds per image
- **Without GPU (CPU)**: ~2-3 minutes per image
Check if CUDA is available:
```bash
python -c "import torch; print(f'CUDA available: {torch.cuda.is_available()}')"
```
## Using the App
### Single Style Tab
1. Enter a prompt (use `<style>` as placeholder)
- Example: `"a portrait of a warrior in <style>"`
2. Select a style from dropdown
3. Set seed (e.g., 42)
4. Click "Generate Image"
### Compare All Styles Tab
1. Enter a prompt with `<style>` placeholder
2. Set base seed (e.g., 100)
3. Click "Generate All Styles"
4. See all 5 styles side-by-side!
## Troubleshooting
### "Out of Memory" Error
- Reduce inference steps to 20-30
- Close other GPU applications
- Use CPU mode (slower but works)
### Slow Generation
- This is normal on CPU
- Consider using GPU for faster results
- Reduce inference steps for speed
### Model Download Fails
- Check internet connection
- Ensure ~5GB free disk space
- Try again - downloads resume automatically
## Next Steps
1. ✅ Test the app locally
2. ✅ Try different prompts and styles
3. ✅ Deploy to Hugging Face Spaces (see DEPLOYMENT_GUIDE.md)
Enjoy your Stable Diffusion Style Explorer! 🎨
|