F.A.P.S (Funscript - Audio Processing System) by CaptainHarlock

Yep, everything’s installed correctly.
In the previous version, there was an issue if it detected only one song, but I fixed that in the latest version… Anyway, just to be sure that’s not the problem, try this:

  • Press Shift+Click on “AI Analysis,” which will run the analysis again
  • Tell it there’s more than one song, even if there’s only one
  • Wait for the analysis to finish to see if it found sections this time.

Finding the sections is what matters.
The BPMs it shows you are per song, not per section; it’s a general average of the song.

I tried that just now and it produced the same result. I should have mentioned, any song I run through it, regardless of the tempo, always comes back saying it’s 120bpm. If it helps, here’s the terminal output when I run the AI analysis.

The error appears in the log: “[ERROR] [Sections] Section-based detection failed: CUDA error: no kernel image is available for execution on the device…”

What GPU do you have?

I’m using a GTX 1070.

OK, this is a known issue with the 10xx series; the problem is caused by using Flash Attention.
Here’s what you need to do:

Step 1: Open a terminal in the application folder (CMD)
Step 2: Uninstall flash-attn

python\python.exe -m pip uninstall flash-attn -y

I’m still getting the same error message after uninstalling flash-attn.

That’s strange…
Can you open a CMD window in the root folder where the application is located and send me the output of these commands:

python\python.exe -c "import torch; print(torch.cuda.get_arch_list())"
python\python.exe -m pip list | findstr flash

Thank you!

No, thank you! Here’s the output from the first line:

[‘sm_50’, ‘sm_60’, ‘sm_61’, ‘sm_70’, ‘sm_75’, ‘sm_80’, ‘sm_86’, ‘sm_90’, ‘sm_100’, ‘sm_120’]

The second line didn’t return anything.

Okay, the architecture is correct.
It’s important to know about the second message you mentioned that doesn’t return anything. When you say it doesn’t return anything, do you mean:

  • It tells you that flash attn isn’t installed
  • It gives you an error

What does it show you? Because some kind of message should appear.

Here’s what the ouput looks like. When I hit enter, it just sites there a minute, skips a line and prompt for another command.
capture

Okay, it looks like another dependency might be using a more modern architecture that your GPU doesn’t support.
You’ll need to open a Command Prompt again and run these commands:

python\python.exe -m pip list | findstr -i "xformers bitsandbytes triton"

Let me know the result.
Then try uninstalling xformers and testing the app:

python\python.exe -m pip uninstall xformers -y

If it keeps failing, you could try uninstalling bitsandbytes, although it’s not very likely that it’s causing the problem:

python\python.exe -m pip uninstall bitsandbytes -y

Let me know if any of these solutions helped to solve your problem.
Don’t worry about uninstalling these things. Two of them are accelerators, so you might lose a bit of speed, but the app should still work fine. The last one is used for quantizing LLM models (in JOI moods, which is something you probably won’t even use).

The result of the initlal command is the following:

bitsandbytes           0.49.2

When I went to uninstall xformers, I recieved the following:

WARNING: Skipping xformers as it is not installed.

bitsandbytes seems to have uninstalled sucessfully.

After doing that I ran it again but am still having the same issue.

Damn it! Well, at least we’ve ruled out a few things.
Sorry for the trouble, but it would be great to find the error because it would help to prepare the application for other users who have a Nvidia from the same series.
If it’s not too much trouble, I’d need you to do the following:
Open a CMD again and run these commands:

set CUDA_LAUNCH_BLOCKING=1
python\python.exe -c "import torch; t = torch.zeros(1).cuda(); print('CUDA OK')"

If that returns “CUDA OK,” then the basic Torch functionality is working properly, and the problem lies in a specific package that is loaded during section analysis.

Next, to generate a log with more specific error details, you’ll need to run the application as follows:
Open a CMD window and:

set CUDA_LAUNCH_BLOCKING=1
python\python.exe app.py

Then attach the most recent .log file you have in the \logs folder.
Thanks!

Sounds like troubleshooting is mutually beneficial! It returns CUDA OK when I run those commands. When I run the second set, I get the following:

Traceback (most recent call last):
  File "F:\Programs\FAPS_v0.8.1\app.py", line 64, in <module>
    from core import (
ModuleNotFoundError: No module named 'core'

It didn’t generate a new log file after running that command.

Sorry, use this:

set CUDA_LAUNCH_BLOCKING=1
python\python.exe main.py

Use the app to trigger the error, and then send me the most recent log.
Thanks!

+rep , ngl the best app that exist here, its quite complicated to setup but you just need to install python 3.12,

quite layer definitions are not described what they do like Primary, sec, texture but still kinda fun for making b2beat funscripts

1 Like

Gotcha, here’s the log file (had to convert it to a .txt, but figured that shouldn’t hurt anything).
funscript_20260314_155859.txt (12.8 KB)

Thanks!
It seems the problem lies with all-in-one, which is precisely what’s responsible for finding the sections, even though Demucs works fine for you.
The problem is likely “flash-attn,” which, even though you uninstalled it, PyTorch 2.7 has its own flash attention backend built in.
To force it not to use it, you should replace your “main.py” file with this one:

Let me know if this works for you.
If it does, you can try reinstalling the things that were uninstalled for testing purposes (except for Flash Attention, of course):

python\python.exe -m pip install bitsandbytes==0.49.2
python\python.exe -m pip install xformers

Thanks!
Yep, setups that use the latest AI models are always a bit tricky (dealing with PyTorch, CUDA, dependencies, etc.).
You can find documentation in \docs, though it’s not up to date because, honestly, until it’s fully polished and all the changes are done, it’s not worth maintaining documentation that keeps changing, but I’m sure it’ll help you with some things.
Since you mention “PRIMARY,” I assume you’re using the “Fap Mixer” mood. Just wanted to let you know that I’ve actually been tweaking it a bit today. For example, something you probably don’t know because it’s not very intuitive is that if you open “Configure AI,” you can choose which stem to use for each “block”.
Now, with the changes I’ve made, there’s a drop-down menu right next to each block. Also, for “Fap Mixer,” I’ve created another automatic method for assigning stems to blocks that should work better.

Oh, and by the way, in the new version v0.8.1, you no longer need to install Python 3.12, it comes with an embedded version of Python, although you still need to run “install.bat”