You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converting data to a PyTorch tensor enables efficient computation, especially on GPUs, and ensures compatibility with the neural network. Scaling the data standardizes pixel values for better model performance.
# Create the tensor and move it to the appropriate device (CPU or GPU)
100
108
X = torch.from_numpy(original_s2_numpy).float().to(device)
109
+
```
110
+
#### **Default model setup**
111
+
The default model is pre-trained for 2.5m resolution but supports 5m and 10m resolutions via the `resolution` parameter. It uses lightweight CNN architectures for super-resolution and fusion (`sr_model_snippet`, `fusionx2_model_snippet`, `fusionx4_model_snippet`). Models run on CPU or GPU, configurable via `device`.
101
112
113
+
```python
102
114
# Set up the model to enhance the spatial resolution
# Plot the original and enhanced-resolution images
122
+
The first plot shows the original Sentinel-2 RGB image (10m resolution). The second plot displays the enhanced version with finer spatial details (2.5m resolution) using a lightweight CNN.
0 commit comments