vedant-jumle commited on
Commit
8764715
·
1 Parent(s): 1334b17

Initial CosAE release

Browse files
Files changed (1) hide show
  1. README.md +9 -3
README.md CHANGED
@@ -15,10 +15,16 @@ It encodes images into amplitude/phase harmonics and reconstructs RGB images.
15
 
16
  ## Usage
17
  ```python
18
- from cosae import CosAEModel
19
- model = CosAEModel.from_pretrained("vedant-jumle/cosae")
 
 
 
 
 
20
  model.eval()
21
- # Input should be a tensor of shape [B, 9, H, W] (RGB + FFT) or [B,3,H,W] for RGB-only.
 
22
  import torch
23
  x = torch.randn(1, 9, 256, 256)
24
  with torch.no_grad():
 
15
 
16
  ## Usage
17
  ```python
18
+ from transformers import AutoModel
19
+
20
+ # Load the model with remote code trust
21
+ model = AutoModel.from_pretrained(
22
+ "vedant-jumle/cosae",
23
+ trust_remote_code=True,
24
+ )
25
  model.eval()
26
+
27
+ # Example input: tensor of shape [B, 9, H, W] (RGB + FFT) or [B,3,H,W]
28
  import torch
29
  x = torch.randn(1, 9, 256, 256)
30
  with torch.no_grad():