Spaces:
Sleeping
Sleeping
File size: 7,785 Bytes
5b6e956 | 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 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 | # Character Forge - Release Version
**Release Date**: November 2025
**Version**: 1.0.0
**License**: Apache 2.0
---
## π What's Included
This is the first official release of Character Forge, ready for:
- β
Local installation on Windows/Linux/Mac
- β
Deployment to HuggingFace Spaces
- β
Integration into your own projects
- β
Commercial use (Apache 2.0 licensed)
## π Key Features
### Character Forge
Transform a single image into a complete multi-angle character sheet:
- 2 facial views (front + side)
- 3 body views (front + side + rear)
- Automatic composition into single sheet
- ~2-3 minutes generation time
- Professional quality results
### Composition Assistant
Smart multi-image composition with AI-generated prompts:
- Upload 1-3 images
- Auto-detect image types
- Generate professional compositions
- Minimal manual work required
### Standard Interface
Direct text-to-image and image-to-image generation:
- 10 aspect ratios supported
- Temperature control (0.0-1.0)
- High-quality output
- Fast generation
### Library Management
Organize and reuse your assets:
- Save characters, backgrounds, styles
- Quick access for compositions
- Build your creative library
## π§ Backend Support
### Gemini API (Cloud) - Default
- No local installation needed
- High quality results
- ~$0.03 per image
- Free tier available (1,500 requests/day)
### ComfyUI (Local) - Optional
- Complete control
- No per-image costs
- GPU required
- Advanced workflows
## π¦ Installation
### Quick Start - Local
**Windows:**
```cmd
install.bat
set GEMINI_API_KEY=your-key-here
start.bat
```
**Linux/Mac:**
```bash
./install.sh
export GEMINI_API_KEY=your-key-here
./start.sh
```
### HuggingFace Spaces
See [docs/HUGGINGFACE_DEPLOYMENT.md](docs/HUGGINGFACE_DEPLOYMENT.md)
## π Documentation
Complete documentation included:
- **README.md** - Overview and quick start
- **docs/QUICK_START.md** - 5-minute getting started guide
- **docs/API_KEY_SETUP.md** - Complete API key setup instructions
- **docs/HUGGINGFACE_DEPLOYMENT.md** - HF Spaces deployment guide
- **LICENSE** - Apache 2.0 license
- **NOTICE** - Third-party licenses
## π Security & Privacy
### Your Privacy
- API keys are YOUR responsibility
- Use environment variables or HF Secrets
- Never commit keys to version control
- See docs/API_KEY_SETUP.md for best practices
## π― Use Cases
### Game Development
- Character reference sheets for NPCs
- Environment backgrounds
- Texture variations
- Scene composition
### Animation
- Character sheets for consistency
- Background art generation
- Style references
- Storyboard composition
### Creative Projects
- Story illustration
- Concept art development
- Visual worldbuilding
- Character design iteration
## π° Cost Estimation
### Gemini API
- Single image: ~$0.03
- Character sheet: ~$0.15 (5 images)
- Composition: ~$0.03-0.06
- Free tier: 1,500 requests/day
### HuggingFace Spaces
- CPU Basic: Free
- CPU Upgrade: ~$0.03/hour (~$21/month 24/7)
- Persistent storage: Free up to 50GB
## π οΈ Technical Stack
### Frontend
- **Streamlit**: Modern Python web framework
- **PIL/Pillow**: Image processing
- **NumPy**: Array operations
### Backend
- **Google Gemini API**: AI image generation
- **ComfyUI** (optional): Local generation
- **WebSocket**: ComfyUI communication
### Configuration
- **YAML**: Configuration files
- **TOML**: Streamlit configuration
- **Environment variables**: Secret management
## π Requirements
### System Requirements
- **Python**: 3.10 or higher
- **RAM**: 2GB minimum, 4GB recommended
- **Storage**: 500MB for app, more for outputs
- **Network**: Internet connection (for Gemini API)
### Python Dependencies
See `requirements.txt` for complete list:
- streamlit >= 1.31.0
- google-genai >= 0.3.0
- Pillow >= 10.0.0
- numpy >= 1.24.0
- And more...
### Optional
- **GPU**: For local ComfyUI backend
- **Git**: For cloning and updates
## π Known Issues
### Current Limitations
- ComfyUI backend requires manual setup
- Maximum 3 images per composition
- 20MB max file size per image
- Rate limits on free tier (15/min, 1500/day)
### Planned Improvements
- More backend options
- Batch processing
- API endpoint for programmatic access
- Video generation support
- Improved caching
## π€ Contributing
We welcome contributions!
### How to Contribute
1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Test thoroughly
5. Submit a pull request
### What We're Looking For
- Bug fixes
- Documentation improvements
- New features
- Performance optimizations
- UI/UX enhancements
### Code Style
- Follow PEP 8
- Add docstrings
- Include type hints
- Write tests where possible
## π License
**Apache License 2.0**
- β
Commercial use allowed
- β
Modification allowed
- β
Distribution allowed
- β
Private use allowed
- β οΈ Must include license and notice
- β οΈ Changes must be documented
See [LICENSE](LICENSE) for full text.
## π Acknowledgments
This project builds on amazing open-source work:
- **Google Gemini API** - AI image generation
- **Streamlit** - Web framework
- **ComfyUI** - Local generation pipeline
- **Python community** - Countless libraries
Thank you to all contributors and users!
## π Support
### Getting Help
- **Documentation**: Check `/docs` folder first
- **Issues**: Report bugs on GitHub
- **Discussions**: Ask questions on GitHub Discussions
- **API Help**: https://ai.google.dev/
### Reporting Bugs
Include:
- Description of the issue
- Steps to reproduce
- Expected vs actual behavior
- Screenshots if applicable
- System info (OS, Python version)
## πΊοΈ Roadmap
### Version 1.1 (Planned)
- [ ] Batch processing
- [ ] More aspect ratios
- [ ] Improved caching
- [ ] Performance optimizations
### Version 1.2 (Planned)
- [ ] REST API endpoint
- [ ] Multiple backend support improvements
- [ ] Advanced composition features
- [ ] Better error handling
### Version 2.0 (Future)
- [ ] Video generation
- [ ] Animation support
- [ ] Advanced character persistence
- [ ] Web-based editor
## π Learning Resources
### For Beginners
- Start with docs/QUICK_START.md
- Follow the examples
- Experiment with different settings
- Join the community
### For Developers
- Check the code documentation
- Study the plugin system
- Review the architecture
- Contribute improvements
### For Artists
- Explore different prompts
- Experiment with temperature
- Build your style library
- Share your creations
## π Project Stats
- **Lines of Code**: ~15,000+
- **Files**: 50+
- **Documentation**: 5 major guides
- **Dependencies**: 15+ packages
- **Supported Platforms**: Windows, Linux, Mac, HuggingFace
- **License**: Apache 2.0 (permissive)
## π Success Stories
We'd love to hear how you're using Character Forge!
Share your projects:
- Tag us on social media
- Post in GitHub Discussions
- Include in your project credits
## β‘ Quick Tips
### For Best Results
1. Use clear, well-lit source images
2. Start with temperature 0.4
3. Be specific in prompts
4. Save good results to library
5. Experiment and iterate
### Performance
1. Close other applications
2. Use reasonable image sizes
3. Consider local backend for heavy use
4. Monitor API quotas
### Cost Optimization
1. Preview before generating
2. Use lower temperature (fewer retries)
3. Batch similar tasks
4. Reuse library assets
## π― Next Steps
After installation:
1. β
Get your Gemini API key
2. β
Run the installation scripts
3. β
Generate your first image
4. β
Try the character sheet feature
5. β
Build your asset library
6. β
Integrate into your workflow
7. β
Share your creations!
---
**Thank you for using Character Forge! Happy creating! π¨**
*For the latest updates, visit our GitHub repository.*
|