withoutbg-python icon indicating copy to clipboard operation
withoutbg-python copied to clipboard

Docker setup fails at runtime due to missing required model checkpoints

Open Harsh-2005d opened this issue 8 months ago • 0 comments

Description

While the Docker image now builds successfully (after ensuring models/checkpoints/ exists), the backend fails at startup with:

ModelNotFoundError:
Depth model not found at path:
/app/checkpoints/depth_anything_v2_vits_slim.onnx

Root cause

  • The application expects a model file:

    depth_anything_v2_vits_slim.onnx
    
  • This file is not included in the repository

  • The Docker setup does not download it during build or runtime

  • No documentation clearly explains how to obtain or place this file


Result

  • Backend container starts
  • Immediately crashes during startup
  • Application is unusable out-of-the-box

Expected behavior

One of the following:

  1. Model should be automatically downloaded (e.g., from Hugging Face) at runtime

  2. Model should be downloaded during Docker build

  3. Clear documentation should explain:

    • where to download the model
    • where to place it (models/checkpoints/)

Suggested fixes

  • Add automatic download using huggingface_hub if file is missing
  • Or update README with explicit instructions

Environment

  • OS: Fedora Linux

  • Docker Compose used

  • Command:

    docker compose -f apps/web/docker-compose.yml up
    

Harsh-2005d avatar Mar 17 '26 20:03 Harsh-2005d