Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,17 @@ dependencies = [
"ipython>=8.23.0",
"waymo-open-dataset-tf-2-12-0==1.6.7",
]

[project.optional-dependencies]
# Only needed by analyze_sae_visual_gen.py (stage 1 of the counterfactual
# image-edit pipeline): object detection, VLM prompt generation, and the
# diffusion image editor. Stage 2 (analyze_sae_visual_gen_pt2.py) and every
# other SAE script run without these.
visual-edits = [
"diffusers>=0.31",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Raise the minimum diffusers version

diffusers==0.31 satisfies this declared dependency but predates the QwenImageEditPipeline, QwenImageEditPlusPipeline, and Flux2KleinPipeline symbols imported unconditionally by stage 1. In an otherwise valid environment constrained to that allowed version, the script fails during import before any editor can be selected. Set the lower bound to the first release that exports all three pipelines, or import each optional pipeline lazily.

Useful? React with 👍 / 👎.

"google-genai>=0.3",
"openai>=1.0",
"pillow>=10.0",
"python-dotenv>=1.0",
"ultralytics>=8.3",
]
Loading