colab should be good now (#623)

This commit is contained in:
lllyasviel 2023-10-10 03:39:25 -07:00 committed by GitHub
parent 53573fa073
commit e44e1e5b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 3 deletions

1
colab_fix.txt Normal file
View File

@ -0,0 +1 @@
{"default_refiner": ""}

36
fooocus_colab.ipynb Normal file
View File

@ -0,0 +1,36 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "VjYy0F2gZIPR"
},
"outputs": [],
"source": [
"!pip install pygit2==1.12.2\n",
"%cd /content\n",
"!git clone https://github.com/lllyasviel/Fooocus\n",
"%cd /content/Fooocus\n",
"!cp colab_fix.txt user_path_config.txt\n",
"!python entry_with_update.py --share\n"
]
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"gpuType": "T4",
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 0
}

View File

@ -94,13 +94,13 @@ Please open an issue if you use similar devices but still cannot achieve accepta
### Colab
(Last tested - 2023 Sep 13)
(Last tested - 2023 Oct 10)
| Colab | Info
| --- | --- |
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lllyasviel/Fooocus/blob/colab/colab.ipynb) | Fooocus Colab Version
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/lllyasviel/Fooocus/blob/main/fooocus_colab.ipynb) | Fooocus Official
Note that this link is optimized for Google Colab - the codes may be different from offline Fooocus for better Colab experience.
Note that this Colab will disable refiner by default because Colab free's resource is relatively limited.
Thanks to [camenduru](https://github.com/camenduru)!