A clean, Mac-first launcher for generating images with Sana using Diffusers + PyTorch MPS.
This wrapper is built for Apple Silicon inference and intentionally avoids CUDA-only setup paths.
chmod +x setup.sh launch.sh smoke_check.sh
./setup.sh
./launch.sh verify
./launch.sh generate "a small robot building a glowing circuit board"
./launch.sh ui
./launch.sh --help
./launch.sh verify
./launch.sh generate "your prompt"
./launch.sh generate --prompt "your prompt" --steps 8
./launch.sh generate "your prompt" --negative-prompt "blurry, low quality"
./launch.sh ui
./launch.sh benchmark
Each generation now writes a PNG plus a same-name JSON metadata sidecar.
Example: sana_m2_output.png and sana_m2_output.json.
If output is unstable, use float32 for numerical stability:
./launch.sh generate "your prompt" --steps 8 --dtype float32
Negative prompts are passed only when supported by the installed
SanaPipeline version. If unsupported, generation continues and prints
a warning.
Do not run upstream CUDA installer commands on Mac:
cd Sana-main
bash environment_setup.sh
pip install -e .
Use root-level scripts instead.
Run:
./smoke_check.sh
This checks shell syntax, Python compile health, and guards against CUDA-only root dependency drift.
LICENSESana-main/ follows its own upstream license: Sana-main/LICENSE43 commits
Python
91.7%
HTML
4.5%
Shell
2.9%
A clean, Mac-first launcher for generating images with Sana using Diffusers + PyTorch MPS.
This wrapper is built for Apple Silicon inference and intentionally avoids CUDA-only setup paths.
chmod +x setup.sh launch.sh smoke_check.sh
./setup.sh
./launch.sh verify
./launch.sh generate "a small robot building a glowing circuit board"
./launch.sh ui
./launch.sh --help
./launch.sh verify
./launch.sh generate "your prompt"
./launch.sh generate --prompt "your prompt" --steps 8
./launch.sh generate "your prompt" --negative-prompt "blurry, low quality"
./launch.sh ui
./launch.sh benchmark
Each generation now writes a PNG plus a same-name JSON metadata sidecar.
Example: sana_m2_output.png and sana_m2_output.json.
If output is unstable, use float32 for numerical stability:
./launch.sh generate "your prompt" --steps 8 --dtype float32
Negative prompts are passed only when supported by the installed
SanaPipeline version. If unsupported, generation continues and prints
a warning.
Do not run upstream CUDA installer commands on Mac:
cd Sana-main
bash environment_setup.sh
pip install -e .
Use root-level scripts instead.
Run:
./smoke_check.sh
This checks shell syntax, Python compile health, and guards against CUDA-only root dependency drift.
LICENSESana-main/ follows its own upstream license: Sana-main/LICENSE43 commits
Python
91.7%
HTML
4.5%
Shell
2.9%