# KeyError: 'fasterrcnn\_resnet50'

**URL:** <https://community.wandb.ai/t/keyerror-fasterrcnn-resnet50/3474>\
**Category:** W&B Help\
**Tags:** dashboard, wandb\
**Created:** [November 28, 2022, 11:44am UTC](https://community.wandb.ai/t/keyerror-fasterrcnn-resnet50/3474 "2022-11-28T11:44:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![samahwa](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@samahwa](https://community.wandb.ai/u/samahwa)\
**Post date:** [November 28, 2022, 11:44am UTC](https://community.wandb.ai/t/keyerror-fasterrcnn-resnet50/3474/1 "2022-11-28T11:44:37Z")

</div>

I am trying to run this GitHub repository [faster rcnn-pytorch-custom-dataset](https://github.com/sovit-123/fasterrcnn-pytorch-training-pipeline#Train-on-Custom-Dataset) but I got this error.

```auto
Building model from scratch...
Traceback (most recent call last):
  File "train.py", line 491, in <module>
    main(args)
  File "train.py", line 248, in main
    build_model = create_model[args['model']]
KeyError: 'fasterrcnn_resnet50'
wandb: Waiting for W&B process to finish... (failed 1). Press Control-C to abort syncing.
wandb: Synced smoke_training: https://wandb.ai/samahwa/fastercnn-pytorch-training-pipeline/runs/ejy5jyw8
wandb: Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s)
wandb: Find logs at: ./wandb/run-20221128_113545-ejy5jyw8/logs

```

---

<div class="post-metadata">

**Author:** ![thanos-wandb](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@thanos-wandb](https://community.wandb.ai/u/thanos-wandb)\
**Post date:** [November 28, 2022, 2:09pm UTC](https://community.wandb.ai/t/keyerror-fasterrcnn-resnet50/3474/2 "2022-11-28T14:09:10Z")

</div>

Hi @samahwa thank you for writing in. The KeyError seems to stem from the model’s name you’re passing in. In the GitHub repo you stored, there is a `models` directory where you could find the valid names. Could you please try if `fasterrcnn_resnet50_fpn` or `fasterrcnn_resnet50_fpn_v2` would work for you?

---

<div class="post-metadata">

**Author:** ![thanos-wandb](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@thanos-wandb](https://community.wandb.ai/u/thanos-wandb)\
**Post date:** [December 1, 2022, 4:11pm UTC](https://community.wandb.ai/t/keyerror-fasterrcnn-resnet50/3474/3 "2022-12-01T16:11:19Z")

</div>

Hi @samahwa I wanted to follow up on this issue, does it still occur for you and are there any more questions to help with?

---

<div class="post-metadata">

**Author:** ![thanos-wandb](https://avatars.discourse-cdn.com/v4/letter/t/4af34b/32.png) [@thanos-wandb](https://community.wandb.ai/u/thanos-wandb)\
**Post date:** [December 7, 2022, 9:32am UTC](https://community.wandb.ai/t/keyerror-fasterrcnn-resnet50/3474/4 "2022-12-07T09:32:25Z")

</div>

Hi @samahwa since we haven’t heard back from you, I will close this ticket for now. If you still experience any issue running your code, please let us know and we will keep investigating.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [February 5, 2023, 9:32am UTC](https://community.wandb.ai/t/keyerror-fasterrcnn-resnet50/3474/5 "2023-02-05T09:32:58Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
