Views
No views yet
| Filename | Size | Description |
|---|---|---|
motif-v1.safetensors | 84.92MB | Full model weights |
motif-v1_encoder.safetensors | 43.32MB | Encoder weights only |
motif-v1_decoder.safetensors | 41.56MB | Decoder weights only |
motif-v1_quantizer.safetensors | 34.37KB | Quantizer weights only |
orbit-torch library is installed:pip install orbit-torchload_pretrained method to load weights. Weights are divided into full weights and partial weights (Encoder, Decoder, Quantizer).from orbit.model.motif.vision.v1 import MotifV11model = MotifV1()
2model.load_pretrained('motif-v1.safetensors')MotifV1 instance.1# 1. Instantiate the main model
2model = MotifV1()
3
4# 2. Load weights separately
5model.encoder.load_pretrained('motif-v1_encoder.safetensors')
6model.quantizer.load_pretrained('motif-v1_quantizer.safetensors')
7
8# 3. Usage example (using the wrapped encode method)
9# x = torch.randn(1, 3, 256, 256) # [B, 3, H, W]
10# indices, mask, z_q = model.encode(x)
11# print(indices.shape) # [B, H, W]1# 1. Instantiate the main model
2model = MotifV1()
3
4# 2. Load weights separately
5model.decoder.load_pretrained('motif-v1_decoder.safetensors')
6model.quantizer.load_pretrained('motif-v1_quantizer.safetensors')
7
8# 3. Usage example (using the wrapped decode method)
9# indices = ... # [B, H, W]
10# reconstruction = model.decode(indices)