mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
add: pushtohubmixin to pipelines and schedulers docs overview. (#4607)
* add: pushtohubmixin to pipelines and schedulers docs overview. * Apply suggestions from code review Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com> --------- Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
This commit is contained in:
@@ -34,3 +34,7 @@ Pipelines do not offer any training functionality. You'll notice PyTorch's autog
|
||||
## FlaxDiffusionPipeline
|
||||
|
||||
[[autodoc]] pipelines.pipeline_flax_utils.FlaxDiffusionPipeline
|
||||
|
||||
## PushToHubMixin
|
||||
|
||||
[[autodoc]] utils.PushToHubMixin
|
||||
|
||||
@@ -57,4 +57,8 @@ All schedulers are built from the base [`SchedulerMixin`] class which implements
|
||||
|
||||
[`KarrasDiffusionSchedulers`] are a broad generalization of schedulers in 🤗 Diffusers. The schedulers in this class are distinguished at a high level by their noise sampling strategy, the type of network and scaling, the training strategy, and how the loss is weighed.
|
||||
|
||||
The different schedulers in this class, depending on the ordinary differential equations (ODE) solver type, fall into the above taxonomy and provide a good abstraction for the design of the main schedulers implemented in 🤗 Diffusers. The schedulers in this class are given [here](https://github.com/huggingface/diffusers/blob/a69754bb879ed55b9b6dc9dd0b3cf4fa4124c765/src/diffusers/schedulers/scheduling_utils.py#L32).
|
||||
The different schedulers in this class, depending on the ordinary differential equations (ODE) solver type, fall into the above taxonomy and provide a good abstraction for the design of the main schedulers implemented in 🤗 Diffusers. The schedulers in this class are given [here](https://github.com/huggingface/diffusers/blob/a69754bb879ed55b9b6dc9dd0b3cf4fa4124c765/src/diffusers/schedulers/scheduling_utils.py#L32).
|
||||
|
||||
## PushToHubMixin
|
||||
|
||||
[[autodoc]] utils.PushToHubMixin
|
||||
@@ -372,7 +372,7 @@ def _get_model_file(
|
||||
|
||||
class PushToHubMixin:
|
||||
"""
|
||||
A Mixin containing the functionality to push a model/scheduler to the Hugging Face Hub.
|
||||
A Mixin to push a model, scheduler, or pipeline to the Hugging Face Hub.
|
||||
"""
|
||||
|
||||
def _upload_folder(
|
||||
@@ -440,7 +440,7 @@ class PushToHubMixin:
|
||||
# Push the `unet` to your namespace with the name "my-finetuned-unet".
|
||||
unet.push_to_hub("my-finetuned-unet")
|
||||
|
||||
# Push the {object} to an organization with the name "my-finetuned-unet".
|
||||
# Push the `unet` to an organization with the name "my-finetuned-unet".
|
||||
unet.push_to_hub("your-org/my-finetuned-unet")
|
||||
```
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user