Skip to content

Can not get the latest version of tflite-support #983

Open
@homarox

Description

@homarox

Hi,

How can I get the latest of tflite-support?

PS C:\_WorkSpace\_P\pet_classify_book> pip install tflite-support==0.4.4
ERROR: Could not find a version that satisfies the requirement tflite-support==0.4.4 (from versions: 0.1.0a0.dev3, 0.1.0a0.dev4, 0.1.0a0.dev5, 0.1.0a0, 0.1.0a1)
ERROR: No matching distribution found for tflite-support==0.4.4

PS C:\_WorkSpace\_P\pet_classify_book> py --version Python 3.11.0

If I use the version 3.9, it's get some error.

Error processing line 1 of C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\site-packages\protobuf-3.20.3-py3.9-nspkg.pth:

  Traceback (most recent call last):
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\site.py", line 169, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\importlib\util.py", line 2, in <module>
      from . import abc
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\importlib\abc.py", line 17, in <module>
      from typing import Protocol, runtime_checkable
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 2074, in <module>
      class BinaryIO(IO[bytes]):
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 2080, in BinaryIO
      def write(self, s: Union[bytes, bytearray]) -> int:
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 243, in inner
      return func(*args, **kwds)
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 316, in __getitem__
      return self._getitem(self, parameters)
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 421, in Union
      parameters = _remove_dups_flatten(parameters)
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 215, in _remove_dups_flatten
      all_params = set(tuple(param) for param in params)
    File "C:\Users\thle1\AppData\Local\Programs\Python\Python39\lib\typing.py", line 215, in <genexpr>
      all_params = set(tuple(param) for param in params)
  TypeError: 'type' object is not iterable

I want to use the API image_classifier & writer_utils
from tflite_support.metadata_writers import image_classifier, writer_utils

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions