Skip to content

codysnider/flux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Containerized Flux for 24gb GPUs

Code repo for article: Containerized Flux

Usage

Run Flux image generation with the following command line arguments:

python main.py --prompt "your text prompt here" [options]

Arguments

  • --prompt (required): Text prompt for image generation
  • --width (default: 512): Image width in pixels
  • --height (default: 512): Image height in pixels
  • --steps (default: 20): Number of inference steps
  • --seed (default: 42): Random seed for reproducibility
  • --randgen X: Generate X images with random seeds (ignores --seed)
  • --output: Output file path (default: /app/output/picture-TIMESTAMP.png)
  • --model: Model to use: dev (default) or schnell
  • --meta: Save metadata about this run to /app/output/meta-TIMESTAMP.json

Examples

Generate a single image:

python main.py --prompt "a beautiful sunset over mountains" --width 1024 --height 768

Generate multiple images with random seeds:

python main.py --prompt "abstract art" --randgen 5 --steps 30

Use the schnell model with metadata:

python main.py --prompt "futuristic city" --model schnell --meta

About

Containerize Flux Dev

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •