Spaces:
Runtime error
Runtime error
fix
Browse filesFiles changed (2)
- Dockerfile+2-2
- app.py+4-4
123429 unmodified lines343536373839# Torch 1.10 (cu111) + Detectron2 0.6 on CUDA 11.1, lean for HF SpacesFROM nvidia/cuda:11.1.1-cudnn8-runtime-ubuntu20.04ENV DEBIAN_FRONTEND=noninteractive \29 unmodified linesCOPY app.py /app/app.py# Copy pre-uploaded model(s)COPY models /modelsCMD ["python3", "app.py"]123429 unmodified lines343536373839# Torch 1.10 (cu111) + Detectron2 0.6 on CUDA 11.1FROM nvidia/cuda:11.1.1-cudnn8-runtime-ubuntu20.04ENV DEBIAN_FRONTEND=noninteractive \29 unmodified linesCOPY app.py /app/app.py# Copy pre-uploaded model(s)COPY models /weightsCMD ["python3", "app.py"]
46 unmodified lines4748495051525354555646 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",}DEFAULT_ENV = "Forest"DEVICE = "cuda" if torch.cuda.is_available() else "cpu"46 unmodified lines4748495051525354555646 unmodified lines# --------- Config ---------WEIGHTS = {# 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