Running YOLOv5 through web browser using Flask microframework
- Torch >= 1.5
- Flask
simply run through app.py and View on Local served web browser
Running YOLOv5 through web browser using Flask microframework
Running YOLOv5 through web browser using Flask microframework
simply run through app.py and View on Local served web browser
whats the issue
Hi muhk01,
The project looks really good but I can't seem to get it working.
When running python app.py
I get the following error:
Exception in thread Thread-3:
Traceback (most recent call last):
File "/Users/my_user/.asdf/installs/python/3.8.5/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/Users/my_user/.asdf/installs/python/3.8.5/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/Users/my_user/IdeaProjects/Yolov5-on-Flask/base_camera.py", line 93, in _thread
for frame in frames_iterator:
File "/Users/my_user/IdeaProjects/Yolov5-on-Flask/camera.py", line 37, in frames
model = torch.load(weights, map_location=device)['model']
File "/Users/my_user/IdeaProjects/Yolov5-on-Flask/env/lib/python3.8/site-packages/torch/serialization.py", line 584, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "/Users/my_user/IdeaProjects/Yolov5-on-Flask/env/lib/python3.8/site-packages/torch/serialization.py", line 842, in _load
result = unpickler.load()
ModuleNotFoundError: No module named 'models'
I've used the following requirements.txt
for the dependencies:
flask
numpy
opencv-python==4.1.2.30
torchvision
tqdm
matplotlib
scipy
What am I doing wrong?
I would love to contribute to the repo! Is the repo currently accepting any pull request?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.