Skip to content

Conversation

hipsterusername
Copy link
Member

Summary

Updates a deprecated import on latest diffusers, once we upgrade to it.

Related Issues / Discussions

Qwen image.

QA Instructions

Test that controlnets work.

Merge Plan

Merge alongside diffusers update, or include this fix in that PR.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added python PRs that change python files backend PRs that change backend files labels Sep 11, 2025
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

try:
diffusers.models.controlnet.ControlNetModel = ControlNetModel
except Exception:
pass
Copy link

Choose a reason for hiding this comment

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

Bug: Incompatible Import Path Breaks Module Compatibility

The module's import statement unconditionally uses the new diffusers.models.controlnets.controlnet path. This causes an ImportError on older diffusers versions, preventing the module from loading and making the patching logic's compatibility fallback unreachable.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend PRs that change backend files python PRs that change python files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant