Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Can I have a trained SVHNClassifier? #1

Open
changkaizhao opened this issue Jan 3, 2018 · 5 comments
Open

Can I have a trained SVHNClassifier? #1

changkaizhao opened this issue Jan 3, 2018 · 5 comments

Comments

@changkaizhao
Copy link

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

@fmcalcagno
Copy link

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

@selous123
Copy link

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

|steps|
|54000|

@Batush123
Copy link

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

@ghost
Copy link

ghost commented May 22, 2020

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)

@BuceaGeorgia
Copy link

BuceaGeorgia commented Jan 15, 2024

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants