Skip to content

Commit 9a151b7

Browse files
Fix issue and unpin spandrel package.
1 parent 8cfd677 commit 9a151b7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

comfy_extras/nodes_upscale_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def INPUT_TYPES(s):
4242
def upscale(self, upscale_model, image):
4343
device = model_management.get_torch_device()
4444

45-
memory_required = model_management.module_size(upscale_model)
45+
memory_required = model_management.module_size(upscale_model.model)
4646
memory_required += (512 * 512 * 3) * image.element_size() * max(upscale_model.scale, 1.0) * 384.0 #The 384.0 is an estimate of how much some of these models take, TODO: make it more accurate
4747
memory_required += image.nelement() * image.element_size()
4848
model_management.free_memory(memory_required, device)

requirements.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ Pillow
1010
scipy
1111
tqdm
1212
psutil
13+
14+
#non essential dependencies:
1315
kornia>=0.7.1
14-
spandrel==0.3.1
16+
spandrel

0 commit comments

Comments
 (0)