Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon crash after fresh install #1685

Open
simplemice opened this issue Dec 28, 2024 · 10 comments
Open

Addon crash after fresh install #1685

simplemice opened this issue Dec 28, 2024 · 10 comments
Labels
bug Something isn't working stale Element will be closed automatically

Comments

@simplemice
Copy link

Description

fresh install of HA and also fresh install of addon
no any configuration in file, only add stream rstp to configuration in addon

Reproduction steps

fresh install, no additional configuration in file, only install and add stream rstp

Addon Logs

Starting...
/etc/cont-init.d/00-banner.sh: executing
-----------------------------------------------------------
 Add-on: Birdnet-go
 Realtime BirdNET soundscape analyzer
-----------------------------------------------------------
 Add-on version: 25-2
 You are running the latest version of this add-on.
 System: Home Assistant OS 14.1  (amd64 / qemux86-64)
 Home Assistant Core: 2024.12.5
 Home Assistant Supervisor: 2024.12.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons 
-----------------------------------------------------------
/etc/cont-init.d/00-global_var.sh: executing
BIRDSONGS_FOLDER='/config/clips'
COMMAND='realtime --rtsp rtsp://rtsp:[email protected]:554/av_stream/ch0'
Timezone set from Etc/UTC to Asia/Bangkok
/etc/cont-init.d/00-local_mounts.sh: executing
/etc/cont-init.d/00-smb_mounts.sh: executing
/etc/cont-init.d/01-config_yaml.sh: executing
Setting permissions for the config_env.yaml directory
Load environment variables from /config/config_env.yaml if existing
If accessing the file with filebrowser it should be mapped to /addon_configs/86689438_birdnet-go/config_env.yaml
---------------------------------------------------------
Wiki here on how to use : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables
... no config file, creating one from template. Please customize the file in /config/config_env.yaml before restarting.
... no env variables found, exiting
/etc/cont-init.d/01-custom_script.sh: executing
Execute /addon_configs/86689438_birdnet-go/birdnet-go.sh if existing
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation
/etc/cont-init.d/01-structure.sh: executing
... database location is /config/birdnet.db
... audio clips saved to /config/clips
[10:58:00] INFO: Correct config for defaults
/etc/cont-init.d/32-nginx_ingress.sh: executing
Adapting for ingress
/etc/cont-init.d/33-mariadb.sh: executing
/etc/cont-init.d/33-mqtt.sh: executing
/etc/cont-init.d/99-run.sh: executing
[10:58:01] INFO: ALSA_CARD option is set to null. If the microphone doesn't work, please adapt it
[10:58:01] INFO: Starting app...
Created default config file at: /root/.config/birdnet-go/config.yaml
🐦 BirdNET-Go build date: 2024-12-21T07:45:28Z, using config file: /root/.config/birdnet-go/config.yaml
SIGILL: illegal instruction
PC=0x7fd5d8c6878c m=0 sigcode=2
signal arrived during cgo execution
instruction bytes: 0xc5 0xf8 0x57 0xc0 0xc5 0xf8 0x11 0x45 0xa8 0x48 0xc7 0x45 0xb8 0x0 0x0 0x0
goroutine 1 gp=0xc0000061c0 m=0 mp=0x6258160 [syscall]:
runtime.cgocall(0xd9c61e, 0xc000361840)
	/usr/local/go/src/runtime/cgocall.go:167 +0x4b fp=0xc000361818 sp=0xc0003617e0 pc=0x472c2b
github.com/tphakala/go-tflite._Cfunc_TfLiteModelCreate(0x7fd578eab010, 0x315484c)
	_cgo_gotypes.go:633 +0x4c fp=0xc000361840 sp=0xc000361818 pc=0xa1fa6c
github.com/tphakala/go-tflite.NewModel.func1({0x30fdce0?, 0x315484c, 0xc00037e280?})
	/go/pkg/mod/github.com/tphakala/[email protected]/tflite.go:29 +0x4d fp=0xc000361878 sp=0xc000361840 pc=0xa2032d
