Giter VIP home page Giter VIP logo

alexnet_pytorch's People

Contributors

amajee11us avatar masterskepticista avatar

Watchers

 avatar

alexnet_pytorch's Issues

Resuming from checkpoint

This is a TODO in the script.
Additional info:

model = model.AlexNet(cfg=cfg)
model.load_state_dict(torch.load('~/workspace/ton_618/checkpoint.pth'))
log.info(model)

Error:

RuntimeError: Error(s) in loading state_dict for AlexNet:
Missing key(s) in state_dict: "conv_feat.0.weight", "conv_feat.0.bias", "conv_feat.3.weight", "conv_feat.3.bias", "conv_feat.6.weight", "conv_feat.6.bias", "conv_feat.8.weight", "conv_feat.8.bias", "conv_feat.10.weight", "conv_feat.10.bias", "classifier.1.weight", "classifier.1.bias", "classifier.4.weight", "classifier.4.bias", "classifier.6.weight", "classifier.6.bias". 
Unexpected key(s) in state_dict: "epoch", "arch", "state_dict", "best_acc1", "optimzer", "lr".

Probably because currently the save_checkpoint() only adds particular 'unexpected' keys and not the actual state_dict

Fetching device details from yaml

Instead of having an arg for use-gpu, place the device under the yaml config entry.
Everywhere the cfg is used, appropriate device choice will be made between cuda and cpu.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.