MCPcopy Create free account
hub / github.com/dek924/PerX2CT / __init__

Method __init__

taming/modules/util.py:119–122  ·  view source on GitHub ↗
(self, sos_token, quantize_interface=True)

Source from the content-addressed store, hash-verified

117class SOSProvider(AbstractEncoder):
118 # for unconditional training
119 def __init__(self, sos_token, quantize_interface=True):
120 super().__init__()
121 self.sos_token = sos_token
122 self.quantize_interface = quantize_interface
123
124 def encode(self, x):
125 # get batch size from data and replicate sos_token

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected