How vishnux/polaris works
Polaris is a Gradio app for generating fashion product images from text prompts. Users enter a prompt, optionally adjust negative prompts and generation settings, and receive a generated image. The app loads a pretrained Stable Diffusion pipeline, selects an available device, and saves the result as a PNG. README advertises 4K output, while the sampled code configures 1024×1024 generation; source evidence is limited to the single application file.
Main entry points: app.py Gradio interface
Components 10
User interface
- Gradio interface
app.py - Prompt and settings
app.py
Image generation
- GPU queue
app.py - Device selection
app.py - Diffusion pipeline
app.py - Pretrained model
Image output
- PNG image saver
app.py - Local filesystem
- Generated image result
app.py
Other components
- User
Connections 10
- User → Gradio interface: uses
- Gradio interface → Prompt and settings: collects
- Gradio interface → GPU queue: dispatches
- GPU queue → Diffusion pipeline: runs
- Device selection → Diffusion pipeline: configures
- Diffusion pipeline → Pretrained model: loads
- Diffusion pipeline → PNG image saver: passes image
- PNG image saver → Local filesystem: writes PNG
- PNG image saver → Generated image result: returns path
- Generated image result → Gradio interface: displays