geevegeorge / stable-craiyon Goto Github PK
View Code? Open in Web Editor NEWA colab notebook that combines Stable Diffusion + DALL-E Mini (Craiyon)
A colab notebook that combines Stable Diffusion + DALL-E Mini (Craiyon)
Here is the error:
AttributeError Traceback (most recent call last)
in
1 generator = torch.Generator(device=device).manual_seed(1024)
2 with autocast("cuda"):
----> 3 images = pipe(prompt=prompt, init_image=init_image, strength=0.75, guidance_scale=7.5, generator=generator)["sample"]
1 frames
in call(self, prompt, init_image, strength, num_inference_steps, guidance_scale, eta, generator, output_type)
56
57 # encode the init image into latents and scale the latents
---> 58 init_latents = self.vae.encode(init_image.to(self.device)).sample()
59 init_latents = 0.18215 * init_latents
60
AttributeError: 'AutoencoderKLOutput' object has no attribute 'sample'
I found a similar problem in a different notebook.
There they responded:
We need to update this notebook for diffusers==0.3.0!
For now could you replace:
latents = vae.encode(batch["pixel_values"]).sample().detach()
with
latents = vae.encode(batch["pixel_values"]).latent_dist.sample().detach()
but I couldn't find out what to change in this Stable Craiyon notebook
"Your session crashed for an unknown reason."
WARNING:root:kernel a2d071e6-d71d-4338-8dec-352d2617cda3 restarted
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.