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
The losses remain the same #8
Comments
Could you tell me how you instantiated the CRF? Thanks. |
My code is shown below, but this is direct training, but loss is always constant. import CRF crf = CRF.DenseGaussianCRF(classes=1, Create a CNN-CRF model from given
|
Are you sure that training is successful without the CRF? Could you try replacing the line |
thanks,it is ok. |
Great. Do not hesitate to let me know if you encounter any issues. |
import torch
class CNNCRF(torch.nn.Module):
"""
Simple CNN-CRF model
"""
def init(self, cnn, crf):
super().init()
self.cnn = cnn
self.crf = crf
Create a CNN-CRF model from given
cnn
andcrf
This is a PyTorch module that can be used in a usual way
model = CNNCRF(cnn, crf)
First I train unET and save the model, then I load the trained UNET model and train UNET and CRFS. I found the loss stuck at 0.693147. Do you have any suggestions?
The text was updated successfully, but these errors were encountered: