Views
No views yet
pip install torch torchvisionDataset/COCODataset/ with the following structure:Dataset/COCODataset/
train/
...images...
_annotations.coco.json
valid/
...images...
_annotations.coco.json
test/
...images...
_annotations.coco.json1from transformers import AutoModel
2
3model = AutoModel.from_pretrained("your-username/your-model-name")
4model.eval() # Set to evaluation mode1from huggingface_hub import hf_hub_download
2import torch
3
4# Download files
5weights_path = hf_hub_download(
6 repo_id="ArchiveofAkashic/ResidualFasterRCNN",
7 filename="Best_RPNmodel.pth" # Check the exact filename in the repo
8)
9config_path = hf_hub_download(
10 repo_id="ArchiveofAkashic/ResidualFasterRCNN",
11 filename="config.json"
12)