Skip to content

Commit ad05621

Browse files
committed
initial commit
0 parents  commit ad05621

File tree

5 files changed

+99
-0
lines changed

5 files changed

+99
-0
lines changed

.cloudflared/cert.pem

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
-----BEGIN PRIVATE KEY-----
2+
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgsjQ9b6FeLMRJwhhH
3+
vrgqkNue9XODalH4KX3sq9bbAaihRANCAAS3DsBNMzuCpgME6Zh/YBqjNUm9LFYx
4+
pDIZhFXn0D8mbOwH5685/O8TP9ZzlGRNyg2/mRP9FIFbbDn2SYoKAfkm
5+
-----END PRIVATE KEY-----
6+
-----BEGIN CERTIFICATE-----
7+
MIIDJTCCAsygAwIBAgIUYhMwBNDYcFgEyIaSzCdNyiImMmIwCgYIKoZIzj0EAwIw
8+
gY8xCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1T
9+
YW4gRnJhbmNpc2NvMRkwFwYDVQQKExBDbG91ZEZsYXJlLCBJbmMuMTgwNgYDVQQL
10+
Ey9DbG91ZEZsYXJlIE9yaWdpbiBTU0wgRUNDIENlcnRpZmljYXRlIEF1dGhvcml0
11+
eTAeFw0yNDA5MTMxNDU0MDBaFw0zOTA5MTAxNDU0MDBaMGIxGTAXBgNVBAoTEENs
12+
b3VkRmxhcmUsIEluYy4xHTAbBgNVBAsTFENsb3VkRmxhcmUgT3JpZ2luIENBMSYw
13+
JAYDVQQDEx1DbG91ZEZsYXJlIE9yaWdpbiBDZXJ0aWZpY2F0ZTBZMBMGByqGSM49
14+
AgEGCCqGSM49AwEHA0IABLcOwE0zO4KmAwTpmH9gGqM1Sb0sVjGkMhmEVefQPyZs
15+
7Afnrzn87xM/1nOUZE3KDb+ZE/0UgVtsOfZJigoB+SajggEwMIIBLDAOBgNVHQ8B
16+
Af8EBAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQU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TUNNEL TOKEN-----

.cloudflared/config.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
tunnel: f006a5e1-5774-47a0-b866-c367cc2c5841
2+
credentials-file: /root/.cloudflared/f006a5e1-5774-47a0-b866-c367cc2c5841.json
3+
4+
ingress:
5+
- hostname: comfyuiflux.jekverse.site
6+
service: http://localhost:8188
7+
- service: http_status:404
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"AccountTag":"ba7a1ac7ea2a0045da33c55bada7693b","TunnelSecret":"KlNnaDVeBrn3wsAHf/4A0uwfsAdi+vi214DfB5b7MnM=","TunnelID":"f006a5e1-5774-47a0-b866-c367cc2c5841"}

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# ComfyUI Setup with Flux Dev FP16 Model
2+
3+
This repository provides an easy setup for ComfyUI using the Flux Dev FP16 model. It is specifically designed for users working with **Paperspace Gradient**.
4+
5+
> **Note:** This setup has been tested with the A4000 GPU. It's not recommended for GPUs below this specification.
6+
7+
## Prerequisites
8+
9+
- A Paperspace Gradient account
10+
- A GPU with performance equivalent to or better than the A4000
11+
12+
## Quick Start
13+
14+
1. Open the terminal in your Paperspace Gradient environment.
15+
2. Run the following command to set up the environment:
16+
17+
```bash
18+
chmod +x setup.sh && ./setup.sh
19+
```
20+
21+
3. Wait for the setup process to complete.
22+
23+
That's it! Once the process finishes, your environment should be ready to go.
24+
25+
## Disclaimer
26+
27+
This repository is intended exclusively for users running their workflows on **Paperspace Gradient**. Other platforms may not be compatible or provide the same level of performance.

setup.sh

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
cd /. && mkdir content && cd content
4+
python -m venv venv && . venv/bin/activate
5+
pip install pyngrok torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124
6+
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-ubuntu2404.pin
7+
mv cuda-ubuntu2404.pin /etc/apt/preferences.d/cuda-repository-pin-600
8+
wget https://developer.download.nvidia.com/compute/cuda/12.6.1/local_installers/cuda-repo-ubuntu2404-12-6-local_12.6.1-560.35.03-1_amd64.deb
9+
dpkg -i cuda-repo-ubuntu2404-12-6-local_12.6.1-560.35.03-1_amd64.deb
10+
cp /var/cuda-repo-ubuntu2404-12-6-local/cuda-*-keyring.gpg /usr/share/keyrings/
11+
apt-get update
12+
apt-get -y install cuda-toolkit-12-6 aria2 -yy
13+
git clone https://github.com/comfyanonymous/ComfyUI.git
14+
cd ComfyUI
15+
pip install -r requirements.txt
16+
cd custom_nodes
17+
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
18+
cd /content/ComfyUI
19+
aria2c -x 16 -s 16 -d /content/ComfyUI/models/clip/ -o clip_l.safetensors https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/clip_l.safetensors
20+
aria2c -x 16 -s 16 -d /content/ComfyUI/models/clip/ -o t5xxl_fp16.safetensors https://huggingface.co/comfyanonymous/flux_text_encoders/resolve/main/t5xxl_fp16.safetensors
21+
aria2c -x 16 -s 16 -d /content/ComfyUI/models/vae/ -o ae.safetensors https://huggingface.co/black-forest-labs/FLUX.1-schnell/resolve/main/ae.safetensors
22+
aria2c -x 16 -s 16 -d /content/ComfyUI/models/unet/ -o flux1-dev.safetensors --header "Authorization: Bearer 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" https://huggingface.co/black-forest-labs/FLUX.1-dev/resolve/main/flux1-dev.safetensors
23+
# Minta input dari user
24+
echo "Masukkan token Ngrok Anda:"
25+
read TOKEN
26+
27+
# Jalankan perintah untuk menambahkan token ke konfigurasi Ngrok
28+
ngrok config add-authtoken $TOKEN
29+
echo "Token Ngrok berhasil ditambahkan!"
30+
python main.py

0 commit comments

Comments
 (0)