Tensorflow 2.3.0

Hi,

I’m running Home Assistant Core 2021.1.5 and I’m trying to configure tensorflow,
i add these line in the configuration.yaml

image_processing:
  - platform: tensorflow
    source:
      - entity_id: camera.foscam_camera
    file_out: 
      - "/config/tensorflow/tmp/{{ camera_entity.split('.')[1] }}_latest.jpg"
      - "/config/tensorflow/tmp/{{ camera_entity.split('.')[1] }}_{{ now().strftime('%Y%m%d_%H%M%S') }}.jpg"
    model:
      graph: /config/tensorflow/models/ssd_mobilenet_v2_320x320_coco17_tpu-8/

when i check the config it never ends. i see this log message

021-01-25 19:21:55 ERROR (SyncWorker_5) [homeassistant.util.package] Unable to install package tensorflow==2.3.0: ERROR: Could not find a version that satisfies the requirement tensorflow==2.3.0 (from versions: none)

ERROR: No matching distribution found for tensorflow==2.3.0

any ideas?

regards

Try version 2.4.1

Thank you @wolfer4004, can you point me to some details?
I try to follow this procedure, https://www.home-assistant.io/integrations/tensorflow/, but probably i’m missing somethig

let me add some additional info

I’m running HA on the Raspi4 (and if i properly understood) I’m running Home Assistant OS

I tried to follow the steps here
https://github.com/hunterjm/hass-tensorflow, but i think that the repository contains old tensorflow version

from https://www.home-assistant.io/integrations/tensorflow/

but I have no clue how to get a newest version

2021-01-25 23:00:33 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package tensorflow==2.3.0: ERROR: Could not find a version that satisfies the requirement tensorflow==2.3.0 (from versions: none)
ERROR: No matching distribution found for tensorflow==2.3.0
WARNING: You are using pip version 20.2.4; however, version 21.0 is available.
You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.
2021-01-25 23:00:33 ERROR (MainThread) [homeassistant.config] Platform error: image_processing - Requirements for tensorflow not found: ['tensorflow==2.3.0'].

i tried this

# Clone tensorflow/models
git clone https://github.com/tensorflow/models.git
# Compile Protobuf (apt-get install protobuf-compiler)
cd models/research
protoc object_detection/protos/*.proto --python_out=.
# Copy object_detection to {config_dir}
cp -r object_detection {config_dir}/tensorflow

I don’t have the Protobuf compiler

I will try again to follow the documentation https://grpc.io/docs/protoc-installation/

there is another git repository with a tensorflow up-to-date version already compiled that I can clone?
do I need to switch to HA on dockers?, I found different examples with doods
https://hub.docker.com/r/snowzach/doods

regards
bremby

Hi,

Anyone can point me to how to install the tensoflow 2.3.1 or 2.4.1?

Regards