Thelocallab commited on
Commit
1a30bb6
·
verified ·
1 Parent(s): 1a11f57

Delete flux_tranier_BJT_installer.sh

Browse files
Files changed (1) hide show
  1. flux_tranier_BJT_installer.sh +0 -82
flux_tranier_BJT_installer.sh DELETED
@@ -1,82 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Function to check if a command exists
4
- command_exists() {
5
- command -v "$1" >/dev/null 2>&1
6
- }
7
-
8
- # Create installation directory
9
- mkdir -p comfyui-installer
10
- cd comfyui-installer
11
-
12
- # Install required packages if not present
13
- echo "Checking and installing required packages..."
14
- if ! command_exists curl; then
15
- sudo yum update -y && sudo yum install -y curl
16
- fi
17
- if ! command_exists git; then
18
- sudo yum install -y git
19
- fi
20
-
21
- # Download and install Miniconda if not exists
22
- if [ ! -d "miniconda3" ]; then
23
- echo "Downloading Miniconda..."
24
- curl -L -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
25
-
26
- if [ $? -ne 0 ]; then
27
- echo "Error downloading Miniconda. Please check your internet connection and try again."
28
- exit 1
29
- fi
30
-
31
- echo "Installing Miniconda..."
32
- bash miniconda.sh -b -p $PWD/miniconda3
33
- rm miniconda.sh
34
- fi
35
-
36
- # Add Miniconda to PATH for this session
37
- export PATH="$PWD/miniconda3/bin:$PATH"
38
-
39
- # Create and activate conda environment
40
- echo "Creating conda environment for ComfyUI..."
41
- conda create -y -n comfyui-env python=3.10
42
- conda activate comfyui-env
43
-
44
- # Clone ComfyUI repositories
45
- echo "Cloning ComfyUI and dependencies..."
46
- git clone https://github.com/comfyanonymous/ComfyUI.git
47
- cd ComfyUI
48
- git clone https://github.com/ltdrdata/ComfyUI-Manager.git custom_nodes/ComfyUI-Manager
49
- git clone https://github.com/rgthree/rgthree-comfy.git custom_nodes/rgthree-comfy
50
- git clone https://github.com/kijai/ComfyUI-FluxTrainer.git custom_nodes/ComfyUI-FluxTrainer
51
- git clone https://github.com/LarryJane491/Image-Captioning-in-ComfyUI.git custom_nodes/Image-Captioning-in-ComfyUI
52
- git clone https://github.com/kijai/ComfyUI-KJNodes.git custom_nodes/ComfyUI-KJNodes
53
- git clone https://github.com/WASasquatch/was-node-suite-comfyui.git custom_nodes/was-node-suite-comfyui
54
- cd ..
55
-
56
- # Install Python requirements for ComfyUI
57
- echo "Installing ComfyUI Python requirements..."
58
- cd ComfyUI
59
- pip install -r requirements.txt
60
- pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
61
- pip install -r ./custom_nodes/ComfyUI-Manager/requirements.txt
62
- pip install -r ./custom_nodes/ComfyUI-FluxTrainer/requirements.txt
63
- pip install -r ./custom_nodes/ComfyUI-KJNodes/requirements.txt
64
- pip install -r ./custom_nodes/rgthree-comfy/requirements.txt
65
- pip install -r ./custom_nodes/was-node-suite-comfyui/requirements.txt
66
- cd ..
67
-
68
- # Create start-comfyui.sh script
69
- echo "Creating start-comfyui.sh script..."
70
- cat > start-comfyui.sh << 'EOF'
71
- #!/bin/bash
72
- cd "$(dirname "$0")/ComfyUI"
73
- source ../miniconda3/bin/activate comfyui-env
74
- python main.py --listen
75
- EOF
76
- chmod +x start-comfyui.sh
77
-
78
- echo "Installation completed successfully!"
79
- echo "To start ComfyUI, run ./start-comfyui.sh from the comfyui-installer directory."
80
- echo "ComfyUI will be accessible at http://your_server_ip:8188"
81
-
82
- pause