compvis / attribute-control Goto Github PK
View Code? Open in Web Editor NEWFine-Grained Subject-Specific Attribute Expression Control in T2I Models
License: MIT License
Fine-Grained Subject-Specific Attribute Expression Control in T2I Models
License: MIT License
Thanks for your excellent work! But when I run the Learning-based Method, I met following errors:
[2024-04-02 16:40:02,359][__main__][INFO] - Starting optimization...
Optimizing: 0%| | 0/1000 [02:46<?, ?it/s]
Error executing job with overrides: ['device=cuda:0', 'model=sd15', 'prompts=people/age']
Traceback (most recent call last):
File "/home/yinzijin/attribute-control/learn_delta.py", line 81, in main
eps_p = model.predict_eps(prompts_embedded['prompt_positive'], x_t, t_relative).unsqueeze(0)
File "/home/yinzijin/attribute-control/attribute_control/model/model.py", line 223, in predict_eps
return self._get_eps_pred(t, start_sample, self.pipe.unet(start_sample, t, encoder_hidden_states=self._get_pipe_kwargs(embs, embs_neg=None, start_sample=None)['prompt_embeds']).sample)
File "/home/yinzijin/attribute-control/attribute_control/model/model.py", line 164, in _get_eps_pred
return (sample - beta_prod_t ** (0.5) * model_output) / alpha_prod_t ** (0.5)
RuntimeError: The size of tensor a (2) must match the size of tensor b (64) at non-singleton dimension 3
I have tried sdxl and sd15, but the error remains. My environment is:
torch 2.2.0+cu121
torchvision 0.17.0+cu121
diffusers 0.27.2
accelerate 0.28.0
Do you have any ideas on how to fix this ?
Looks very good for the imag editing,thanks for your Excellent work.
Do you have plans for launching ComfyUI nodes?
This is great! Do you plant to implement support for real image editing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.