github.com/tphakala/go-tflite.NewModel({0x30fdce0?, 0x8e91a9?, 0x7fd5910ef658?})
	/go/pkg/mod/github.com/tphakala/[email protected]/tflite.go:29 +0x18 fp=0xc0003618a8 sp=0xc000361878 pc=0xa20278
github.com/tphakala/birdnet-go/internal/birdnet.(*BirdNET).initializeModel(0xc000352320)
	/home/dev-user/src/BirdNET-Go/internal/birdnet/birdnet.go:88 +0x35 fp=0xc000361950 sp=0xc0003618a8 pc=0xa32af5
github.com/tphakala/birdnet-go/internal/birdnet.NewBirdNET(0xc0002d1508)
	/home/dev-user/src/BirdNET-Go/internal/birdnet/birdnet.go:58 +0x50 fp=0xc0003619a0 sp=0xc000361950 pc=0xa32950
github.com/tphakala/birdnet-go/internal/analysis.initializeBirdNET(0xc0002d1508)
	/home/dev-user/src/BirdNET-Go/internal/analysis/birdnet_init.go:18 +0x30 fp=0xc0003619e8 sp=0xc0003619a0 pc=0xcdc7b0
github.com/tphakala/birdnet-go/internal/analysis.RealtimeAnalysis(0xc0002d1508)
	/home/dev-user/src/BirdNET-Go/internal/analysis/realtime.go:32 +0x45 fp=0xc000361bf0 sp=0xc0003619e8 pc=0xcde045
github.com/tphakala/birdnet-go/cmd/realtime.Command.func1(0xc00038a608?, {0x106bd52?, 0x4?, 0x106bc46?})
	/home/dev-user/src/BirdNET-Go/cmd/realtime/realtime.go:20 +0x17 fp=0xc000361c08 sp=0xc000361bf0 pc=0xce1277
github.com/spf13/cobra.(*Command).execute(0xc00038a608, {0xc00034e700, 0x2, 0x2})
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:985 +0xaaa fp=0xc000361d90 sp=0xc000361c08 pc=0x8dedaa
github.com/spf13/cobra.(*Command).ExecuteC(0xc0000cbb08)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x3ff fp=0xc000361e68 sp=0xc000361d90 pc=0x8df67f
github.com/spf13/cobra.(*Command).Execute(0xc0002d1508?)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041 +0x13 fp=0xc000361e80 sp=0xc000361e68 pc=0x8df1d3
main.main()
	/home/dev-user/src/BirdNET-Go/main.go:62 +0x36a fp=0xc000361f50 sp=0xc000361e80 pc=0xce260a
runtime.main()
	/usr/local/go/src/runtime/proc.go:272 +0x28b fp=0xc000361fe0 sp=0xc000361f50 pc=0x442c4b
runtime.goexit({})

Architecture

amd64

OS

HAos

@simplemice simplemice added the bug Something isn't working label Dec 28, 2024
@simplemice simplemice changed the title 🐛 [Addon name] <title> Addon crash after fresh install Dec 28, 2024
@alexbelgium
Copy link
Owner

Hi, thanks. I can't replicate, could you please try to use 1 in the ALSA_CARD option? It is not normal that it detects it as null ; it would help me understand why you see this. Thanks!

@simplemice
Copy link
Author

simplemice commented Dec 28, 2024

thanks for reply, change ALSA to 1 in configuration of addon (not in config.yaml)

