Comments (8)
pip install k-diffusion and
diff --git a/py/smZ_cfg_denoiser.py b/py/smZ_cfg_denoiser.py
index e6a4ce1..dfe3b5f 100644
--- a/py/smZ_cfg_denoiser.py
+++ b/py/smZ_cfg_denoiser.py
@@ -4,8 +4,8 @@ import torch
from typing import List
import comfy.sample
from comfy import model_base, model_management
-from comfy.samplers import KSampler, CompVisVDenoiser, KSamplerX0Inpaint
-from comfy.k_diffusion.external import CompVisDenoiser
+from comfy.samplers import KSampler, KSamplerX0Inpaint
+from k_diffusion.external import DiscreteVDDPMDenoiser,CompVisDenoiser
import nodes
import inspect
import functools
@@ -17,6 +17,15 @@ import itertools
import torch
from comfy import model_management
+
+class CompVisVDenoiser(DiscreteVDDPMDenoiser):
+ def __init__(self, model, quantize=False, device='cpu'):
+ super().__init__(model, model.alphas_cumprod, quantize=quantize)
+
+ def get_v(self, x, t, cond, **kwargs):
+ return self.inner_model.apply_model(x, t, cond, **kwargs)
+
+
def catenate_conds(conds):
if not isinstance(conds[0], dict):
return torch.cat(conds)
@@ -318,4 +327,4 @@ def set_model_k(self: KSampler):
class SDKSampler(comfy.samplers.KSampler):
def __init__(self, *args, **kwargs):
super(SDKSampler, self).__init__(*args, **kwargs)
- set_model_k(self)
\ No newline at end of file
+ set_model_k(self)
from efficiency-nodes-comfyui.
I am on it to see if there is a workaround for same . else the node will be paused until rest workflow will continue.. The change in comfy sampler code will not allow CompVisDenoiser to work so have to add another module or new script to handle same.
from efficiency-nodes-comfyui.
all sorted and if any further open a new issue
from efficiency-nodes-comfyui.
Thanks @jags111 for engineering and posting this.
But... I'm not quite sure what to do with that code you pasted.
I ran pip install k-diffusion, but the loading error still occurs, so I assume that code needs to be put somewhere?
Thanks for any assist.
(PS: Using Terminal on a Mac, if that makes a difference)
from efficiency-nodes-comfyui.
Yes, this seems to have caused an issue with importing the Efficiency Nodes module. Any ideas on how to fix it?
from efficiency-nodes-comfyui.
I have the same issue - I posted it here first.
I didn't know about this Branch of the project :)
I hope its fixable. in the interim, I might see if I can roll back the breaking Commit from ComfyUI.
from efficiency-nodes-comfyui.
will check as for now the particular node is throwing errors and will fix same and update.
from efficiency-nodes-comfyui.
oh will look into this again and update
from efficiency-nodes-comfyui.
Related Issues (20)
- Feature Request: Node to modify the "dependencies" input/output HOT 1
- X/Y Plot S&R: Save both Plot and Images HOT 2
- Eff. Loader SDXL & Ksampler SDXL (Eff.) image rendering problem and inconsistency HOT 3
- install failed: Efficiency Nodes for ComfyUI Version 2.0+ - can't open file 'X:\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\git_helper.py': [Errno 2] No such file or directory HOT 2
- Could We Add an Option for Hierarchical Lora Selection Interface and Preview Functionality HOT 1
- AttributeError: module 'efficiency-nodes-comfyui.py.smZ_cfg_denoiser' has no attribute 'SDKSampler' HOT 3
- installed failed HOT 3
- Highres-Fix Scripts node content reset to "NaN" after load HOT 7
- vae and denoiser question HOT 1
- XY_flip doesn't work?
- Dynamic prompting breaks with efficiency nodes
- Error occurred when executing KSampler (Efficient)NoneType object has no attribute 'shape HOT 2
- module 'efficiency-nodes-comfyui-main.py.smZ_cfg_denoiser' has no attribute 'SDKSampler' HOT 2
- XY Plot compatibility issues with IPAdapter HOT 3
- The Seed randomize/recycle function on Efficiency KSampler seems to be broken HOT 2
- Issue when using Lightning LoRA in different slots
- Input XY: Prompt X/R with Input XY: Checkpoint is influenced by the CLIP/Conditioning of the base model
- AnimateDiff script HOT 1
- Efficency loader sdxl error 'NoneType' object has no atrribute 'lower' HOT 1
- KSampler ignores "Latent from batch" node HOT 1
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 efficiency-nodes-comfyui.