Code Monkey home page Code Monkey logo

dog-classification's Introduction

dog-classification

dog-classification's People

Contributors

sitbayevalibek avatar

Watchers

 avatar

dog-classification's Issues

A machine learning model that classifies dogs

#question
Hello.
There was a problem deploying to streamlit. I did the same as in the video but it says something wrong.

dog-kls

RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.
Traceback:
File "C:\Users\dizda\MLdeploy\dog-klass\venv\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script
exec(code, module.dict)
File "C:\Users\dizda\MLdeploy\dog-klass\app.py", line 21, in
model = load_learner('dog_model.pkl')
File "C:\Users\dizda\MLdeploy\dog-klass\venv\lib\site-packages\fastai\learner.py", line 446, in load_learner
try: res = torch.load(fname, map_location=map_loc, pickle_module=pickle_module)
File "C:\Users\dizda\MLdeploy\dog-klass\venv\lib\site-packages\torch\serialization.py", line 815, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\dizda\MLdeploy\dog-klass\venv\lib\site-packages\torch\serialization.py", line 1033, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
File "C:\Users\dizda\MLdeploy\dog-klass\venv\lib\site-packages\torch\storage.py", line 241, in _load_from_bytes
return torch.load(io.BytesIO(b))
File "C:\Users\dizda\MLdeploy\dog-klass\venv\lib\site-packages\torch\serialization.py", line 815, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\dizda\MLdeploy\dog-klass\venv\lib\site-packages\torch\serialization.py", line 1043, in _legacy_load
result = unpickler.load()
File "C:\Users\dizda\MLdeploy\dog-klass\venv\lib\site-packages\torch\serialization.py", line 980, in persistent_load
wrap_storage=restore_location(obj, location),
File "C:\Users\dizda\MLdeploy\dog-klass\venv\lib\site-packages\torch\serialization.py", line 217, in default_restore_location
result = fn(storage, location)
File "C:\Users\dizda\MLdeploy\dog-klass\venv\lib\site-packages\torch\serialization.py", line 182, in _cuda_deserialize
device = validate_cuda_device(location)
File "C:\Users\dizda\MLdeploy\dog-klass\venv\lib\site-packages\torch\serialization.py", line 166, in validate_cuda_device
raise RuntimeError('Attempting to deserialize object on a CUDA '

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.