MCPcopy 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
55def 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

fnMethod · 0.70

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected