Instructions to use YiYiXu/diff-diff-mellon with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use YiYiXu/diff-diff-mellon with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("YiYiXu/diff-diff-mellon", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update diff-diff.py
Browse files- diff-diff.py +0 -10
diff-diff.py
CHANGED
|
@@ -13,16 +13,6 @@ logger.setLevel(logging.DEBUG)
|
|
| 13 |
from custom import components
|
| 14 |
|
| 15 |
|
| 16 |
-
class DiffDiff(NodeBase):
|
| 17 |
-
def __init__(self, node_id=None):
|
| 18 |
-
super().__init__(node_id)
|
| 19 |
-
from diffusers.modular_pipelines.node_utils import ModularNode
|
| 20 |
-
self._diffdiff_block = ModularNode.from_pretrained("YiYiXu/modular-diffdiff", trust_remote_code=True)
|
| 21 |
-
self._diffdiff_block.setup(components=components)
|
| 22 |
-
|
| 23 |
-
def execute(self, **kwargs):
|
| 24 |
-
return self._diffdiff_block.execute(**kwargs)
|
| 25 |
-
|
| 26 |
|
| 27 |
class DiffDiffDenoise(NodeBase):
|
| 28 |
def __init__(self, node_id=None):
|
|
|
|
| 13 |
from custom import components
|
| 14 |
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
class DiffDiffDenoise(NodeBase):
|
| 18 |
def __init__(self, node_id=None):
|