Downloads · 30 days
0
ilessio-aiflowlab/project_haptos
project_haptos is a robotics model from ilessio-aiflowlab. Use it for the robotics task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as apache-2.0.
Part of the ANIMA Perception Suite by Robot Flow Labs.
Downloads · 30 days
0
Access
Public
Updated Mar 30, 2026
Repo size
11.3 GB
Likes
0
Public
Click a slice to open those files.
.pth1.7 GB · 56%
From the Hugging Face model README
Part of the ANIMA Perception Suite by Robot Flow Labs.
AnyTouch 2: General Optical Tactile Representation Learning for Dynamic Tactile Perception arXiv:2602.09617 GeWu-Lab
ViT-Base Masked Autoencoder (MAE) for tactile image representation learning with:
| Format | File | Size | Use Case |
|---|---|---|---|
| PyTorch (.pth) | pytorch/haptos_v1.pth | 376 MB | Training, fine-tuning |
| SafeTensors | pytorch/haptos_v1.safetensors | 376 MB | Fast loading, safe |
| ONNX | onnx/haptos_v1.onnx | 345 MB | Cross-platform inference |
| TensorRT FP16 | tensorrt/haptos_v1_fp16.trt | 175 MB | Edge deployment (Jetson/L4) |
| TensorRT FP32 | tensorrt/haptos_v1_fp32.trt | 345 MB | Full precision inference |
| Checkpoint | checkpoints/best.pth | 1.1 GB | Resume training (optimizer + scheduler state) |
| Setting | Value |
|---|---|
| Hardware | 8x NVIDIA L4 (23.7 GB each) |
| VRAM Usage | 19.0 GB / 23.7 GB (80%) per GPU |
| Effective Batch | 192 (24/GPU x 8 GPUs) |
| Optimizer | AdamW (betas=0.9, 0.95) |
| Learning Rate | 3e-4 |
| LR Schedule | Warmup + Cosine Annealing with Warm Restarts (T0=28, T_mult=2) |
| Precision | bf16 mixed precision |
| Epochs | 40 |
| Best Val Loss | 0.0836 (epoch 52) |
| Test Loss | 0.0825 |
| Test Recon Loss | 0.0090 |
| Test Force Loss (L1) | 0.7347 |
import torch
from safetensors.torch import load_file
# Load weights
state_dict = load_file("pytorch/haptos_v1.safetensors")
# Build model
from anima_haptos.models.mae_cuda import TactileMAECuda
model = TactileMAECuda(
img_size=224, patch_size=16, embed_dim=768,
encoder_depth=12, num_heads=12,
decoder_dim=384, decoder_depth=4, decoder_heads=6,
mask_ratio=0.75, force_head=True, force_dim=3,
)
model.load_state_dict(state_dict)
model.eval()
# Extract features
img = torch.randn(1, 3, 224, 224)
features = model.get_encoder_features(img) # [1, 768]
force = model.force_head(features) # [1, 3] (fx, fy, fz)
best.pth includes full state for resume:
model_state_dict, optimizer_state_dict, scheduler_state_dictearly_stopping_state_dict, scaler_state_dictepoch, global_step, val_loss├── README.md
├── paper.pdf
├── pytorch/
│ ├── haptos_v1.pth
│ └── haptos_v1.safetensors
├── onnx/
│ └── haptos_v1.onnx
├── tensorrt/
│ ├── haptos_v1_fp16.trt
│ └── haptos_v1_fp32.trt
├── checkpoints/
│ └── best.pth
├── configs/
│ └── training.yaml
└── logs/
└── training_history.json
Apache 2.0 — Robot Flow Labs / AIFLOW LABS LIMITED