# KeyError: ‘fasterrcnn\_resnet50’

**URL:** <https://community.wandb.ai/t/keyerror-fasterrcnn-resnet50/3983>\
**Category:** W&B Help\
**Created:** [March 2, 2023, 10:48am UTC](https://community.wandb.ai/t/keyerror-fasterrcnn-resnet50/3983 "2023-03-02T10:48:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abubakarsaleem66](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@abubakarsaleem66](https://community.wandb.ai/u/abubakarsaleem66)\
**Post date:** [March 2, 2023, 10:48am UTC](https://community.wandb.ai/t/keyerror-fasterrcnn-resnet50/3983/1 "2023-03-02T10:48: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:** ![bill-morrisson](https://avatars.discourse-cdn.com/v4/letter/b/90ced4/32.png) [@bill-morrisson](https://community.wandb.ai/u/bill-morrisson)\
**Post date:** [March 7, 2023, 1:36pm UTC](https://community.wandb.ai/t/keyerror-fasterrcnn-resnet50/3983/2 "2023-03-07T13:36:37Z")

</div>

Hello Abubakar,

Thank you for your patience and sorry this is happening to you. Could you please let me know;

What is your wandb cli version?  
Are there any other errors shown except these?  
Could you please share with me the `debug.log` and `debug-internal.log` files located in the working directory of the project under wandb//logs/?  
Are you running your script in jupyter notebook or terminal or through colab, etc.? Can I have an example training script of what you did exactly?

Thank you

---

<div class="post-metadata">

**Author:** ![bill-morrisson](https://avatars.discourse-cdn.com/v4/letter/b/90ced4/32.png) [@bill-morrisson](https://community.wandb.ai/u/bill-morrisson)\
**Post date:** [March 10, 2023, 3:04am UTC](https://community.wandb.ai/t/keyerror-fasterrcnn-resnet50/3983/3 "2023-03-10T03:04:42Z")

</div>

Hello Abubakar,

Could you please get back to me with an answer to my questions? That would enable me to have more information on what might be going wrong.

---

<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:** [May 1, 2023, 10:49am UTC](https://community.wandb.ai/t/keyerror-fasterrcnn-resnet50/3983/4 "2023-05-01T10:49:01Z")

</div>

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