Size mismatch in pretrain model

username: 111186
cooked: <p>I design a model is similar as VGG19， so I want to use the pretrain VGG19’s parameters. however there is something wrong in size mismatch for features. i know the reasion but i don’t know how to solve it . so please help.<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/6/6/66fe0b638d7858924f109ef0ae688a8ea23bf44d.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/66fe0b638d7858924f109ef0ae688a8ea23bf44d" title="07093707"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/6/6/66fe0b638d7858924f109ef0ae688a8ea23bf44d_2_690x326.jpeg" alt="07093707" data-base62-sha1="eH6ZmKPPnKyx9UMSf323mifmTXD" width="690" height="326" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/6/6/66fe0b638d7858924f109ef0ae688a8ea23bf44d_2_690x326.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/6/6/66fe0b638d7858924f109ef0ae688a8ea23bf44d_2_1035x489.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/6/6/66fe0b638d7858924f109ef0ae688a8ea23bf44d_2_1380x652.jpeg 2x" data-dominant-color="2F302A"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">07093707</span><span class="informations">1505×713 79.4 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div> <div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/e/d/edfa8e5881e4c9df8c00aa09d7193aa27cdbc123.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/edfa8e5881e4c9df8c00aa09d7193aa27cdbc123" title="12"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/e/d/edfa8e5881e4c9df8c00aa09d7193aa27cdbc123_2_690x97.jpeg" alt="12" data-base62-sha1="xXfYpkCI89SYGUrwEXtkb1Phz9x" width="690" height="97" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/e/d/edfa8e5881e4c9df8c00aa09d7193aa27cdbc123_2_690x97.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/e/d/edfa8e5881e4c9df8c00aa09d7193aa27cdbc123_2_1035x145.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/e/d/edfa8e5881e4c9df8c00aa09d7193aa27cdbc123_2_1380x194.jpeg 2x" data-dominant-color="403833"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">12</span><span class="informations">3261×461 256 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div> <div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/e/a/ea397a97936159cc7f2769fb6497a1f75e4a03b3.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/ea397a97936159cc7f2769fb6497a1f75e4a03b3" title="907"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/e/a/ea397a97936159cc7f2769fb6497a1f75e4a03b3_2_427x500.jpeg" alt="907" data-base62-sha1="xq2Sjn8t4xEAI8stp03m9klEP8D" width="427" height="500" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/e/a/ea397a97936159cc7f2769fb6497a1f75e4a03b3_2_427x500.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/e/a/ea397a97936159cc7f2769fb6497a1f75e4a03b3_2_640x750.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/e/a/ea397a97936159cc7f2769fb6497a1f75e4a03b3_2_854x1000.jpeg 2x" data-dominant-color="F2F2F2"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">907</span><span class="informations">1461×1707 346 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div> <div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/e/4/e448e6797811a1b9f3157aa96d6f16ac22aa40d1.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/e448e6797811a1b9f3157aa96d6f16ac22aa40d1" title="VGG5"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/e/4/e448e6797811a1b9f3157aa96d6f16ac22aa40d1_2_391x500.jpeg" alt="VGG5" data-base62-sha1="wzv3bDK2Txv73gizYIjrQipn8aJ" width="391" height="500" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/e/4/e448e6797811a1b9f3157aa96d6f16ac22aa40d1_2_391x500.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/e/4/e448e6797811a1b9f3157aa96d6f16ac22aa40d1_2_586x750.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/e/4/e448e6797811a1b9f3157aa96d6f16ac22aa40d1_2_782x1000.jpeg 2x" data-dominant-color="EDEDED"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">VGG5</span><span class="informations">1299×1661 424 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div> these two pictures are my own model and the normal model VGG19.</p>