logs:

 System:   ( / )
 Home Assistant Core: 
 Home Assistant Supervisor: 
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons 
-----------------------------------------------------------
parse error: Expected string key before ':' at line 1, column 4
[13:06:50] ERROR: Unknown HTTP error occured
/etc/cont-init.d/00-global_var.sh: executing
ALSA_CARD='1'
BIRDSONGS_FOLDER='/config/clips'
COMMAND='realtime --rtsp rtsp://rtsp:[email protected]:554/av_stream/ch0'
Timezone set from Etc/UTC to Asia/Bangkok
/etc/cont-init.d/00-local_mounts.sh: executing
/etc/cont-init.d/00-smb_mounts.sh: executing
/etc/cont-init.d/01-config_yaml.sh: executing
Setting permissions for the config_env.yaml directory
Load environment variables from /config/config_env.yaml if existing
If accessing the file with filebrowser it should be mapped to /addon_configs/86689438_birdnet-go/config_env.yaml
---------------------------------------------------------
Wiki here on how to use : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables
... no env variables found, exiting
/etc/cont-init.d/01-custom_script.sh: executing
Execute /addon_configs/86689438_birdnet-go/birdnet-go.sh if existing
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation
/etc/cont-init.d/01-structure.sh: executing
[13:06:53] INFO: Correct config for defaults
... database location is /config/birdnet.db
... audio clips saved to null
# BirdNET-Go configuration
debug: false              # print debug messages, can help with problem solving
# Node specific settings
main:
  name: BirdNET-Go        # name of node, can be used to identify source of notes
  timeas24h: true         # true for 24-hour time format, false for 12-hour time format
  log:
    enabled: true         # true to enable log file
    path: birdnet.log     # path to log file
    rotation: daily       # daily, weekly or size
    maxsize: 1048576      # max size in bytes for size rotation
    rotationday: "Sunday" # day of the week for weekly rotation, 0 = Sunday
# BirdNET model specific settings
birdnet:
  sensitivity: 1.0        # sigmoid sensitivity, 0.1 to 1.5
  threshold: 0.8          # threshold for prediction confidence to report, 0.0 to 1.0
  overlap: 1.5            # overlap between chunks, 0.0 to 2.9
  threads: 0              # 0 to use all available CPU threads
  locale: en              # language to use for labels
  latitude: 00.000        # latitude of recording location for prediction filtering
  longitude: 00.000       # longitude of recording location for prediction filtering
  rangefilter:
      model: latest       # model to use for range filter: "latest" or "legacy" for previous model
      threshold: 0.01     # rangefilter species occurrence threshold
  modelpath: ""           # path to external model file (empty for embedded)
  labelpath: ""           # path to external label file (empty for embedded)
  usexnnpack: false       # true to use XNNPACK delegate for inference acceleration
# Realtime processing settings
realtime:
  interval: 15            # duplicate prediction interval in seconds
  processingtime: false   # true to report processing time for each prediction
  audio:
    source: "sysdefault"  # audio source to use for analysis
    equalizer:
      enabled: false
      filters:
        - type: HighPass
          frequency: 100
          passes: 0 
        - type: LowPass
          frequency: 15000
          passes: 0 
    export:
      enabled: true       # true to export audio clips containing indentified bird calls
      debug: false        # true to enable audio export debug messages
      path: null # path to audio clip export directory
      type: wav           # wav, flac, aac, opus, mp3. Formats other than wav require ffmpeg.
      bitrate: 96k        # bitrate for aac and opus exports
      retention:
        policy: usage     # retention policy: none, age or usage
        maxage: 30d       # age policy: maximum age of clips to keep before starting evictions
        maxusage: 80%     # usage policy: percentage of disk usage to trigger eviction        
        minclips: 10      # minumum number of clips per species to keep before starting evictions
  dashboard:
    thumbnails:
      summary: false
      recent: true
  dynamicthreshold:
    enabled: true         # true to enable dynamic confidence threshold
    trigger: 0.90         # dynamic threshold is activated on detections at this confidence level
    min: 0.20             # dynamic threshold will not go lower than this
    validhours: 24        # number of hours to consider for dynamic confidence
  rtsp:    
    transport: tcp        # RTSP Transport Protocol
    urls:                 # RTSP stream URLs
      # - rtsp://user:[email protected]/stream1
      # - rtsp://user:[email protected]/stream2
      # - rtsp://user:[email protected]/stream3
  log:
    enabled: false        # true to enable OBS chat log
    path: birdnet.txt     # path to OBS chat log
  birdweather:
    enabled: false        # true to enable birdweather uploads
    locationaccuracy: 500 # accuracy of location in meters
    debug: false          # true to enable birdweather api debug mode
    id: ""                # birdweather ID
  openweather:
    enabled: false
    apikey: ""        # OpenWeather API key
    endpoint: "https://api.openweathermap.org/data/2.5/weather" # OpenWeather API endpoint
    units: metric     # metric or imperial
    language: en      # language code
  mqtt:
    enabled: false        # true to enable MQTT
    broker: tcp://localhost:1883 # MQTT (tcp://host:port)
    topic: birdnet        # MQTT topic
    username: birdnet     # MQTT username
    password: secret      # MQTT password
  privacyfilter:          # Privacy filter prevents audio clip saving if human voice 
    enabled: true         # is detected durin audio capture
    confidence: 0.05      # threshold for human voice detection
  dogbarkfilter:
    enabled: true
    confidence: 0.1       # confidence threshold for dog bark detection
    remember: 5           # number of minutes to remember dog barks
  telemetry:
    enabled: false         # true to enable Prometheus compatible telemetry endpoint
    listen: "0.0.0.0:8090" # IP address and port to listen on
