withoutbg-python
withoutbg-python copied to clipboard
Docker setup fails at runtime due to missing required model checkpoints
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:
-
Model should be automatically downloaded (e.g., from Hugging Face) at runtime
-
Model should be downloaded during Docker build
-
Clear documentation should explain:
- where to download the model
- where to place it (
models/checkpoints/)
Suggested fixes
- Add automatic download using
huggingface_hubif 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