Files
docker/archive/doods/fetch_models.sh
T
beatzaplenty 0040b60e74 renamed: autossh/Dockerfile -> archive/autossh/Dockerfile
renamed:    autossh/docker-compose.yml -> archive/autossh/docker-compose.yml
	renamed:    dnscrypt-proxy/docker-compose.yml -> archive/dnscrypt-proxy/docker-compose.yml
	renamed:    docuseal/docker-compose.yml -> archive/docuseal/docker-compose.yml
	renamed:    doh/docker-compose.yml -> archive/doh/docker-compose.yml
	renamed:    doods/Dockerfile -> archive/doods/Dockerfile
	renamed:    doods/config.yaml -> archive/doods/config.yaml
	renamed:    doods/docker-compose.yml -> archive/doods/docker-compose.yml
	renamed:    doods/fetch_models.sh -> archive/doods/fetch_models.sh
	renamed:    dynu/dynu.sh -> archive/dynu/dynu.sh
	renamed:    misc/email-alerts/Dockerfile -> archive/email-alerts/Dockerfile
	renamed:    esphome/Dockerfile -> archive/esphome/Dockerfile
	renamed:    esphome/create-default-config.sh -> archive/esphome/create-default-config.sh
	renamed:    esphome/data/.gitignore -> archive/esphome/data/.gitignore
	renamed:    esphome/data/esphome-garage.yaml -> archive/esphome/data/esphome-garage.yaml
	renamed:    esphome/data/esphome-waynes-room.yaml -> archive/esphome/data/esphome-waynes-room.yaml
	renamed:    esphome/default_configuration.yaml -> archive/esphome/default_configuration.yaml
	renamed:    esphome/docker-compose.yml -> archive/esphome/docker-compose.yml
	renamed:    esphome/remote_transmitter-codes.yaml -> archive/esphome/remote_transmitter-codes.yaml
	renamed:    graylog/docker-compose.yml -> archive/graylog/docker-compose.yml
	renamed:    hass/docker-compose.yml -> archive/hass/docker-compose.yml
	renamed:    lfs/Dockerfile -> archive/lfs/Dockerfile
	renamed:    lfs/cross-toolchain.sh -> archive/lfs/cross-toolchain.sh
	renamed:    mqtt/config.yaml -> archive/mqtt/config.yaml
	renamed:    mqtt/docker-compose.yml -> archive/mqtt/docker-compose.yml
	renamed:    netdata/docker-compose.yml -> archive/netdata/docker-compose.yml
	renamed:    misc/office365/Dockerfile -> archive/office365/Dockerfile
	renamed:    pihole/docker-compose.yml -> archive/pihole/docker-compose.yml
	renamed:    misc/portainer-compose-files/haproxy.yaml -> archive/portainer-compose-files/haproxy.yaml
	renamed:    misc/portainer-compose-files/keeweb.yaml -> archive/portainer-compose-files/keeweb.yaml
	renamed:    misc/portainer-compose-files/registry.yaml -> archive/portainer-compose-files/registry.yaml
	renamed:    misc/portainer-compose-files/searxng.yaml -> archive/portainer-compose-files/searxng.yaml
	renamed:    misc/portainer-compose-files/webdav.yaml -> archive/portainer-compose-files/webdav.yaml
	renamed:    misc/portainer/docker-compose.yml -> archive/portainer/docker-compose.yml
	renamed:    traccar/docker-compose.yml -> archive/traccar/docker-compose.yml
	renamed:    misc/ubuntu-gui/Dockerfile -> archive/ubuntu-gui/Dockerfile
	renamed:    misc/ubuntu-gui/docker-compose.yml -> archive/ubuntu-gui/docker-compose.yml
	renamed:    webdav/docker-compose.yml -> archive/webdav/docker-compose.yml
2025-07-20 13:31:06 +10:00

36 lines
2.0 KiB
Bash
Executable File

#!/bin/bash
mkdir -p models
# coco_ssd_mobilenet_v1_1.0_quant_2018_06_29
wget https://storage.googleapis.com/download.tensorflow.org/models/tflite/coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip && unzip coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip && rm coco_ssd_mobilenet_v1_1.0_quant_2018_06_29.zip && mv detect.tflite models/coco_ssd_mobilenet_v1_1.0_quant.tflite && rm labelmap.txt
wget https://dl.google.com/coral/canned_models/coco_labels.txt && mv coco_labels.txt models/coco_labels0.txt
# mobilenet_ssd_v2_coco_quant_postprocess_edgetpu
wget https://dl.google.com/coral/canned_models/mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite && mv mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite models/mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite
# faster_rcnn_inception_v2_coco_2018_01_28
wget http://download.tensorflow.org/models/object_detection/faster_rcnn_inception_v2_coco_2018_01_28.tar.gz && tar -zxvf faster_rcnn_inception_v2_coco_2018_01_28.tar.gz faster_rcnn_inception_v2_coco_2018_01_28/frozen_inference_graph.pb --strip=1 && mv frozen_inference_graph.pb models/faster_rcnn_inception_v2_coco_2018_01_28.pb && rm faster_rcnn_inception_v2_coco_2018_01_28.tar.gz
wget https://raw.githubusercontent.com/amikelive/coco-labels/master/coco-labels-2014_2017.txt && mv coco-labels-2014_2017.txt models/coco_labels1.txt
cat << EOF > example.yaml
doods:
detectors:
- name: default
type: tflite
modelFile: models/coco_ssd_mobilenet_v1_1.0_quant.tflite
labelFile: models/coco_labels0.txt
numThreads: 0
numConcurrent: 4
- name: edgetpu
type: tflite
modelFile: models/mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite
labelFile: models/coco_labels0.txt
numThreads: 0
numConcurrent: 4
hwAccel: true
- name: tensorflow
type: tensorflow
modelFile: models/faster_rcnn_inception_v2_coco_2018_01_28.pb
labelFile: models/coco_labels1.txt
width: 224
height: 224
numThreads: 0
numConcurrent: 4
EOF