setup.sh: skip download when weights already present
This commit is contained in:
1 parent
2a4b1101e6
commit
aacec82c85
2 files changed
+5
No files matched your search
@@ -34,6 +34,10 @@ fi
|
||||
echo "== rest of requirements (a few minutes)"
|
||||
.venv/bin/pip install -q -r requirements.txt
|
||||
|
||||
if [[ $SKIP_WEIGHTS == 0 && -f weights/icon_detect_v3/model.pt && -f weights/icon_caption_florence/model.safetensors ]]; then
|
||||
echo "== weights already present - skipping download"
|
||||
SKIP_WEIGHTS=1
|
||||
fi
|
||||
if [[ $SKIP_WEIGHTS == 0 ]]; then
|
||||
echo "== weights (~1.8 GB from huggingface.co/microsoft/OmniParser-v2.0)"
|
||||
mkdir -p weights/icon_caption_florence weights/icon_detect_v3
|
||||
|
||||
Reference in new issue
Block a user