This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |