taited / sgdiff Goto Github PK
View Code? Open in Web Editor NEWOfficial implementation of SGDiff (ACM MM '23)
Home Page: https://taited.github.io/sgdiff-project
License: Apache License 2.0
Official implementation of SGDiff (ACM MM '23)
Home Page: https://taited.github.io/sgdiff-project
License: Apache License 2.0
Thanks for the great work! When will the dataset be available?
Thank you for an outstanding job!
When do you plan to release the training code? In particular, does the perceptual loss in the paper use StableDiffusionPipeline to obtain the generated image after each noise estimation?
Looking forward for your reply.
Hello, I am very interested in your work. When can you release training code?
The SCA moudle adopt semantic features form clip and text features form clip, the Q is only from text, K and V are added by text and image. And your picture in the paper shows that the Q, K, V have different shape, so how to do Q@K? Is this is your SCA code?
def forward(self, img, text_emb): if self.clip_norm: img = (img + 1) / 2 img = F.batch_norm(img, self.mean.to(self.device), self.std.to(self.device)) img = F.interpolate(img, (224, 224)) image_features = self.model(img) if self.last_layer_proj: image_features = torch.einsum('bld,ds->bls', image_features, self.model.proj) if self.cross_attn is not None: emb_features = self.cross_attn( text_emb.permute(0, 2, 1), image_features.permute(0, 2, 1)).permute(0, 2, 1) if self.skip_module is not None: if self.learned_length: residual = self.skip_module(emb_features.permute(0, 2, 1)) residual = residual.permute(0, 2, 1) else: residual = self.skip_module(emb_features) text_emb += residual return text_emb
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.