-
|
Hello, I'm running my stack as containers (Music Assistant container runs alongside Home Assistant container, no HaOS). Smart Fades now shows an error because of the lack of AVX2 support. I use Plex on the same machine, and its music analysis for a large music library runs flawlessly thanks to Intel QuickSync hardware support. Is there any way for MA to use that? Would there be a point? Or am I misunderstanding something completely? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Multiple things at play here. First, what CPU do you have? Second, you said "Containers" so I assume docker, which wouldn't mask flags, but if virtualization is any part of your stack please make sure your CPU is being passed through correctly so flags aren't being masked, if you have AVX2 you want to use it. Finally, "Quicksync" (really other GPU accelerated processes- QS is a killer intel feature but isn't helping your audio analysis on plex or here): Lets break it down by our providers: Beat This (Spect2Frames, "small0" checkpoint) — a compact spectrogram→frame CNN/transformer for beat & downbeat tracking, then dynamically quantized to int8 at provider.py:96-98. Sonic Analysis (init.py:1) is Microsoft CLAP zero-shot + librosa scalars: CLAP's HTSAT audio encoder runs over fixed 7-second windows at 44.1 kHz (init.py:57-67) — only 1, 3, or 8 windows per track depending on the quality setting. So, in total, we have some optimization to do (I think I saw plex was on V9 of their audio analysis) but we're taking a different approach in a lot of ways. Plex runs (last I knew) a completely custom tensorflow model on tflite (entirely CPU based and not supporting ARM) for their music analysis, we are working with a best of breed open source setup here where we're bringing in the best parts and pieces we can (and trying not to re-invent the wheel). From Plex's Sonic Analysis Page: I hope Analysis can work on your machine, it's really nifty, if you let me know the CPU and Virtualization setup I'll let you know what to expect. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the detailed explanations. I feel both smarter for what I learned and dumber for what went over my head. The machine I run most on my stuff on is a NAS, with a Celeron J3455, which is not optimal, obviously, given this and that and its age. And though I can hack it a bit, I'm stuck to the vendor's Docker version and setup. Replacing it has its pros and cons, and I'm adding this to the pile, but for the time being, it's still doing most of what I need it for. If I got it right, AVX2 support should show up in the flags displayed by lscpu if present. That's not the case, nor it is for any of the other machines I run parts of my stack on, so I guess I'll have to live without smart fades, which is something I've done most of my life. I'm trained. I'll take that into account if we ever see the end of the rampocalypse and I decide to buy a new board. Once again, thank you. |
Beta Was this translation helpful? Give feedback.
Multiple things at play here.
First, what CPU do you have?
Second, you said "Containers" so I assume docker, which wouldn't mask flags, but if virtualization is any part of your stack please make sure your CPU is being passed through correctly so flags aren't being masked, if you have AVX2 you want to use it.
Finally, "Quicksync" (really other GPU accelerated processes- QS is a killer intel feature but isn't helping your audio analysis on plex or here):
Lets break it down by our providers:
Smart Fades (provider.py:87-111) is a pipeline of small models, not one nural-net we could use GPU acceleration for:
Beat This (Spect2Frames, "small0" checkpoint) — a compact spectrogram→frame CNN/trans…