Installation¶
Strands Sapiens has three install steps because Sapiens2 depends on a CUDA-enabled PyTorch that's platform-specific.
1. CUDA PyTorch¶
Install a CUDA-enabled PyTorch matching your hardware. Some examples:
2. Sapiens2 (upstream)¶
The sapiens package provides:
sapiens.backbones.standalone.sapiens2.Sapiens2- raw backbonesapiens.dense- seg / normal / albedo / pointmapsapiens.pose- 308-keypoint top-down pose
3. Strands Sapiens¶
4. Verify¶
python -c "from strands_sapiens import sapiens_info; import json; print(json.dumps(sapiens_info(), indent=2))"
You should see:
{
"status": "success",
"content": [
{"text": "sapiens info"},
{"json": {
"checkpoint_root": "/home/you/sapiens2_host",
"checkpoint_root_exists": false,
"available": {},
"detector_present": false,
"detector_type": "none",
"cuda": { "available": true, "device_count": 1, "device_name": "NVIDIA ..." },
"sapiens_package": true
}}
]
}
If sapiens_package is false, go back to step 2. If cuda.available is false, go back to step 1.
The next thing to do is download your first checkpoint →