Spaces:
Runtime error
Runtime error
fix
Browse filesFiles changed (2)
- Dockerfile+2-2
- app.py+4-4
1123429 unmodified lines34353637373839# Torch 1.10 (cu111) + Detectron2 0.6 on CUDA 11.1, lean for HF Spaces# Torch 1.10 (cu111) + Detectron2 0.6 on CUDA 11.1FROM nvidia/cuda:11.1.1-cudnn8-runtime-ubuntu20.04
ENV DEBIAN_FRONTEND=noninteractive \29 unmodified linesCOPY app.py /app/app.py
# Copy pre-uploaded model(s)COPY models /modelsCOPY models /weights
CMD ["python3", "app.py"]46 unmodified lines474849505152535051525354555646 unmodified lines
# --------- Config ---------WEIGHTS = { # NOTE: Dockerfile downloads this to /models "Forest": "/models/230103_randresize_full.pth", # "Urban": "/models/urban_trees_Cambridge_20230630.pth", # "Flexi": "/models/250312_flexi.pth", # NOTE: Dockerfile downloads this to /weights "Forest": "/weights/230103_randresize_full.pth", # "Urban": "/weights/urban_trees_Cambridge_20230630.pth", # "Flexi": "/weights/250312_flexi.pth",}DEFAULT_ENV = "Forest"DEVICE = "cuda" if torch.cuda.is_available() else "cpu"Dockerfile+2-2
app.py+4-4