Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cross-entropy=nan #5

Open
zmkwjx opened this issue Oct 14, 2019 · 0 comments
Open

cross-entropy=nan #5

zmkwjx opened this issue Oct 14, 2019 · 0 comments

Comments

@zmkwjx
Copy link

zmkwjx commented Oct 14, 2019

请问在使用AlexNet网络进行训练时
(参数信息如下:
batch_size=64, begin_epoch=0, data_train_idx='data/train.idx', data_train_rec='data/train.rec', data_val_idx='data/val.idx', data_val_rec='data/val.rec', factor=0.2, fix_pretrain_param=False, from_scratch=False, gpus='', image_shape='3,224,224', layer_name='flatten0', lr=0.005, max_random_contrast=0.3, max_rotate_angle=15, mom=0.9, num_classes=2, num_epoch=10, num_examples=22500, period=100, random_mirror=1, resize_train=256, resize_val=224, save_name='resnet-18', save_result='output/', step=5, wd=0.0001

出现Train-cross-entropy=nan
是什么问题导致的(引用的数据是书中公鸡和鸵鸟的数据)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant