Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# This file will be sourced in init.sh
# https://raw.githubusercontent.com/ai-dock/comfyui/main/config/provisioning/flux1-dev.sh
# Packages are installed after nodes so we can fix them...
if [ -z "${CIVIT_AI_TOKEN}" ]; then
echo "CIVIT_AI_TOKEN is not set. Exiting."
#!/bin/bash
export HF_HUB_ETAG_TIMEOUT=500
python -m venv venv
source venv/bin/activate
pip install Flask huggingface_hub[cli] diffusers[torch] torch torchvision transformers sentencepiece protobuf accelerate optimum-quanto
huggingface-cli login --token $HF_TOKEN
python_file="flux_on_potato.py"
cat << EOF > $python_file
import logging
@twinnedAI
twinnedAI / Flux_Provisioning.sh
Last active August 21, 2024 19:16
FluxProvisioning.sh
#!/bin/bash
# This file will be sourced in init.sh
# https://raw.githubusercontent.com/ai-dock/comfyui/main/config/provisioning/flux1-dev.sh
# Packages are installed after nodes so we can fix them...
if [ -z "${HF_TOKEN}" ]; then
echo "HF_TOKEN is not set. Exiting."
#!/bin/bash
# This file will be sourced in init.sh
# Namespace functions with provisioning_
# https://raw.githubusercontent.com/ai-dock/fooocus/main/config/provisioning/default.sh
### Edit the following arrays to suit your workflow - values must be quoted and separated by newlines or spaces.
DISK_GB_REQUIRED=30
DEFAULT_TOKEN="123456789"
#!/bin/bash
# This file will be sourced in init.sh
# https://raw.githubusercontent.com/ai-dock/comfyui/main/config/provisioning/default.sh
# Packages are installed after nodes so we can fix them...
PYTHON_PACKAGES=(
#"opencv-python==4.7.0.72"