webserver:
  enabled: true           # true to enable web server
  port: 8080              # port for web server
  log:
    enabled: false        # true to enable log file
    path: webui.log       # path to log file
    rotation: daily       # daily, weekly or size
    maxsize: 1048576      # max size in bytes for size rotation
    rotationday: 0        # day of the week for weekly rotation, 0 = Sunday
security:
  host: ""                   # host and port for autoTLS and authentication
  autotls: false             # true to enable auto TLS, only host is whitelisted
  redirecttohttps: false     # true to redirect http to https
  allowsubnetbypass:
    enabled: false           # true to disable OAuth in subnet
    subnet: ""               # comma-separated list of CIDR ranges (e.g., "192.168.1.0/24,10.0.0.0/8")
  allowcloudflarebypass: 
    enabled: false           # true to disable bypass for Cloudflare Tunnel
    teamdomain: ""           # Cloudflare Tunnel team domain
    audience: ""             # Cloudflare Tunnel policy audience
  basicauth:
    enabled: false           # true to enable basic auth
    password: ""             # password hash for the settings interface
    clientid: ""             # client id
    clientsecret: ""         # if left empty, will be autogenerated
    redirecturi: ""          # redirect uri prefix
    authcodeexp: 10m           # authorization code expiration
    accesstokenexp: 1h        # access token expiration
  googleauth:
    enabled: false           # true to enable Google OAuth2
    clientid: ""             # client id
    clientsecret: ""         # client secret
    userid: ""               # user id
  githubauth:
    enabled: false           # true to enable GitHub OAuth2
    clientid: ""             # client id
    clientsecret: ""         # client secret
    userid: ""               # user id# Ouput settings
output:
  file:
    enabled: true         # true to enable file output for file and directory analysis
    path: output/         # path to output directory
    type: table           # ouput format, Raven table or csv
  # Only one database is supported at a time
  # if both are enabled, SQLite will be used.
  sqlite:
    enabled: true         # true to enable sqlite output
    path: /config/birdnet.db      # path to sqlite database
  mysql:
    enabled: false        # true to enable mysql output
    username: birdnet     # mysql database username
    password: secret      # mysql database user password
    database: birdnet     # mysql database name
    host: localhost       # mysql database host
    port: 3306            # mysql database port/etc/cont-init.d/32-nginx_ingress.sh: executing
Adapting for ingress
/etc/cont-init.d/33-mariadb.sh: executing
/etc/cont-init.d/33-mqtt.sh: executing
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>
<title>home.***.com| 524: A timeout occurred</title>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/main.css" />
</head>
<body>
<div id="cf-wrapper">
    <div id="cf-error-details" class="p-0">
        <header class="mx-auto pt-10 lg:pt-6 lg:px-8 w-240 lg:w-full mb-8">
            <h1 class="inline-block sm:block sm:mb-2 font-light text-60 lg:text-4xl text-black-dark leading-tight mr-2">
              <span class="inline-block">A timeout occurred</span>
              <span class="code-label">Error code 524</span>
            </h1>
            <div>
               Visit <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_524&utm_campaign=home.***.com" target="_blank" rel="noopener noreferrer">cloudflare.com</a> for more information.
            </div>
            <div class="mt-3">2024-12-28 06:13:20 UTC</div>
        </header>
        <div class="my-8 bg-gradient-gray">
            <div class="w-240 lg:w-full mx-auto">
                <div class="clearfix md:px-8">
