Code Monkey home page Code Monkey logo

retail-store-item-detection-using-yolov5's Issues

Can we export Retail Store Detection last_yolov5s_results.pt weights to tflite to run inference on mobile devices ?

Am trying to convert the last_yolov5s_results.pt to tflite using the official Yolov5 suggested method to convert .pt weights to tflite
https://github.com/ultralytics/yolov5/blob/master/export.py

But I get the below error in fusing layers step
Please let me know if there is an alternative way to convert last_yolov5s_results.pt to tflite.

Fusing layers... Model summary: 199 layers, 6853110 parameters, 0 gradients Traceback (most recent call last): File "/content/yolov5/export.py", line 653, in <module> main(opt) File "/content/yolov5/export.py", line 648, in main run(**vars(opt)) File "/usr/local/lib/python3.8/dist-packages/torch/autograd/grad_mode.py", line 27, in decorate_context return func(*args, **kwargs) File "/content/yolov5/export.py", line 549, in run y = model(im) # dry runs File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1190, in _call_impl return forward_call(*input, **kwargs) File "/content/yolov5/models/yolo.py", line 209, in forward return self._forward_once(x, profile, visualize) # single-scale inference, train File "/content/yolov5/models/yolo.py", line 121, in _forward_once x = m(x) # run File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1190, in _call_impl return forward_call(*input, **kwargs) File "/content/yolov5/models/yolo.py", line 59, in forward x[i] = self.m[i](x[i]) # conv File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1265, in __getattr__ raise AttributeError("'{}' object has no attribute '{}'".format( AttributeError: 'Detect' object has no attribute 'm'

Some bounding box missing

Hello Shayan,

Thanks for sharing this amazing project.

I realized that are missing some box in this image, how can I improve the accuracy in this case? (img attached)

img_1
result

Model weights

Hi, Shayan

Nice project!! Do you mind sharing the last_yolov5_results.pt with me? I'd like to do some tests before I train my own model.

Thanks,

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.