Views
No views yet
[0, 1000]. Backbone:
vendored Sapiens2 ViT (sapiens2_0.8b) (frozen) with a LoRA adapter applied at load time, plus a small
regression head. Exported from training run jvcead4r.1from transformers import AutoModel
2
3model = AutoModel.from_pretrained("alecccdd/ratebv-frwo-r1-model", trust_remote_code=True).eval()
4model.predict("photo.jpg") # -> float in [0, 1000]
5model.predict(["a.jpg", "b.jpg"]) # -> list[float]facebook/sapiens2-pretrain-0.8b is gated on the HuggingFace Hub. Before loading,
accept its license and make sure HF_TOKEN is set — only the LoRA adapter and head
are stored here; the base weights are downloaded at load time.1from huggingface_hub import login
2login("hf_...") # a token with the base model's license accepted| File | Purpose |
|---|---|
model.py / sapiens2.py | self-contained model code (loaded via trust_remote_code) |
config.json | ScorerConfig (auto_map -> ScorerConfig / ScorerModel) |
adapter/adapter_config.json, adapter/adapter_model.safetensors | the LoRA adapter (NOT merged) |
head.pt | the regression head weights |
facebook/sapiens2-pretrain-0.8b and apply the LoRA adapter (peft).[0, 1].score = sigmoid * (1000 - 0) + 0.preserve_aspect=True,
image_size=[296, 222], patch_size=16,
image_mean=[0.485, 0.456, 0.406], image_std=[0.229, 0.224, 0.225].
Head: hidden_size=1280, hidden_dims=[] (minimal head),
dropout=0.45.jvcead4r — val_mae=63.50330494869472, val_r2=0.9078422463529856.torch, torchvision, transformers>=5.9, peft>=0.19, huggingface_hub,
safetensors, numpy, pillow.