<div id="cf-browser-status" class=" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center">
  <div class="relative mb-10 md:m-0">
    <span class="cf-icon-browser block md:hidden h-20 bg-center bg-no-repeat"></span>
    <span class="cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
  </div>
  <span class="md:block w-full truncate">You</span>
  <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">
    Browser
  </h3>
  <span class="leading-1.3 text-2xl text-green-success">Working</span>
</div>
<div id="cf-cloudflare-status" class=" relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center">
  <div class="relative mb-10 md:m-0">
    <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_524&utm_campaign=home.***.com" target="_blank" rel="noopener noreferrer">
    <span class="cf-icon-cloud block md:hidden h-20 bg-center bg-no-repeat"></span>
    <span class="cf-icon-ok w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
    </a>
  </div>
  <span class="md:block w-full truncate">Singapore</span>
  <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">
    <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_524&utm_campaign=home.***.com" target="_blank" rel="noopener noreferrer">
    Cloudflare
    </a>
  </h3>
  <span class="leading-1.3 text-2xl text-green-success">Working</span>
</div>
<div id="cf-host-status" class="cf-error-source relative w-1/3 md:w-full py-15 md:p-0 md:py-8 md:text-left md:border-solid md:border-0 md:border-b md:border-gray-400 overflow-hidden float-left md:float-none text-center">
  <div class="relative mb-10 md:m-0">
    <span class="cf-icon-server block md:hidden h-20 bg-center bg-no-repeat"></span>
    <span class="cf-icon-error w-12 h-12 absolute left-1/2 md:left-auto md:right-0 md:top-0 -ml-6 -bottom-4"></span>
  </div>
  <span class="md:block w-full truncate">home.simplemice.network</span>
  <h3 class="md:inline-block mt-3 md:mt-0 text-2xl text-gray-600 font-light leading-1.3">
    Host
  </h3>
  <span class="leading-1.3 text-2xl text-red-error">Error</span>
</div>
                </div>
            </div>
        </div>
        <div class="w-240 lg:w-full mx-auto mb-8 lg:px-8">
            <div class="clearfix">
                <div class="w-1/2 md:w-full float-left pr-6 md:pb-10 md:pr-0 leading-relaxed">
                    <h2 class="text-3xl font-normal leading-1.3 mb-4">What happened?</h2>
                    <p>The origin web server timed out responding to this request.</p>
                </div>
                <div class="w-1/2 md:w-full float-left leading-relaxed">
                    <h2 class="text-3xl font-normal leading-1.3 mb-4">What can I do?</h2>
                          <h3 class="text-15 font-semibold mb-2">If you're a visitor of this website:</h3>
      <p class="mb-6">Please try again in a few minutes.</p>
      <h3 class="text-15 font-semibold mb-2">If you're the owner of this website:</h3>
      <p><span>The connection to the origin web server was made, but the origin web server timed out before responding. The likely cause is an overloaded background task, database or application, stressing the resources on your web server. To resolve, please work with your hosting provider or web development team to free up resources for your database or overloaded application.</span> <a rel="noopener noreferrer" href="https://support.cloudflare.com/hc/en-us/articles/200171926-Error-524">Additional troubleshooting information here.</a></p>
                </div>
            </div>
        </div>
        <div class="cf-error-footer cf-wrapper w-240 lg:w-full py-10 sm:py-4 sm:px-8 mx-auto text-center sm:text-left border-solid border-0 border-t border-gray-300">
  <p class="text-13">
    <span class="cf-footer-item sm:block sm:mb-1">Cloudflare Ray ID: <strong class="font-semibold">8f8f64f51ca940f2</strong></span>
    <span class="cf-footer-separator sm:hidden">&bull;</span>
    <span id="cf-footer-item-ip" class="cf-footer-item hidden sm:block sm:mb-1">
      Your IP:
      <button type="button" id="cf-footer-ip-reveal" class="cf-footer-ip-reveal-btn">Click to reveal</button>
      <span class="hidden" id="cf-footer-ip">1.20.61.178</span>
      <span class="cf-footer-separator sm:hidden">&bull;</span>
    </span>
    <span class="cf-footer-item sm:block sm:mb-1"><span>Performance &amp; security by</span> <a rel="noopener noreferrer" href="https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_524&utm_campaign=home.***.com" id="brand_link" target="_blank">Cloudflare</a></span>
  </p>
  <script>(function(){function d(){var b=a.getElementById("cf-footer-item-ip"),c=a.getElementById("cf-footer-ip-reveal");b&&"classList"in b&&(b.classList.remove("hidden"),c.addEventListener("click",function(){c.classList.add("hidden");a.getElementById("cf-footer-ip").classList.remove("hidden")}))}var a=document;document.addEventListener&&a.addEventListener("DOMContentLoaded",d)})();</script>
