Download Model for each video run

Do you know why the model needs to be re-downloaded after almost every export?
image

Suggestion - I would rather have every single model downloaded to my hard-drive then have to re-download every time I try to export. Sometimes downloading a model can take upwards of 10-50 minutes.

Just a hunch, but I think it would say that even if you had them all downloaded beforehand, and is not downloading anything. My guess is it flashes that as part of loading the model.
I’ve never had it take longer than 10 seconds though. The biggest model is Apollo at 240MB but most are around 50MB. If that sounds like something that would take your internet 10 to 50 minutes, maybe it really is redownloading them.

Great point!
I know during the installation process that there are over 80 models that are downloaded. I just found it strange that some of the models needed to be re-downloaded.

How about for v3?

They are the same.
The new updated script only add a few new models " iris-2, nyx-1, nyx-2, nap-1, nap-2"

If you view the v4 bat file using notepad, you can see that it still said @REM For version 3.5.0

v3
@REM For version 3.3.1
@echo off
setlocal enabledelayedexpansion
set device=-2
for %%i in ("480x360", "640x480", "720x480", "768x576", "1280x720", "1920x1080", "3840x2160") do (
    for %%m in (aaa-9, ahq-12, alq-13, alqs-2, amq-13, amqs-2, ddv-3, dtd-4, dtds-2, dtv-4, dtvs-2, gcg-5, ghq-5, prob-3, thd-3, thf-4, thm-2, prap-3, iris-1) do (
        for %%s in (1, 2, 4) do (
            ffmpeg.exe -nostats -hide_banner -f lavfi -i color=c=red@0.8:duration=0.01:rate=100:size=%%i -vf tvai_up=model=%%m:scale=%%s:device=%device%:vram=1:instances=0 -f null -
        )
    )
    for %%m in (ifi-1, chf-3, chr-2, apo-8, apf-1) do (
        ffmpeg.exe -nostats -hide_banner -f lavfi -i color=c=red@0.8:duration=0.01:rate=100:size=%%i -vf tvai_fi=model=%%m:device=%device%:vram=1:instances=0 -f null -
    )
)
v4
@REM For version 3.5.0
@echo off
setlocal enabledelayedexpansion
set device=-2
for %%i in ("480x360", "640x480", "720x480", "768x576", "1280x720", "1920x1080", "3840x2160") do (
    for %%m in (aaa-9, ahq-12, alq-13, alqs-2, amq-13, amqs-2, ddv-3, dtd-4, dtds-2, dtv-4, dtvs-2, gcg-5, ghq-5, prob-3, thd-3, thf-4, thm-2, prap-3, iris-1, iris-2, nyx-1, nyx-2, nap-1, nap-2) do (
        for %%s in (1, 2, 4) do (
            ffmpeg.exe -nostats -hide_banner -f lavfi -i color=c=red@0.8:duration=0.01:rate=100:size=%%i -vf tvai_up=model=%%m:scale=%%s:device=%device%:vram=1:instances=0 -f null -
        )
    )
    for %%m in (ifi-1, chf-3, chr-2, apo-8, apf-1) do (
        ffmpeg.exe -nostats -hide_banner -f lavfi -i color=c=red@0.8:duration=0.01:rate=100:size=%%i -vf tvai_fi=model=%%m:device=%device%:vram=1:instances=0 -f null -
    )
)

Seems like there ought to be an intermediate option, like downloading models the first time they’re used in a session and keeping them as tempfiles for the rest of that session. That way it wouldn’t be necessary to run the script and downoad all the models again every time one of them get revised or a new model is added.

That’s nice, but how do you do that exactly?