TerraFM
7
license:apache-2.0
by
MBZUAI
Other
OTHER
New
0 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary
AI model with specialized capabilities.
Code Examples
🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")🛠 Usagepythonpytorch
from terrafm import terrafm_base, terrafm_large
import torch
# Simulated input: 1 sample, 12 channels, 224×224 resolution (e.g., Sentinel-2 L2A)
x = torch.randn(1, 12, 224, 224)
# Load TerraFM-Base model
model = terrafm_base()
# Load pretrained weights (e.g., TerraFM-B.pth)
state_dict = torch.load("TerraFM-B.pth", map_location="cpu")
msg = model.load_state_dict(state_dict, strict=False)
# Forward pass
y = model(x)
print(f"Output shape: {y.shape}")Deploy This Model
Production-ready deployment in minutes
Together.ai
Instant API access to this model
Production-ready inference API. Start free, scale to millions.
Try Free APIReplicate
One-click model deployment
Run models in the cloud with simple API. No DevOps required.
Deploy NowDisclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.