Tramac / Fast-SCNN-pytorch

A PyTorch Implementation of Fast-SCNN: Fast Semantic Segmentation Network
Apache License 2.0
380 stars 93 forks source link

Why doesn't the loss function go down? #14

Closed LYJvincent closed 5 years ago

LYJvincent commented 5 years ago

Hi!Excuse me! I use this network to detect defects.Use MixSoftmaxCrossEntropyLoss loss function, training to 400 eopch, but loss function has been drop down between 0.5 to 0.7.May I ask what the problem is?

LYJvincent commented 5 years ago

MixSoftmaxCrossEntropyOHEMLoss and MixSoftmaxCrossEntropyLoss have the same effect, The learning rate is not going down

feitiandemiaomi commented 5 years ago

@LYJvincent I meet the same problem with you, I use my dataset to train it , the loss always shakes. loss

Tramac commented 5 years ago

How much is the learning rate?

feitiandemiaomi commented 5 years ago

@Tramac I'm wrong ,the lr=0.001 and I use the adam optimizer, I will go on training

LYJvincent commented 5 years ago

@Tramac the lr = 1e-4, now I get better results。thanks!

feitiandemiaomi commented 5 years ago

@LYJvincent What the values of miou can achieve? and how long have you trained?

LYJvincent commented 5 years ago

@feitiandemiaomi current mean_iou is 0.97602%, about 3.5 hour

LYJvincent commented 5 years ago

@feitiandemiaomi is just for my database not cityspaces

Tramac commented 5 years ago

@feitiandemiaomi current mean_iou is 0.97602%, about 3.5 hour

0.97602% or 97.602%?

LYJvincent commented 5 years ago

@Tramac Oh,sorry, is my fault。not 0.97602%, but 97.602%

feitiandemiaomi commented 5 years ago

@LYJvincent Can you share hyperparameters ?

feitiandemiaomi commented 5 years ago

@LYJvincent The paper's miou is 69%, your result is amazing. Hope to learn it ,Thanks

Tramac commented 5 years ago

It depends on the datasets.

CuttlefishXuan commented 3 years ago

@feitiandemiaomi Hi, I meet the same problem as you, the training loss fluctuates between 0.9 and 1.1 Have you solved this problem? Could you get the better result

Alohomora0130 commented 1 year ago

@feitiandemiaomi Hi, I meet the same problem as you. Have you solve this problem? If you have solve this problem, can you share me with your learning rate and batch_size? Thanks!

Alohomora0130 commented 1 year ago

@CuttlefishXuan Hi! Have you solve this problem? Can you tell me your learning rate and batch_size?T hank you very much!