Open AB00k opened 9 months ago
Hi, thanks for your nice improvement!
To answer your question:
And yes, if you change the original/masked/example image, you have to re-run the masked finetuning, since this is a one-shot approach (which is not very nice :<)
pytorch_lightning.utilities.distributed
to pytorch_lightning.utilities.rank_zero
in ldm/models/diffusion/ddpm.py
line 20, and the issues will be resolved.or alternatively, try downgrading pytorch_lightning to v1.7.7 or v1.6.5 may solve it.
reference: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11458
There comes a new error, could you please run the notebook I have provided it would just take some minutes just run all the cells.
ModuleNotFoundError Traceback (most recent call last)
11 frames
/content/unipaint/ldm/models/autoencoder.py in
ModuleNotFoundError: No module named 'taming'
Hi, the code runs well in my local machine but i dont know why it gets so many errors when running on colabs.
Anyway, you can solve this error by adding these two lines in the import section,
sys.path.append('/content/unipaint/src/taming-transformers')
sys.path.append('/content/unipaint/src/clip')
For your reference, I have slightly modified your notebook as follows, where I have solved the known errors so far:
https://colab.research.google.com/drive/17c52SboRZwokqkICutL6Kh2yq9NpKmX-?usp=sharing
I am really sorry that I didn't successfully run the entire notebook due to the memory limit, it seems the free-version colab RAM is not enough for loading the entire model :(
First of all the notebook isn't very well structured like there are no cells added to download the dependencies and models etc and there are no proper comments like how would somebody know what is the purpose of masked finetuning section.
I want to make a notebook that anybody can simply use by just running every cell on google colab. I have structured a notebook but still having some issues.
1- What is the purpose of the masked fine tuning section do we have to run it or do masked fine tuning every time we run inference with original image, masked image and a example image?
2- when I run the section named Load_Images_and_Models I got following error: https://colab.research.google.com/drive/1hpTIa2E12xlEhrjGQGSSZ-O2sHw_D9H2?usp=sharing
Please see the following modified notebook https://colab.research.google.com/drive/1hpTIa2E12xlEhrjGQGSSZ-O2sHw_D9H2?usp=sharing