question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Switching the branch of the colab to main `diffusers` branch

See original GitHub issue

Hey @TheLastBen,

Your fast dream booth google colab is amazing - it’s super user-friendly and needs no explanation to run it 😃 I noticed that you are using a fork of diffusers that you maintain under https://github.com/TheLastBen/diffusers

Since some weeks we also have full xformers support in huggingface/diffusers and when pip installing diffusers from main and adding this PR to your dreambooth example: https://github.com/TheLastBen/diffusers/pull/3 your google colab runs exactly as fast as it does when using your fork.

Essentially all that needs to be done in the google colab is to replace:

!pip install -q git+https://github.com/TheLastBen/diffusers with 
!pip install -q git+https://github.com/huggingface/diffusers

This way you could maybe just host your adapted train_dreambooth.py example file in this “fast-stable-diffusion” repo and then fully rely on the official main branch of diffusers instead of your branch.

I think it could make a lot of sense to shift the dependency to the main branch of diffusers so that

Very curious to hear thoughts and of the community 😃

Also cc @apolinario

Issue Analytics

  • State:open
  • Created 10 months ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
TheLastBencommented, Nov 20, 2022

I’ll try again and check closely.

1reaction
TheLastBencommented, Nov 18, 2022

Used only xformers

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to switch between GitHub branches in Google Colab
Yes, for example: !git clone https://github.com/googlecolab/colabtools.git !cd colabtools && git checkout incoming
Read more >
stable_diffusion.ipynb - Colaboratory - Google Colab
This Colab notebook shows how to use Stable Diffusion with the Hugging Face Diffusers library. Let's get started!
Read more >
Stable Diffusion with Diffusers - Hugging Face
You can do so by loading the weights from the fp16 branch and by telling diffusers to expect the weights to be in...
Read more >
diffusers - PyPI
You can do so by telling diffusers to load the weights from "bf16" branch. ... You can also run this example on colab...
Read more >
github workflow with colab tutorial | nbdev_colab_helper
github workflow with colab workflow · Create a new branch in github · Clone the new branch in colab · Make some changes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found