Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tdrussell/diffusion-pipe
/ vae_encode
Function
vae_encode
models/wan/wan.py:55–56 ·
view source on GitHub ↗
(tensor, vae)
Source
from the content-addressed store, hash-verified
53
54
55
def
vae_encode(tensor, vae):
56
return
vae.model.encode(tensor, vae.scale)
57
58
59
# Wrapper to hold both VAE and CLIP, so we can move both to/from GPU together.
Callers
1
fn
Method · 0.70
Calls
1
encode
Method · 0.45
Tested by
no test coverage detected