You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix schedulers zero SNR and rescale classifier free guidance (#3664)
* Implement option for rescaling betas to zero terminal SNR
* Implement rescale classifier free guidance in pipeline_stable_diffusion.py
* focus on DDIM
* make style
* make style
* make style
* make style
* Apply suggestions from Peter Lin
* Apply suggestions from Peter Lin
* make style
* Apply suggestions from code review
* Apply suggestions from code review
* make style
* make style
---------
Co-authored-by: MaxWe00 <[email protected]>
Co-authored-by: Patrick von Platen <[email protected]>
parser.add_argument("--push_to_hub", action="store_true", help="Whether or not to push the model to the Hub.")
309
309
parser.add_argument("--hub_token", type=str, default=None, help="The token to use to push to the Model Hub.")
310
+
parser.add_argument(
311
+
"--prediction_type",
312
+
type=str,
313
+
default=None,
314
+
help="The prediction_type that shall be used for training. Choose between 'epsilon' or 'v_prediction' or leave `None`. If left to `None` the default prediction type of the scheduler: `noise_scheduler.config.prediciton_type` is chosen.",
parser.add_argument("--push_to_hub", action="store_true", help="Whether or not to push the model to the Hub.")
274
274
parser.add_argument("--hub_token", type=str, default=None, help="The token to use to push to the Model Hub.")
275
+
parser.add_argument(
276
+
"--prediction_type",
277
+
type=str,
278
+
default=None,
279
+
help="The prediction_type that shall be used for training. Choose between 'epsilon' or 'v_prediction' or leave `None`. If left to `None` the default prediction type of the scheduler: `noise_scheduler.config.prediciton_type` is chosen.",
# Copied from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline with Stable->Alt, CLIPTextModel->RobertaSeriesModelWithTransformation, CLIPTokenizer->XLMRobertaTokenizer, AltDiffusionSafetyChecker->StableDiffusionSafetyChecker
0 commit comments