</div><!-- /.error-footer -->
    </div>
</div>
</body>
</html>

@alexbelgium
Copy link
Owner

alexbelgium commented Dec 28, 2024

Dear @tphakala is there a specific requirement for cpu running birdnet-go? It seems to run in a SIGILL illegal instruction on some startups?

I'm asking as for example birdnet-pi tflite requires avx2, otherwise tensorflow itself needs to be installed. I'm wondering if there is such a specificity for birdnet-go. Thanks!

@alexbelgium
Copy link
Owner

alexbelgium commented Dec 28, 2024

Actually, I see avx2 is required. Can't a similar code be adapted to go to have tensorflow instead?

if lscpu | grep -q "Flags" && ! lscpu | grep -q "avx2"; then
bashio::log.warning "NON SUPPORTED CPU DETECTED"
bashio::log.warning "Your cpu doesn't support avx2, the analyzer service will likely won't work"
bashio::log.warning "Trying to install tensorflow instead of tflite_runtime instead"
$PYTHON_VIRTUAL_ENV /usr/bin/pip3 uninstall -y tflite_runtime
$PYTHON_VIRTUAL_ENV /usr/bin/pip3 install tensorflow
fi

alexbelgium added a commit that referenced this issue Dec 28, 2024
@tphakala
Copy link

BirdNET-Go itself doesn't require AVX2, but the TensorFlow Lite C API 2.17 I provide has been compiled with a minimum CPU requirement of Intel Haswell generation, which adds an AVX2 requirement. The older 2.14 version is compatible with older systems but does not support the XNNPACK delegate for AI inference acceleration.

https://github.com/tphakala/tflite_c/releases

@alexbelgium
Copy link
Owner

Thanks for the very fast answer ; then I'll embed an error system in the addon to prevent running on non-avx2 system

@tphakala
Copy link

I can make few tests to see if AVX2 support adds any real benefits, I don't want to exclude old hardware without significant gains for newer systems. I'll chime in here later.

@tphakala
Copy link

tphakala commented Dec 28, 2024

I updated tensorflow lite library to 2.17.1 and compiled this version without AVX2 requirement, ghcr.io/tphakala/birdnet-go:dev image is updated to include this new library.

https://github.com/tphakala/tflite_c/releases/tag/v2.17.1

@alexbelgium
Copy link
Owner

alexbelgium commented Dec 28, 2024

Thanks very much! I'm rebuilding the add-on with this version

alexbelgium added a commit that referenced this issue Dec 28, 2024
alexbelgium added a commit that referenced this issue Dec 28, 2024
Copy link
Contributor

github-actions bot commented Jan 5, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Element will be closed automatically label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Element will be closed automatically
Projects
None yet
Development

No branches or pull requests

3 participants