Repository navigation
Deprecate KarrasVeScheduler and ScoreSdeVpScheduler - #5269
Conversation
yiyixuxu
left a comment
There was a problem hiding this comment.
Thanks for working on this!
Looks great!
Can you:
- run
make styleto make sure we pass quality tests - maybe provide a simple code example to show that we can still use these 2 schedulers
a69b74d to
264fea5
Compare
|
Sorry about the force push 😅 Made an accidental push to the wrong branch. |
|
@a-r-r-o-w make sure the tests pass too! |
|
I'm not sure if these tests are failing due to something I've done. Could you help me out with this? The other failed tests were caused due to not running |
sayakpaul
left a comment
There was a problem hiding this comment.
Cool!
Wondering if we should be a bit less aggressive about the deprecation i.e., we still let people allow importing the scheduler but instead, throw a deprecation warning.
|
@sayakpaul or @DN6 could you look into the failing docs error here? |
| from .deprecated.scheduling_karras_ve import KarrasVeScheduler | ||
| from .deprecated.scheduling_sde_vp import ScoreSdeVpScheduler |
There was a problem hiding this comment.
https://github.com/huggingface/diffusers/actions/runs/6509446074/job/17680967513?pr=5269 tells the following:
ModuleNotFoundError: No module named 'diffusers.schedulers.deprecated'
To check this I did the following:
- Cloned the PR branch and ran
pip install -e .in a separate env (ensuring PT installation too). - From there in the activate env, I was able to successfully import:
import diffusers.scheduler.deprecated.
This contradicts the error message we get from the CI.
There was a problem hiding this comment.
from diffusers import StableDiffusionControlNetPipeline
Also works as expected.
There was a problem hiding this comment.
Hmm, this seems weird... I'm on python3.11 locally and a fresh install works for me as well without any errors.
|
@sayakpaul @yiyixuxu Is there anything else I can do here? I can't seem to replicate the CI test fail... |
|
@DN6 do you have any idea why this is happening? |
|
@a-r-r-o-w, sorry that we're being a bit slow here - I think the PR is still very much relevant, should we re-open it? |
|
@patrickvonplaten Oh, this was closed accidentally 😅 I was pruning all my remote branches that had been merged or had work that was covered by another contributor. Yes, let's re-open it. Do let me know if there's anything I can do from my end, thanks! |
|
thanks for re-open this! @patrickvonplaten is this something we can fix in the main? |
Sorry I don't fully understand, what do you mean? |
|
@patrickvonplaten can we take a look to see if it's ok now? think the test failure is not relevant |
|
The documentation is not available anymore as the PR was closed or merged. |
|
We'll need to solve the merge conflict here I'm afraid |
…onplaten Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
16d60e4 to
a8abb26
Compare
Co-Authored-By: YiYi Xu <yixu310@gmail.com>
|
@patrickvonplaten @yiyixuxu This should be ready for merge. Had to rewrite the commit history with rebase to solve the merge conflict we had earlier, however it should still show Yiyi as the author of the commits made. |
* deprecated: KarrasVeScheduler, ScoreSdeVpScheduler * delete tests relevant to deprecated schedulers * chore: run make style * fix: import error caused due to incorrect _import_structure after deprecation * fix: ScoreSdeVpScheduler was not importable from diffusers * remove import added by assumption * Update src/diffusers/schedulers/__init__.py as suggested by @patrickvonplaten Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com> * make it a part deprecated * Apply suggestions from code review Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com> * Fix * fix * fix doc * fix doc....again....... * remove karras_ve test folder Co-Authored-By: YiYi Xu <yixu310@gmail.com> --------- Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com> Co-authored-by: Sayak Paul <spsayakpaul@gmail.com> Co-authored-by: YiYi Xu <yixu310@gmail.com> Co-authored-by: yiyixuxu <yixu310@gmail,com>
* deprecated: KarrasVeScheduler, ScoreSdeVpScheduler * delete tests relevant to deprecated schedulers * chore: run make style * fix: import error caused due to incorrect _import_structure after deprecation * fix: ScoreSdeVpScheduler was not importable from diffusers * remove import added by assumption * Update src/diffusers/schedulers/__init__.py as suggested by @patrickvonplaten Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com> * make it a part deprecated * Apply suggestions from code review Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com> * Fix * fix * fix doc * fix doc....again....... * remove karras_ve test folder Co-Authored-By: YiYi Xu <yixu310@gmail.com> --------- Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com> Co-authored-by: Sayak Paul <spsayakpaul@gmail.com> Co-authored-by: YiYi Xu <yixu310@gmail.com> Co-authored-by: yiyixuxu <yixu310@gmail,com>




What does this PR do?
Fixes #5257.
Please let me know if any other changes are required. Thanks!
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
@yiyixuxu