Giter VIP home page Giter VIP logo

Comments (9)

DuleaM avatar DuleaM commented on July 2, 2024 5

I'm still facing this issue, what's the status ?

from tflite-support.

lu-wang-g avatar lu-wang-g commented on July 2, 2024 1

That's right. We'll fix this issue first in MediaPipe Model Maker later this week. Please stay tuned.

from tflite-support.

TheInfamousPro avatar TheInfamousPro commented on July 2, 2024 1

Is there a older version that works?

from tflite-support.

TheInfamousPro avatar TheInfamousPro commented on July 2, 2024

cython

from tflite-support.

TheInfamousPro avatar TheInfamousPro commented on July 2, 2024

okay apparently it is talking about how somethings are deprecated in numpy 1.20
after i installed it. It also cannot detect my RTX 3060

from tflite-support.

TheInfamousPro avatar TheInfamousPro commented on July 2, 2024

Modules imported
2023-08-11 22:11:39.644050: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2023-08-11 22:11:39.644281: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflowjs\read_weights.py:28: FutureWarning: In the future np.object will be defined as the corresponding NumPy scalar.
np.uint8, np.uint16, np.object, np.bool]
Traceback (most recent call last):
File "C:\Users\Admin\Desktop\main.py", line 4, in
from tflite_model_maker.config import ExportFormat, QuantizationConfig
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\tflite_model_maker_init_.py", line 44, in
from tflite_model_maker import audio_classifier
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\tflite_model_maker\audio_classifier_init_.py", line 24, in
from tensorflow_examples.lite.model_maker.core.data_util.audio_dataloader import DataLoader
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow_examples\lite\model_maker\core\data_util\audio_dataloader.py", line 27, in
from tensorflow_examples.lite.model_maker.core.task.model_spec import audio_spec
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow_examples\lite\model_maker\core\task\model_spec_init_.py", line 20, in
from tensorflow_examples.lite.model_maker.core.task.model_spec import audio_spec
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow_examples\lite\model_maker\core\task\model_spec\audio_spec.py", line 29, in
from tensorflow_examples.lite.model_maker.core.task import model_util
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflow_examples\lite\model_maker\core\task\model_util.py", line 28, in
from tensorflowjs.converters import converter as tfjs_converter
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflowjs_init_.py", line 21, in
from tensorflowjs import converters
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflowjs\converters_init_.py", line 21, in
from tensorflowjs.converters.converter import convert
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflowjs\converters\converter.py", line 35, in
from tensorflowjs.converters import keras_h5_conversion as conversion
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflowjs\converters\keras_h5_conversion.py", line 33, in
from tensorflowjs import write_weights # pylint: disable=import-error
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflowjs\write_weights.py", line 25, in
from tensorflowjs import read_weights
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\tensorflowjs\read_weights.py", line 28, in
np.uint8, np.uint16, np.object, np.bool]
File "C:\Users\Admin\AppData\Local\Programs\Python\Python39\lib\site-packages\numpy_init_.py", line 319, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'object'.
np.object was a deprecated alias for the builtin object. To avoid this error in existing code, use object by itself. Doing this will not modify any behavior and is safe.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

from tflite-support.

aryan57 avatar aryan57 commented on July 2, 2024

I am facing the same error and cannot install it, can someone help please

from tflite-support.

cikichen avatar cikichen commented on July 2, 2024

me too, mac m1

 Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [68 lines of output]
      /private/var/folders/t1/t4n_16gn7pn2p6fyrpj84g340000gn/T/pip-build-env-z6raz21l/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
      !!

              ********************************************************************************
              The license_file parameter is deprecated, use license_files instead.

              By 2023-Oct-30, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
              ********************************************************************************

      !!
        parsed = self.parsers.get(option_name, lambda x: x)(value)
      running egg_info
      writing lib3/PyYAML.egg-info/PKG-INFO
      writing dependency_links to lib3/PyYAML.egg-info/dependency_links.txt
      writing top-level names to lib3/PyYAML.egg-info/top_level.txt
      Traceback (most recent call last):

from tflite-support.

bduyng avatar bduyng commented on July 2, 2024

I got the same issue and was able to fix by using this hack:

echo "Cython<3" > cython_constraint.txt
$ PIP_CONSTRAINT=cython_constraint.txt pip install "tflite-model-maker"

from tflite-support.

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.