Git Product home page Git Product logo

Comments (1)

TingsongYu avatar TingsongYu commented on August 19, 2024
  1. 是否进入打印信息,以及进入几次,会受到 数据量,batchsize和log_interval三个参数控制,你说的情况只进入1次是没问题的,如果有需要修改其中某个参数,那么loss_mean就会不正确了,因此166行在某一种情况下是多余,但代码的情况还有很多种
  2. 数据量是对的,8*16 = 128 < (124+121),128还不到245呢, log_interval=10并不多余,其次,这个参数还是根据自己的需求可以调整

参数多余不多余,要综合考虑代码可能出现的多种情况,就像汽车安全气囊,99%的是否没用到,那也不能说它多余

  1. 在finetune_resnet18.py中的166行,loss_mean = 0.是否多余。
    因为当能运行到这一行时,就表示已经跑了一个epoch,将下面的代码执行完,就会回到132行进行下一个epoch,之后执行到134行,'loss_mean'也会重新赋值为0.。所以166我认为是多余的。
  2. 我下载的数据里,训练集里面ants是124张,bees是121张。
    BATCH_SIZE=16时,ants和bees读取8次左右就可以看着是一个epoch。您给的代码里log_interval=10。这样是否冗余?还是我这边数据集图片的张数不对?

from pytorch-camp.

Related Issues (12)

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.