""" Runs once during `docker build`. Downloads and caches the htdemucs model weights into the image so the running container never needs to hit the network for them — see the comment in the Dockerfile for why this matters. """ from demucs.pretrained import get_model if __name__ == "__main__": print("Pre-downloading htdemucs weights into the image...") get_model("htdemucs") print("Done. Model weights are now baked into this image.")