# How can l use the pre-trained Resnet to extract feautres from my own dataset?

**URL:** <https://discuss.pytorch.org/t/how-can-l-use-the-pre-trained-resnet-to-extract-feautres-from-my-own-dataset/9008>\
**Category:** vision\
**Created:** [October 24, 2017, 9:21am UTC](https://discuss.pytorch.org/t/how-can-l-use-the-pre-trained-resnet-to-extract-feautres-from-my-own-dataset/9008 "2017-10-24T09:21:01Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![DeepLearner17](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/deeplearner17/32/3185_2.png) [@DeepLearner17](https://discuss.pytorch.org/u/DeepLearner17)\
**Post date:** [October 24, 2017, 12:37pm UTC](https://discuss.pytorch.org/t/how-can-l-use-the-pre-trained-resnet-to-extract-feautres-from-my-own-dataset/9008/6 "2017-10-24T12:37:14Z")

</div>

@jytug , l’m l don’t need neither transfer learning nor retraining the last hidden layer. l just want to use resnet to get a representation of a given input from the last hidden layer  
My purpose is as follow :  
Given a new input data and the pre-trained Resnet :  
Get the features of that input from the last hidden layer (before softmax) of Resnet.

Hope it helps

---

_[View the full topic](https://discuss.pytorch.org/t/how-can-l-use-the-pre-trained-resnet-to-extract-feautres-from-my-own-dataset/9008)._
