PRIMA-demo / prima /models /backbones /__init__.py
HF Space deploy
Deploy snapshot (LFS for demo images per .gitattributes)
c3a4f1d
raw
history blame contribute delete
601 Bytes
"""
PRIMA: Boosting Animal Mesh Recovery with Biological Priors and Test-Time Adaptation
Official implementation of the paper:
"PRIMA: Boosting Animal Mesh Recovery with Biological Priors and Test-Time Adaptation"
by Xiaohang Yu, Ti Wang, and Mackenzie Weygandt Mathis
Licensed under a modified MIT license
"""
from .vit import vith
def create_backbone(cfg):
if cfg.MODEL.BACKBONE.TYPE in ['vith','concat','aa']: # vit bb will be used in these three cases - animal feature extractor
return vith(cfg)
else:
raise NotImplementedError('Backbone type is not implemented')