Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/cluster-faces-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ jobs:
run: |
rm -rf apps/recognize/models

- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
- uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
id: photos-cache
with:
path: data/admin/files/
Expand All @@ -154,7 +154,7 @@ jobs:
unzip IMDb-Face.zip
rm IMDb-Face.zip

- uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
- uses: actions/cache/save@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
with:
path: data/admin/files/
key: https://cloud.nextcloud.com/public.php/dav/files/wfDk23DBsXYrd4S/IMDb-Face.zip
Expand All @@ -166,7 +166,7 @@ jobs:
# only use one core. GH actions has 2
./occ config:app:set --value 1 recognize tensorflow.cores

- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
- uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
id: db-cache
with:
path: data/nextcloud.db
Expand All @@ -180,7 +180,7 @@ jobs:
./occ files:scan admin
./occ recognize:classify

- uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
- uses: actions/cache/save@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
with:
path: data/nextcloud.db
key: ${{ steps.db-cache.outputs.cache-primary-key }}
Expand All @@ -197,7 +197,7 @@ jobs:
run: |
sqlite3 data/nextcloud.db "select x, y, path from oc_recognize_face_detections d LEFT JOIN oc_filecache c ON c.fileid = d.file_id where user_id = 'admin' ORDER BY path;" > out.txt

- uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
- uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
id: clustering-cache
with:
path: out.json
Expand Down Expand Up @@ -254,7 +254,7 @@ jobs:
cat out.xml | xq '.["d:multistatus"]["d:response"] | map(select(.["d:href"] | test("faces/.+?/.+?"))) | map({"href": .["d:href"], "realpath": .["d:propstat"][0]["d:prop"]["nc:realpath"], "face-detections": .["d:propstat"][0]["d:prop"]["nc:face-detections"] | fromjson | map({userId, x, y, height, width, clusterId}) })' > out.json
cat out.json

- uses: actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
- uses: actions/cache/save@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
with:
path: out.json
key: ${{ steps.clustering-cache.outputs.cache-primary-key }}
Expand Down
Loading