MoonRide303 / Fooocus-MRE

Focus on prompting and generating
GNU General Public License v3.0
954 stars 56 forks source link

Colab: how to use models from google drive? #117

Open starwolf27 opened 1 year ago

starwolf27 commented 1 year ago

I've really enjoyed using your Colab version, and I've seen that you're able to load models and LORAs and use them somehow. I was wondering where in the google drive I should put models to be able to load them, and/or if there's any code I have to change to be able to load models from elsewhere in the drive.

barepixels commented 1 year ago

ask here https://github.com/camenduru/Fooocus-colab

TimothyAlexisVass commented 1 year ago

This will run Fooocus-MRE from your Google drive:

from google.colab import drive
drive.mount('/content/drive')
%cd /content/drive/MyDrive/
!git clone https://github.com/MoonRide303/Fooocus-MRE
%cd Fooocus-MRE
!cp settings-no-refiner.json settings.json
!pip install pygit2==1.12.2
!python /content/drive/MyDrive/Fooocus-MRE/entry_with_update.py --share

So you can put your models in the models folder there.