# Resnet50 example errors(Ubuntu Beginner)

**URL:** <https://discuss.pytorch.org/t/resnet50-example-errors-ubuntu-beginner/146959>\
**Category:** glow\
**Created:** [March 20, 2022, 6:52pm UTC](https://discuss.pytorch.org/t/resnet50-example-errors-ubuntu-beginner/146959 "2022-03-20T18:52:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelos\_b147](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/angelos_b147/32/47743_2.png) [@angelos\_b147](https://discuss.pytorch.org/u/angelos_b147)\
**Post date:** [March 20, 2022, 6:52pm UTC](https://discuss.pytorch.org/t/resnet50-example-errors-ubuntu-beginner/146959/1 "2022-03-20T18:52:52Z")

</div>

Hello, I’m a beginner in Glow. I attempted to run the Resnet50 in my Ubuntu VMWare Virtual Machine and I consistently get the error below. I followed the Glow installation in [GitHub - pytorch/glow: Compiler for Neural Network hardware accelerators](https://github.com/pytorch/glow) and made a special buildwithbundles folder for the Glow build as it is mentioned here [glow/AOT.md at master · pytorch/glow · GitHub](https://github.com/pytorch/glow/blob/master/docs/AOT.md) so I’m not entirely sure what I am doing wrong. Does the error have to do with Ubuntu being on a Virtual Machine, me not installing Glow correctly in some step? I’m not sure at this point, hence the forum post. Thank you for your time and sorry in advance if I’m asking a dumb question.

angel@ubuntu:~/buildwithbundles/bundles/resnet50$ ./ResNet50Bundle cat\_285.png  
Allocated weights of size: 102121920  
Expected weights of size: 102121920  
Loaded weights of size: 102121920 from the file resnet50.weights.bin  
Allocated mutable weight variables of size: 606144  
ResNet50Bundle: /home/angel/glow/examples/bundles/resnet50/main.cpp:189: void loadImagesAndPreprocess(const std::vector\< std::string\> &, float \*&, size\_t \*): Assertion `loadSuccess && “Error reading input image.”’ failed.  
Aborted (core dumped)  
angel@ubuntu:~/buildwithbundles/bundles/resnet50$

---

<div class="post-metadata">

**Author:** ![rpitonak](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/rpitonak/32/49461_2.png) [@rpitonak](https://discuss.pytorch.org/u/rpitonak)\
**Post date:** [May 10, 2022, 12:42pm UTC](https://discuss.pytorch.org/t/resnet50-example-errors-ubuntu-beginner/146959/2 "2022-05-10T12:42:08Z")

</div>

Hello. I experienced the same problem. Did you find the solution?

---

<div class="post-metadata">

**Author:** ![angelos\_b147](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/angelos_b147/32/47743_2.png) [@angelos\_b147](https://discuss.pytorch.org/u/angelos_b147)\
**Post date:** [May 10, 2022, 5:41pm UTC](https://discuss.pytorch.org/t/resnet50-example-errors-ubuntu-beginner/146959/3 "2022-05-10T17:41:55Z")

</div>

yes, I gave the full file address for the cat.png file so basically the command in my case would be  
./ResNet50Bundle /home/ampampos/tries/buildwithbundles/tests/images/imagenet/cat\_285.png which is executed inside the folder of the bundle in the terminal and it worked
