SVHNClassifier-PyTorch icon indicating copy to clipboard operation
SVHNClassifier-PyTorch copied to clipboard

Can I have a trained SVHNClassifier?

Open changkaizhao opened this issue 8 years ago • 5 comments

Hi, I have no powerful machine to train SVHNClassifier. Can I have a trained SVHNClassifier (model-100.tar)?

changkaizhao avatar Jan 03 '18 13:01 changkaizhao

I would love to try the pre-trained model for another project I have, would you be so kind to deliver the weights?

fmcalcagno avatar Nov 26 '18 15:11 fmcalcagno

Author has released the pretrained model in Readme.md [Result]

|steps| |54000|

selous123 avatar May 10 '19 01:05 selous123

Hi, i had some problem during load_state_dict using the pre trained weights, do you have any solution?

Batush123 avatar Apr 04 '20 21:04 Batush123

Try this code , resolved the problem for me

 device = torch.device('cpu')
 pretrained_model = torch.load(path_to_checkpoint_file, map_location=device)
 model = Model()
 model.load_state_dict(pretrained_model,strict=False)

ghost avatar May 22 '20 04:05 ghost

I have this problem when trying to run inference on the example image, I used the above code to load the model and the inference script:

  File "torch/nn/functional.py", line 2478, in batch_norm
        _verify_batch_size(input.size())

    return torch.batch_norm(
           ~~~~~~~~~~~~~~~~ <--- HERE
        input, weight, bias, running_mean, running_var, training, momentum, eps, torch.backends.cudnn.enabled
    )
RuntimeError: running_mean should contain 54 elements not 48

BuceaGeorgia avatar Jan 15 '24 23:01 BuceaGeorgia