Comments (3)
can you provide a reproducible code example?
from diffusers.
I'm not sure why I even need to give an example when I pointed out that from_single_file is missing from the pipeline.
But from modifying a line in the example code here: https://huggingface.co/docs/diffusers/en/training/t2i_adapters
Using diffusers 0.27.2
from diffusers import StableDiffusionXLAdapterPipeline, T2IAdapter, EulerAncestralDiscreteSchedulerTest
from diffusers.utils import load_image
import torch
# modifed line below doesn't work, doesn't have this method like most of the other pipelines/etc
adapter = T2IAdapter.from_single_file("path/to/adapter.safetensors", torch_dtype=torch.float16)
pipeline = StableDiffusionXLAdapterPipeline.from_single_file(
"path/to/model.safetensors", adapter=adapter, torch_dtype=torch.float16
)
pipeline.scheduler = EulerAncestralDiscreteSchedulerTest.from_config(pipe.scheduler.config)
pipeline.enable_xformers_memory_efficient_attention()
pipeline.enable_model_cpu_offload()
control_image = load_image("./conditioning_image_1.png")
prompt = "pale golden rod circle with old lace background"
generator = torch.manual_seed(0)
image = pipeline(
prompt, image=control_image, generator=generator
).images[0]
image.save("./output.png")
from diffusers.
cc @DN6 here - do we plan to support T2IAdapter?
from diffusers.
Related Issues (20)
- [ko] Translating docs(Conceptual Guides) to Korean. HOT 4
- Combining community pipeline for image generation HOT 3
- custom_pipeline not being cached
- Support MuLan, a plug-and-play language adapter to adapt existing diffusion model for up to 110+ languages without additional training
- PyTorch 2.3.0 Incompatibility with Current Diffusers Library HOT 5
- Add support for custom CLIPTextModelWithProjection in SDXL for new language training
- how can i know what the model base are HOT 2
- ConsistentID: Portrait Generation with Multimodal Fine-Grained Identity Preservation
- How to implement `IPAdapterAttnProcessor2_0` with xformers HOT 1
- [training examples] reduce complexity by running final validations before export
- SDXL Training Fails for Multi GPU Machine HOT 6
- Instruct-pix2pix pipeline: add ability to pass `cross_attention_kwargs` in call method HOT 2
- Attention in Motion Module of UNetMotionModel HOT 2
- Increasing RAM usage with enable_model_cpu_offload HOT 7
- Type mismatch for LEDITS++ HOT 3
- Bug: Inpaint with IP Adapter (face+style) HOT 2
- RuntimeError: operator torchvision::nms does not exist HOT 4
- config file is not a valid json file HOT 4
- A way to know from the documentation when a given class was introduced
- `from_pipe` method is not working with `MultiControlNetModel` pipeline component HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diffusers.