Update README.md
Browse files123---license: apache-2.0---12345678910111213141516171819202122232425262728293031323334353637383940---license: apache-2.0pipeline_tag: object-detection---# Detection Perceiver Model<img src="https://raw.githubusercontent.com/maxploter/DePerceiver/refs/heads/main/de_perceiver_r50/de_perceiver.png" alt="DePerceiver R50 Image"/>[GH repository DePerceiver](https://github.com/maxploter/DePerceiver)## Usage```pythonfrom huggingface_hub import snapshot_downloadimport torchimport jsonimport sys# Download modelrepo_path = snapshot_download(repo_id="Max-Ploter/DePerceiver")# Add to Python path to access modeling_detection_perceiver.pysys.path.append(repo_path)from modeling_detection_perceiver import build_model# Load configwith open(f"{repo_path}/config.json") as f:config = json.load(f)# Build and load modelmodel = build_model(config)model.load_state_dict(torch.load(f"{repo_path}/detection_perceiver_model_weights_pytorch.bin"))```## Dependencies```shellpip install torch torchvision perceiver-pytorch```
README.md+40-3