mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-07-21 05:57:08 +08:00
Update nodes.py
This commit is contained in:
parent
057a9b968a
commit
efa350aba4
2
nodes.py
2
nodes.py
@ -3639,7 +3639,7 @@ class EffnetEncode:
|
|||||||
|
|
||||||
effnet.load_state_dict(effnet_state_dict if 'state_dict' not in effnet_checkpoint else effnet_checkpoint['state_dict'])
|
effnet.load_state_dict(effnet_state_dict if 'state_dict' not in effnet_checkpoint else effnet_checkpoint['state_dict'])
|
||||||
effnet.eval().requires_grad_(False).to(device)
|
effnet.eval().requires_grad_(False).to(device)
|
||||||
t = effnet(image)
|
t = effnet(image).cpu()
|
||||||
return ({"samples":t}, )
|
return ({"samples":t}, )
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user