# SAMModel output size different to the input

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsammodel-output-size-different-to-the-input%2F89340%3E%5C
**Category:** Intermediate\
**Created:** [May 30, 2024, 7:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsammodel-output-size-different-to-the-input%2F89340 "2024-05-30T07:02:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nielsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nielsr/32/39617_2.png) [@nielsr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnielsr)%5C
**Post date:** [June 3, 2024, 1:23pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsammodel-output-size-different-to-the-input%2F89340%2F2 "2024-06-03T13:23:03Z")

</div>

Hi,

You can interpolate the masks to the same size as your input, see my reply here: [SAM image size for fine-tuning - #2 by nielsr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsam-image-size-for-fine-tuning%2F39666%2F2)

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsammodel-output-size-different-to-the-input%2F89340)._
