Skip to content

Releases: cocoa-xu/tflite_beam

v0.1.7

22 Mar 02:14
44d9f78
Compare
Choose a tag to compare

Changelog

v0.1.7 (2022-03-22)

Browse the Repository | Released Assets

Breaking Changes

  • Deprecated TFLiteElixir.Interpreter.allocate_tensors!/1
  • Deprecated Access behaviour for TFLiteElixir.FlatBufferModel

Fixed

  • Properly implemented TFLiteElixir.FlatBufferModel.read_all_metadata/1.

    iex> filename = Path.join([__DIR__, "test", "test_data", "mobilenet_v2_1.0_224_inat_bird_quant.tflite"])
    iex> %FlatBufferModel{} = model = FlatBufferModel.build_from_buffer(File.read!(filename))
    iex> TFLiteElixir.FlatBufferModel.read_all_metadata(model)
    %{
      TFLITE_METADATA: %{
        description:
          "Identify the most prominent object in the image from a known set of categories.",
        min_parser_version: "1.0.0",
        name: "ImageClassifier",
        subgraph_metadata: [
          %{
            input_tensor_metadata: [
              %{
                content: %{
                  content_properties: %{color_space: "RGB"},
                  content_properties_type: "ImageProperties"
                },
                description: "Input image to be classified.",
                name: "image",
                process_units: [
                  %{
                    options: %{mean: [127.5], std: [127.5]},
                    options_type: "NormalizationOptions"
                  }
                ],
                stats: %{max: [255.0], min: [0.0]}
              }
            ],
            output_tensor_metadata: [
              %{
                associated_files: [
                  %{
                    description: "Labels for categories that the model can recognize.",
                    name: "inat_bird_labels.txt",
                    type: "TENSOR_AXIS_LABELS"
                  }
                ],
                description: "Probabilities of the labels respectively.",
                name: "probability",
                stats: %{max: [255.0], min: [0.0]}
              }
            ]
          }
        ]
      },
      min_runtime_version: "1.5.0"
    }

Changed

Added

  • Implemented
    • FlatBufferModel.{list_associated_files/1,get_associated_file/2}
    • TFLiteElixir.Interpreter.signature_keys/1
    • TFLiteElixir.Interpreter.execution_plan/1
    • TFLiteElixir.Interpreter.new_from_buffer/1
    • TFLiteElixir.Interpreter.tensors_size/1
    • TFLiteElixir.Interpreter.variables/1
    • TFLiteElixir.Interpreter.set_variables/2
    • TFLiteElixir.Interpreter.set_inputs/2
    • TFLiteElixir.Interpreter.set_outputs/2
  • [example] object detection example (#40) by @mnishiguchi

v0.1.6

19 Mar 19:20
4b03eab
Compare
Choose a tag to compare

Changelog

v0.1.6 (2022-03-19)

Browse the Repository | Released Assets

Fixed

  • [edgetpu] Improved edgetpu context handling, and bumped libedgetpu_runtime_version to v0.1.5. Fixed #30

Added

v0.1.5

18 Mar 20:47
fd5c005
Compare
Choose a tag to compare

Changelog

v0.1.5 (2022-03-18)

Browse the Repository | Released Assets

Breaking Changes

  • Deprecated functions:
    • TFLiteElixir.FlatBufferModel.initialized!/1
    • TFLiteElixir.FlatBufferModel.get_minimum_runtime!/1
    • TFLiteElixir.TFLiteTensor.tensor!
    • TFLiteElixir.TFLiteTensor.to_nx!
    • TFLiteElixir.TFLiteTensor.to_binary!
    • TFLiteElixir.FlatBufferModel.build_from_buffer!
    • TFLiteElixir.FlatBufferModel.get_full_signature_list
  • TFLiteElixir.Coral.get_edge_tpu_context/1 now takes keyword options.

Changes

Fixed

  • Fixed a few places that could lead to segmentation fault.
  • [example] Fixed broken ESRGAN link, Visualize the result section in the "Super Resolution" notebook. Lock down tflite_elixir and evision version (#29) @mnishiguchi.
  • [typespec] Fixed typespec for TFLiteElixir.Coral.edge_tpu_devices/0 (#22) @mnishiguchi.

Added

  • [test] Unit tests for TFLiteElixir.Interpreter, TFLiteElixir.InterpreterBuilder and TFLiteElixir.Ops.Builtin.BuiltinResolver.
  • [example] Added intro text to super_resolution_example. (#26) @mnishiguchi.
  • TFLiteElixir.FlatBufferModel.error_reporter/1.
  • TFLiteElixir.FlatBufferModel.verify_and_build_from_file/2

v0.1.4

14 Mar 06:05
cbf0edc
Compare
Choose a tag to compare

Changelog

v0.1.4 (2022-03-14)

Browse the Repository | Released Assets

Breaking Changes

Changes

Fixed

  • Fix compilation logic when not using precompiled binaries.

Added

  • Implemented TFLiteElixir.reset_variable_tensor/1.
  • Add support for armv6.

Misc

  • Simple workaround for cortex-a53 and cortex-a57, vcvtaq_s32_f32.

New Contributors

Full Changelog: cocoa-xu/tflite_elixir@v0.1.3...v0.1.4

nerves-release-20230312

12 Mar 22:18
921e9a4
Compare
Choose a tag to compare
vscode pls dont add randon lines in my code

nerves-release-20230311

11 Mar 03:32
5654755
Compare
Choose a tag to compare

v0.1.3

08 Mar 23:56
02eaecd
Compare
Choose a tag to compare

Changelog

v0.1.3 (2022-03-09)

Browse the Repository | Released Assets

Changes

v0.1.2

08 Mar 22:10
71c5182
Compare
Choose a tag to compare

Changelog

v0.1.2 (2022-03-08)

Browse the Repository | Released Assets

First release on hex.pm.

v0.1.1

05 Aug 18:33
e15f6fc
Compare
Choose a tag to compare
add @libedgetpu_runtime_version

v0.1.0

26 Jun 06:08
8ba37d6
Compare
Choose a tag to compare
fix precompile