25 Commits

Author SHA1 Message Date
Stéphane Busso
7861b950aa Raise an error with model name if lora model loading fails (#148) 2025-04-02 14:10:09 +05:30
TSC
3374f36ec8 Remove auto dependency installations 2023-10-21 09:32:13 -05:00
TSC
93eb925686 Efficiency Nodes V2.0 2023-10-20 15:49:32 -05:00
JaredTherriault
c1c4c97469 Update tsc_utils.py
Resolve issue with loading vae
2023-10-18 11:59:20 -07:00
TSC
9634646b40 Improve Auto Package Installation
- Added a timeout of 7 seconds to the package installation process using subprocess.check_call. If any package installation exceeds this duration, it's terminated, and a timeout message is displayed.

- Improved error handling during package installation. If a package fails to install, the specific reason is now displayed to the user.
Split the error message into two lines for better readability: one line indicates the failure, and the next line provides the specific error message.

- Instead of relying solely on pip freeze to determine installed packages, added a function to check if a package is installed by attempting to import it. This provides a more direct and reliable way to verify if a package is available for use.

- Removed the use of subprocess.getoutput which was causing hangs for some users and replaced it with subprocess.run.
Streamlined the logic to determine whether to use the embedded Python executable or the system's Python for installations.
2023-09-11 18:17:34 -05:00
TSC
1479ea36a4 updated when to use embedded 2023-09-10 17:35:08 -05:00
TSC
359ff0f788 Use sys.executable for Pip Calls
This PR addresses an issue where the code could potentially use a global version of pip not associated with the running Python interpreter, leading to errors such as "module pip not found".
2023-09-10 14:09:51 -05:00
TSC
c8f21356e8 Generalize Auto-Package Installation Error Handling 2023-09-09 13:19:21 -05:00
TSC
8429544192 Update tsc_utils.py 2023-09-09 11:51:12 -05:00
TSC
efe4656caa Change how Web Extensions are Loaded
This change comes from changes made to ComfyUI from commmit https://github.com/comfyanonymous/ComfyUI/pull/1273
2023-09-09 11:49:23 -05:00
TSC
15a19c84fe Fix Baked VAE XY Plot Issues
Forced Checkpoints to always overwrite cache in order to always have a Baked VAE available to grab.
2023-09-06 09:11:43 -05:00
Dr.Lt.Data
1a0a59060d Merge branch 'Main' into feat/xy_capsule 2023-08-31 12:59:32 +09:00
TSC
92ff8fd8c3 V1.92 Efficiency Nodes MEGA Update (SDXL + MORE)
This PR is a huge update, I added/fixed so many things that I will explain all the updates later on the release notes.
2023-08-30 20:06:15 -05:00
Dr.Lt.Data
3b93d96319 feat:XY_Capsule 2023-08-30 23:34:15 +09:00
TSC
5ea2ba3623 Transformer/Diffuser LoRA Compatability
LoRA loading loads through Comfy's database, ensuring future proof compatability.
2023-08-21 08:31:55 -05:00
TSC
5bb31511ac Bug Fixes + Tiled VAE moved to KSamplers
This commit includes many changes:
- Improved installation of required python packages and improved logic when installation fails
- Moved VAE tile option from node_settings.json to the Efficient KSampler's "vae_decode" input
- Changed preview image logic, now its much less buggy
2023-08-13 10:41:59 -05:00
TSC
235e6aea01 Improved server_logic WebSocket Handling
Refined the server_logic function to better manage WebSocket disruptions:

- Integrated `handle_websocket_failure()` directly into `server_logic` to capture and inform about unexpected disconnection scenarios.
- Added conditionals to reset the `latest_image` when the WebSocket connection is deemed inactive.
- Ensured that the error handling mechanism is more resilient to abrupt connection terminations, especially in the context of receiving messages.
2023-08-10 19:49:29 -05:00
TSC
b1a9fb1416 Improve WebSocket error handling and connectivity
- Introduced `handle_websocket_failure()` to consolidate error handling and messaging.
- Removed redundant `websocket_status` checks in the server initialization function.
- Enhanced the `send_command_to_frontend()` function to handle potential WebSocket failures.
- Ensured error messages related to WebSocket failures are displayed only once.
2023-08-09 22:24:14 -05:00
TSC
d342e7228c Implement fallback for pip installations
This commit introduces a fallback mechanism for the package installation process. 

- If the `python_embedded` directory is not found, the installation defaults to the current Python environment.
- This ensures that packages are installed successfully regardless of the setup, enhancing compatibility across different machines.
2023-08-08 00:07:47 -05:00
TSC
bcfdf029ad Set async thread to daemon
Set WebSocket server thread to daemon to ensure it exits with main program.
2023-08-07 22:57:26 -05:00
TSC
915d3ecb78 tsc_utils.py self referential import mistake 2023-08-07 22:43:03 -05:00
TSC
1b882e0f11 Auto Package Installer Changes
Auto required package isntaller package now uses the "requirements.txt" folder as reference for what packages to install. 
Packages are also now installed straight to the ComfyUI's python embedded site-packages folder via relative pathing. 
Updated messages to be cleaner on console aswell.
2023-08-07 22:25:34 -05:00
TSC
bf93794914 Add files via upload 2023-08-06 22:09:13 -05:00
TSC
50a95c5f92 Fixed Issues with SDXL LoRAs 2023-07-30 21:33:33 -05:00
TSC
15cf97dec5 LoRA Stacking + Bug Fixes + Code Refactoring 2023-07-16 13:04:28 -05:00