Save $$$ on RunPod! Create a Shell (.sh) Script to Reduce ComfyUI Startup Time 🚀

  Рет қаралды 258

The Art-Official Trainer

The Art-Official Trainer

Күн бұрын

Пікірлер: 26
@PhantasyAI0
@PhantasyAI0 Ай бұрын
First subscriber! Great videos man. Learning runpod because of you :)
@TheArt-OfficialTrainer
@TheArt-OfficialTrainer Ай бұрын
@@PhantasyAI0 Glad to hear it! I’ll have a lot more videos coming out, so stay tuned! :)
@ModRebelMockups
@ModRebelMockups 25 күн бұрын
what would a line in the install.sh file look like if i added it to this script to download a comfy node, like comfyui-essentials, for example? where to put?
@TheArt-OfficialTrainer
@TheArt-OfficialTrainer 24 күн бұрын
Very similar to installing the comfy manager! Find the git repo, and clone it into custom_nodes folder, then install the requirements.txt file with “pip install -r requirements.txt” if the git repo has a requirements.txt file
@ModRebelMockups
@ModRebelMockups 19 күн бұрын
@@TheArt-OfficialTrainer thanks!
@ModRebelMockups
@ModRebelMockups 27 күн бұрын
could u pls show how to add hugging face token to the aria2c line to add something that reqs a hf token?
@TheArt-OfficialTrainer
@TheArt-OfficialTrainer 27 күн бұрын
Sure! I can do a video on huggingface in the future. Add this to the aria2c command: --header “Authorization: Bearer mytoken123" So it should look like: aria2c -c -x 16 -s 16 --header “Authorization: Bearer mytoken123" url.com -d /directory -o filename.safetensors
@ModRebelMockups
@ModRebelMockups 25 күн бұрын
@@TheArt-OfficialTrainer thanks! i am trying to follow your vid. i put in pip install -r requirements.txt into terminal in runpod and it did some stuff than returned error: Downloading torch-2.5.1-cp311-cp311-manylinux1_x86_64.whl (906.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.4/906.5 MB 192.7 MB/s eta 0:00:05 ERROR: Exception: Traceback (most recent call last): File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher yield File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 561, in read data = self._fp_read(amt) if not fp_closed else b"" ^^^^^^^^^^^^^^^^^^ File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 527, in _fp_read return self._fp.read(amt) if amt is not None else self._fp.read() ^^^^^^^^^^^^^^^^^^ File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 98, in read data: bytes = self.__fp.read(amt) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/http/client.py", line 473, in read s = self.fp.read(amt) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/socket.py", line 718, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/ssl.py", line 1314, in recv_into return self.read(nbytes, buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/ssl.py", line 1166, in read return self._sslobj.read(len, buffer) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TimeoutError: The read operation timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper status = run_func(*args) ^^^^^^^^^^^^^^^ File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 245, in wrapper return func(self, options, args) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 377, in run requirement_set = resolver.resolve( ^^^^^^^^^^^^^^^^^ File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 179, in resolve self.factory.preparer.prepare_linked_requirements_more(reqs) File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 552, in prepare_linked_requirements_more self._complete_partial_requirements( File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 467, in _complete_partial_requirements for link, (filepath, _) in batch_download: File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_internal/network/download.py", line 183, in __call__ for chunk in chunks: File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_internal/cli/progress_bars.py", line 53, in _rich_progress_bar for chunk in iterable: File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_internal/network/utils.py", line 63, in response_chunks for chunk in response.raw.stream( File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 622, in stream data = self.read(amt=amt, decode_content=decode_content) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 560, in read with self._error_catcher(): File "/usr/lib/python3.11/contextlib.py", line 158, in __exit__ self.gen.throw(typ, value, traceback) File "/workspace/ComfyUI/venv/lib/python3.11/site-packages/pip/_vendor/urllib3/response.py", line 443, in _error_catcher raise ReadTimeoutError(self._pool, None, "Read timed out.") pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. what happened?
@ModRebelMockups
@ModRebelMockups 25 күн бұрын
fixed it. needed to first update pip with pip install --upgrade pip before running pip install -r requirements.txt.
@TheArt-OfficialTrainer
@TheArt-OfficialTrainer 24 күн бұрын
Glad you were able to figure out the fix!
@ModRebelMockups
@ModRebelMockups 19 күн бұрын
​@@TheArt-OfficialTrainer what would this line look like for a civitai model w their auth token?
@Garycarlyle
@Garycarlyle 5 күн бұрын
The clips are not in the same folder as the Flux1-schnell or the ae so no idea how those two paths worked
@TheArt-OfficialTrainer
@TheArt-OfficialTrainer 5 күн бұрын
Look at the “-d” flag, the path after that is the folder inside the comfyui folder that you should put the file in
@ModRebelMockups
@ModRebelMockups 25 күн бұрын
so ok i made the script. i ran it the first time i created the pod. i exited the pod. not deleting it tho. reopening it. now what do i do to run comfy again? cuz the comfyui folder is already there so i dont need to run the script again. but comfy isnt automatically opening on 3000
@ModRebelMockups
@ModRebelMockups 25 күн бұрын
nvm figured it out. start the python env and run the python main.py again. leaving here in case helps someone else
@DM-dy6vn
@DM-dy6vn Ай бұрын
Obviously, ComfyUI saves the last used workflow somewhere, and reload it automatically even after a clean fresh installation. I don't know how to feel about it.
@TheArt-OfficialTrainer
@TheArt-OfficialTrainer Ай бұрын
If you’re using RunPod, I actually think it’s cached on the webpage, so if you use the same pod and do a clean install, it uses the previously cached webpage to reload. If you’re using your own local machine, I’m not sure..
The Confusion With Linux Shells
12:19
DistroTube
Рет қаралды 13 М.
We can now write scripts using these languages, but is it worth it?
8:28
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
I Can Train Neural Networks Without Using Gradient Descent!
5:22
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 38 М.
Deepseek R1 Explained by a Retired Microsoft Engineer
10:07
Dave's Garage
Рет қаралды 2,2 МЛН
ComfyUI Notebook for RunPod - Launch 🚀 ComfyUI in under 5 mins
11:20
WeirdWonderful AI Art
Рет қаралды 283
Running ComfyUI on RunPod
11:16
Ryanontheinside
Рет қаралды 1 М.
DeepSeek is a Game Changer for AI - Computerphile
19:58
Computerphile
Рет қаралды 1,2 МЛН
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 260 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН