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
this line of code should be deleted. Since the parameters of the target network is generated from the hyper network adaptively, the code 'model_target = models.TargetNet(paras).cuda()' has already built a target network which has its own self-adaptive weight parameters.
Also, I noticed you have resized all the testing images to the size of 224x224, if you trained also with images resized to 224x224, it's OK, but if the training procedure follows the configuration in our origin code, i.e. randomly cropping 224x224 patches, it'll be better to use the same configuration to testing images, since scale consistency also influences model performance.
I used some data of my own to train the model and want to calculate the score of images one by one.
During the trainning, I added some codes to calculate the l1-norm, such as the codes below
Then I wrote the inference codes su as the codes below
Here, pretrained_model_name_hyper and pretrained_model_name_target are hyper and target models saved during trainning.
During the training, I got the minimum average l1-norm 2.88, but in the test, I got 11.13.
Is there anything wrong with the codes?
I guess it may have some problem in the loading process of the pretrained target model.
The text was updated successfully, but these errors were encountered: