Skip to content
代码片段 群组 项目
提交 d0b16c99 编辑于 作者: comfyanonymous's avatar comfyanonymous
浏览文件

Add a colab notebook.

上级 b9308407
No related branches found
No related tags found
无相关合并请求
......@@ -49,6 +49,10 @@ Dragging a generated png on the webpage or loading one will give you the full wo
You can use () to change emphasis of a word or phrase like: (good code:1.2) or (bad code:0.8). The default emphasis for () is 1.1. To use () characters in your actual prompt escape them like \\( or \\).
### Colab Notebook
To run it on colab you can use my colab notebook here: [Colab Notebook](notebooks/comfyui_colab.ipynb)
### Fedora
To get python 3.10 on fedora:
......
%% Cell type:markdown id: tags:
Git clone the repo and install the requirements.
%% Cell type:code id: tags:
```
!git clone https://github.com/comfyanonymous/ComfyUI
%cd ComfyUI
!pip install -r requirements.txt
```
%% Cell type:markdown id: tags:
Download the models/checkpoints/vae:
%% Cell type:code id: tags:
```
!wget https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt -P ./models/checkpoints/
!wget https://huggingface.co/stabilityai/sd-vae-ft-mse-original/blob/main/vae-ft-mse-840000-ema-pruned.safetensors -P ./models/vae/
```
%% Cell type:markdown id: tags:
Launch a http server to see the output pics:
%% Cell type:code id: tags:
```
from google.colab import output
output.serve_kernel_port_as_window(8000)
get_ipython().system_raw('cd output && python3 -m http.server 8000 &')
```
%% Cell type:markdown id: tags:
Run ComfyUI:
%% Cell type:code id: tags:
```
from google.colab import output
print("click this once the GUI is loaded:")
output.serve_kernel_port_as_window(8188)
!sed -i 's/127.0.0.1/0.0.0.0/g' main.py
!python main.py
```
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册