Git Product home page Git Product logo

Comments (14)

bubbliiiing avatar bubbliiiing commented on June 13, 2024

有没有一种可能,pth是存储空间?

from classification-pytorch.

Liqq1 avatar Liqq1 commented on June 13, 2024

from classification-pytorch.

bubbliiiing avatar bubbliiiing commented on June 13, 2024

summary.py

from classification-pytorch.

Liqq1 avatar Liqq1 commented on June 13, 2024

summary.py

我试了一下,其他都可以出来,但是vit会报如下的错(256x256时候会有,但224的时候不会报错),是什么原因呀?
但我在train的时候可以用256x256的大小train vit
04E8975528C3D706D42E1A0E560A3B57

from classification-pytorch.

bubbliiiing avatar bubbliiiing commented on June 13, 2024

vit也有个input shape要设置

from classification-pytorch.

Liqq1 avatar Liqq1 commented on June 13, 2024

vit也有个input shape要设置

好的,那在train的时候不需要专门到vit里面设置是因为train里面的input_shape=[x,x]会覆盖vit中的吗?

还有就是我得出的结果和ResNet原文中不一样,是因为图像的输入大小和num_classes不一样吗?

from classification-pytorch.

bubbliiiing avatar bubbliiiing commented on June 13, 2024

1、对的
2、差距应该不大吧?结构绝对是对的。

from classification-pytorch.

Liqq1 avatar Liqq1 commented on June 13, 2024

差距还挺大的,ResNet50 跑出来是86M,文章里写的25.6M
我的大小是(3,256,256)
image

from classification-pytorch.

bubbliiiing avatar bubbliiiing commented on June 13, 2024

你不知道哪个是参数量?

from classification-pytorch.

Liqq1 avatar Liqq1 commented on June 13, 2024

你不知道哪个是参数量?

啊?我知道吧…… 就是下面的Params size
image

图上是vit的结果;然后我跑resnet50的时候是86M

from classification-pytorch.

bubbliiiing avatar bubbliiiing commented on June 13, 2024

是total params…

from classification-pytorch.

Liqq1 avatar Liqq1 commented on June 13, 2024

是total params…
嗷嗷好的 ,那就是用这里的total params/1024/1024 得到最后的MB ,是吗?
39FEA6AF0A85C644D0BFF36735179F06

from classification-pytorch.

bubbliiiing avatar bubbliiiing commented on June 13, 2024

直接/1e6应该,不用1024好像。

from classification-pytorch.

Liqq1 avatar Liqq1 commented on June 13, 2024

直接/1e6应该,不用1024好像。

好的谢谢,了解了👌

from classification-pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.