Giter Club home page Giter Club logo

Comments (9)

hoanganh928 avatar hoanganh928 commented on June 12, 2024 1

weight files are stored in git lfs, so you must download them to run:
sudo apt-get install git-lfs
git lfs install
git lfs pull

from arcface-multiplex-recognition.

tomriddle54 avatar tomriddle54 commented on June 12, 2024

@1996scarlet and @MyraBaba did you solve this error? Because I am also getting this error

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/media/mustafa/ubuntu_backup/anaconda3/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/media/mustafa/ubuntu_backup/anaconda3/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "usb_camera.py", line 139, in <lambda>
    Process(target=lambda: asyncio.run(detection_loop(preload))).start()
  File "/media/mustafa/ubuntu_backup/anaconda3/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/media/mustafa/ubuntu_backup/anaconda3/lib/python3.7/asyncio/base_events.py", line 573, in run_until_complete
    return future.result()
  File "usb_camera.py", line 67, in detection_loop
    detector = face_detector.DetectorModel(preload)
  File "/media/mustafa/ubuntu_backup/Projects/mustafa_face_dl/ArcFace-Multiplex-Recognition/face_detector.py", line 14, in __init__
    self.detector = RetinaFace(args.retina_model, 0, args.gpu, 'net3')
  File "/media/mustafa/ubuntu_backup/Projects/mustafa_face_dl/ArcFace-Multiplex-Recognition/retinaface.py", line 84, in __init__
    sym, arg_params, aux_params = mx.model.load_checkpoint(prefix, epoch)
  File "/home/mustafa/.local/lib/python3.7/site-packages/mxnet/model.py", line 438, in load_checkpoint
    save_dict = nd.load('%s-%04d.params' % (prefix, epoch))
  File "/home/mustafa/.local/lib/python3.7/site-packages/mxnet/ndarray/utils.py", line 175, in load
    ctypes.byref(names)))
  File "/home/mustafa/.local/lib/python3.7/site-packages/mxnet/base.py", line 252, in check_call
    raise MXNetError(py_str(_LIB.MXGetLastError()))
mxnet.base.MXNetError: [20:50:08] src/ndarray/ndarray.cc:1803: Check failed: header == kMXAPINDArrayListMagic Invalid NDArray file format

from arcface-multiplex-recognition.

rebotnix avatar rebotnix commented on June 12, 2024

@1996scarlet and @MyraBaba
I have the same issue..Do you use mxcu101? Any idea to fix this?

from arcface-multiplex-recognition.

1996scarlet avatar 1996scarlet commented on June 12, 2024

So could you please tell me which version of cuda and mxnet are you using?

Another method worth trying is to use this file to test a single image of the ArcFace model.
https://github.com/deepinsight/insightface/blob/master/deploy/test.py

from arcface-multiplex-recognition.

tomriddle54 avatar tomriddle54 commented on June 12, 2024

I have cuda 9.0 and cuda 10.1 but default is 10.1 mxnet-cu101 even tried with mxnet-cu90. I tried the insightface it's working

from arcface-multiplex-recognition.

yanjieee avatar yanjieee commented on June 12, 2024

I have tried cuda8.0 and mxnet-cu80, the same error.

from arcface-multiplex-recognition.

lakshaytalkstomachines avatar lakshaytalkstomachines commented on June 12, 2024

Download the model again from InsightFace repo. The link is given in the RetinaFace readme.md
I used your model in the RetinaFace code this problem came. But when i redownloaded the model from their repo. the problem vanished. Not sure what is the problem but my naive guess would be corruption of json file.

from arcface-multiplex-recognition.

jingruhou avatar jingruhou commented on June 12, 2024

请问你们的MXNet的是哪个版本?

from arcface-multiplex-recognition.

Raunak-Singh-Inventor avatar Raunak-Singh-Inventor commented on June 12, 2024

Hi guys,

I got this error in Linux Mint
mxnet.base.MXNetError: [13:46:01] src/ndarray/ndarray.cc:1112: Check failed: header == kMXAPINDArrayListMagic Invalid NDArray file format
I solved it by doing what @hoanganh928 did above:

sudo apt-get install git-lfs
git lfs install
git lfs pull

from arcface-multiplex-recognition.

Related Issues (20)

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.