Detection Perceiver Model
GH repository DePerceiver
Usage
from huggingface_hub import snapshot_download
import torch
import json
import sys
repo_path = snapshot_download(repo_id="Max-Ploter/DePerceiver")
sys.path.append(repo_path)
from modeling_detection_perceiver import build_model
with open(f"{repo_path}/config.json") as f:
config = json.load(f)
model = build_model(config)
model.load_state_dict(torch.load(f"{repo_path}/detection_perceiver_model_weights_pytorch.bin"))
Dependencies
pip install torch torchvision perceiver-pytorch