Giter VIP home page Giter VIP logo

hog_finder's People

Contributors

bnel1201 avatar

Watchers

 avatar

hog_finder's Issues

issue reading windows Path string on docker

This is likely because I save a fastai model using a windows Path() oject so when unpickling it doesnt know what to do. I should try resaving the model setting the path with a naked string, rather than a pathlib Path object.

File "/usr/local/lib/python3.9/site-packages/streamlit/script_runner.py", line 333, in _run_script
    exec(code, module.__dict__)
File "/code/streamlit_app.py", line 50, in <module>
    main()
File "/code/streamlit_app.py", line 29, in main
    show_image(imlist[selected_frame_index], show_mask, predict)
File "/code/streamlit_app.py", line 44, in show_image
    hf = hedgiefinder.HedgieFinder(fname, cleanup=False).predict([fname])
File "/code/hedgiefinder/inference.py", line 31, in __init__
    self.model = load_learner(model_dir/model_name)
File "/usr/local/lib/python3.9/site-packages/fastai/learner.py", line 374, in load_learner
    res = torch.load(fname, map_location='cpu' if cpu else None, pickle_module=pickle_module)
File "/usr/local/lib/python3.9/site-packages/torch/serialization.py", line 594, in load
    return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "/usr/local/lib/python3.9/site-packages/torch/serialization.py", line 853, in _load
    result = unpickler.load()
File "/usr/local/lib/python3.9/pathlib.py", line 1073, in __new__
    raise NotImplementedError("cannot instantiate %r on your system"

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.