You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried training this model by freezing the CNN part (the total number of trainable parameters of the model is then 885) using Adam optimizer with a learning rate of 1e-4, but it was very difficult to converge. Could you please tell me if what I did above is correct?
Thank you in advance for your response.
The text was updated successfully, but these errors were encountered:
In addition, I got the following error when training on multiple GPUs:
RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one. This error indicates that your module has parameters that were not used in producing loss. You can enable unused parameter detection by (1) passing the keyword argument find_unused_parameters=True to torch.nn.parallel.DistributedDataParallel; (2) making sure all forward function outputs participate in calculating loss. If you already have done the above two steps, then the distributed data parallel module wasn't able to locate the output tensors in the return value of your module's forward function. Please include the loss function and the structure of the return value of forward of your module when reporting this issue (e.g. list, dict, iterable). (prepare_for_backward at /pytorch/torch/csrc/distributed/c10d/reducer.cpp:514)
If I remove the CRF, everything works fine. So I must have done something wrong on that part...
Hello,
I would like to ask some questions the CRF layers that you proposed.
Suppose I can get some CNN (e.g. FCN or DeepLab) using:
This CNN can be trained with the usual cross-entropy loss without any issue.
Now to put a CRF on top of it, I define some model for combining a CNN and a CRF like this:
Then I create a CRF layer and add it to the model:
I tried training this model by freezing the CNN part (the total number of trainable parameters of the model is then 885) using Adam optimizer with a learning rate of
1e-4
, but it was very difficult to converge. Could you please tell me if what I did above is correct?Thank you in advance for your response.
The text was updated successfully, but these errors were encountered: