Comments (3)
Yes, you can control when to free the models. You should use with torch.inference_mode()
instead of with Workflow()
to avoid having similar behavior to ComfyUI.
By the way, I didn't find much docs about ComfyUI's model management, but it looks like it won't unload a model if only the node ID changed, instead, it's only unloaded if the reference count becomes zero.
from comfyscript.
See #21 (comment) for unloading models.
from comfyscript.
Awesome thanks!
from comfyscript.
Related Issues (20)
- thoughts on idiomatic way of making xy grid? HOT 8
- Getting errors after sampler run, logs hidden HOT 3
- Thanks for all your help! Can I buy you a coffee/beer/tea? HOT 5
- See multiple images, but without multiple samplers HOT 5
- transpiler reusing variables that should be unique HOT 2
- New Loras downloaded, how to regenerate enumerations? HOT 1
- How to use it? This plugin is not show up in chrome.Is it the code editor as front replace web browser for comfyui? HOT 9
- VSCode Jupyter Notebook slows way down over time HOT 2
- ComfyScript unexpected behaviour with Fooocus Text HOT 6
- 多个 workflow 如何有效管理? HOT 2
- Help getting started HOT 4
- Using workflows with input nodes HOT 1
- Is it possible to edit nodes and have it be reflected in ComfyScript? HOT 2
- How can I create a Flask app that runs ComfyScript code? HOT 13
- Unable to execute comfyscript when called via function HOT 7
- Loading lora -> error HOT 4
- Embedded workflows not loading in ComfyUI HOT 10
- Using CivitAICheckpointLoader HOT 8
- CheckpointLoaderSimple not finding model in folder HOT 3
- Generating failing script for working workflow. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comfyscript.