Comments (1)
- 是否进入打印信息,以及进入几次,会受到 数据量,batchsize和log_interval三个参数控制,你说的情况只进入1次是没问题的,如果有需要修改其中某个参数,那么loss_mean就会不正确了,因此166行在某一种情况下是多余,但代码的情况还有很多种
- 数据量是对的,8*16 = 128 < (124+121),128还不到245呢, log_interval=10并不多余,其次,这个参数还是根据自己的需求可以调整
参数多余不多余,要综合考虑代码可能出现的多种情况,就像汽车安全气囊,99%的是否没用到,那也不能说它多余
- 在finetune_resnet18.py中的166行,
loss_mean = 0.
是否多余。
因为当能运行到这一行时,就表示已经跑了一个epoch,将下面的代码执行完,就会回到132行进行下一个epoch,之后执行到134行,'loss_mean'也会重新赋值为0.。所以166我认为是多余的。- 我下载的数据里,训练集里面ants是124张,bees是121张。
当BATCH_SIZE=16
时,ants和bees读取8次左右就可以看着是一个epoch。您给的代码里log_interval=10
。这样是否冗余?还是我这边数据集图片的张数不对?
from pytorch-camp.
Related Issues (12)
- lesson_8 HOT 1
- lesson08 HOT 1
- 关于人民币二分类正确Label判断的问题 HOT 1
- Lesson21,Tensorboard记录梯度
- RMB_data_augmentation.py HOT 3
- lesson-21 / loss_acc_weights_grad.py HOT 1
- lesson-21 / loss_acc_weights_grad.py HOT 1
- pytorch1.7的一个bug,hook_fmap_vis.py HOT 1
- 3_multi_gpu.py HOT 1
- 没有数据集 HOT 1
- 关于test_data的路径问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch-camp.