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

I train datasets "ADEChallengeData2016",But loss is almost the same #45

Open
lily10086 opened this issue Nov 6, 2017 · 3 comments
Open

Comments

@lily10086
Copy link

I use your code to train datasets(ADEChallengeData2016),But the loss is almost the same:
epoch: 19 || batch: 92 || l: 3.161138
epoch: 19 || batch: 93 || l: 3.038326
epoch: 19 || batch: 94 || l: 3.166589
epoch: 19 || batch: 95 || l: 3.135044
epoch: 19 || batch: 96 || l: 3.399570
epoch: 19 || batch: 97 || l: 2.850001
epoch: 19 || batch: 98 || l: 3.409142
epoch: 19 || batch: 99 || l: 3.082799
epoch: 19 || batch: 100 || l: 3.092099
epoch: 19 || batch: 101 || l: 3.262898
epoch: 19 || batch: 102 || l: 3.120981
epoch: 19 || batch: 103 || l: 3.275167
epoch: 19 || batch: 104 || l: 3.187988
epoch: 19 || batch: 105 || l: 3.516507
epoch: 19 || batch: 106 || l: 2.979967
epoch: 19 || batch: 107 || l: 3.051030
epoch: 19 || batch: 108 || l: 3.491227
epoch: 19 || batch: 109 || l: 3.281879
epoch: 19 || batch: 110 || l: 3.299110
epoch: 19 || batch: 111 || l: 3.144029

My loss code is following:
loss=tf.reduce_mean((tf.nn.sparse_softmax_cross_entropy_with_logits(logits=vgg_fcn.upscore32,labels=tf.squeeze(mask,squeeze_dims=[3]),name="entropy")))
train = tf.train.AdamOptimizer(0.005).minimize(loss)
batch_size = 15

What should I do?

@GZHermit
Copy link

Wow, @lily10086 ,buddy,could you share your program about resolving the dataset(ADEChallengeData2016) with me?Hope for your reply.Thank you very much.

@gaokun556
Copy link

dear friend:
i use the loss function to train my network,but i get errors.could you please tell me what should i do about the label(the size of my label is [256,432],but not[width,hight,num_class]).Please.
thank you for ever. @lily10086

@953693623
Copy link

dear friend:
Can you tell me how to train this network? I'm new on the job and I have no idea about it.

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

4 participants