Comments (9)
I'm still facing this issue, what's the status ?
from tflite-support.
That's right. We'll fix this issue first in MediaPipe Model Maker later this week. Please stay tuned.
from tflite-support.
Is there a older version that works?
from tflite-support.
cython
from tflite-support.
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.
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.
I am facing the same error and cannot install it, can someone help please
from tflite-support.
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.
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)
- I want to ask if TFLImage Searcher is supported on iOS and if so, where can I get a sample?
- Getting "Cannot copy to a TensorFlowLite tensor (serving_default_input_1:0) with 63984 bytes from a Java Buffer with 64000 bytes" error while attempting to pass the Input and Output TensorAudio Buffer to TFLite Interpreter for inference HOT 1
- ImportError from image_utils HOT 4
- Could you please provide a aarch64 tflite-support wheel for python 3.10 HOT 2
- YOLOv8 `tensorflow>=2.14.0` ImportError: generic_type: cannot initialize type "StatusCode": an object with that name is already defined HOT 6
- How to read .wav in adroid jni?
- `tf.lite`, or `tflite_tuntime.interpreter as `tflite`?
- TensorFlowLiteTaskAudio for iOS: How to save audio and then play it
- ERROR: Could not find a version that satisfies the requirement tflite-support==0.4.4 HOT 4
- Installation Error: Unable to find installation candidates for tflite-support (0.4.4)
- Build TensorFlowLiteTaskVision_framework failed HOT 2
- How to handle dynamic output tensors with `tflite.runForMultipleInputsOutputs`
- iOS Error duplicate symbols HOT 2
- 0.4.2 and 0.4.3 versions of the pod are crashing on app launch on iOS 12.5.7
- Quantization with tflite : Unexpected input data type. Actual: (tensor(float)) , expected: (tensor(int8))
- How to install tflite_support in pip by source compiling HOT 3
- Possibility of channel-by-channel image normalization when adding metadata
- Document TFLite Support vs MediaPipe HOT 1
- No 0.4.4 PyPi package available for Arm/Python 3.11
- Model Loading Error for Image Embedder in Android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tflite-support.