Giter VIP home page Giter VIP logo

praveen76 / face-mask-detector-using-retinanet-model Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 5.0 113.76 MB

Create a reliable face mask detector with this repository, showcasing the implementation of a powerful Keras-RetinaNet model. Learn to leverage deep learning for accurate face mask detection, promoting safety in diverse environments. Enhance your skills and contribute to public health with this comprehensive solution.

Home Page: https://towardsmachinelearning.org/face-mask-detector-using-retinanet-model/

Jupyter Notebook 100.00%
deep-learning keras-retinanet object-detection object-detection-algorithms

face-mask-detector-using-retinanet-model's Issues

not able to load model

-------------------errrorr-------------------------------------
TypeError Traceback (most recent call last)
in ()
8 #print("path:", model_paths)[-1]
9 #from keras_retinanet import models
---> 10 model = models.load_model(model_paths)
11 model = models.convert_model(model)

2 frames
/usr/local/lib/python3.7/dist-packages/h5py/_hl/base.py in is_hdf5(fname)
39 """ Determine if a file is valid HDF5 (False if it doesn't exist). """
40 with phil:
---> 41 fname = os.path.abspath(fspath(fname))
42
43 if os.path.isfile(fname):

TypeError: expected str, bytes or os.PathLike object, not list

--------------code used ----------------------

from keras_retinanet import models
from glob import glob
#model_paths = glob('/content/Face-mask-detector-using-RetinaNet-model/keras-retinanet/keras-retinanet/snapshots/_pretrained_model.h5')
#model_paths = glob('snapshots/resnet50_csv_0*.h5')
model_path='/content/keras-retinanet/snapshots/_pretrained_model.h5'

#print("path:", model_paths)[-1]
#from keras_retinanet import models
model = models.load_model(model_paths, backbone_name='resnet50')
model = models.convert_model(model)

--------------tried on this issue -------------

tried to install h5py .but still issue is not solved .
pip install h5py==2.10.0

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.