Daniel Varga commited on
Commit
9de5f50
·
1 Parent(s): 2c91769

switching to downscaled PhotoLibrary from downscaled 02_LOCATION_PHOTOS

Browse files
Files changed (3) hide show
  1. app.ini +2 -2
  2. app.py +1 -1
  3. readme.sh +2 -2
app.ini CHANGED
@@ -1,4 +1,4 @@
1
  [DEFAULT]
2
- pkl = 02_LOCATION_PHOTOS.deduped.f16.pkl
3
- # pkl = PhotoLibrary.854G.deduped.f16.pkl
4
  url = https://static.renyi.hu/ai-shared/daniel/sameenergy/
 
1
  [DEFAULT]
2
+ # pkl = 02_LOCATION_PHOTOS.deduped.f16.pkl
3
+ pkl = PhotoLibrary.854G.deduped.f16.pkl
4
  url = https://static.renyi.hu/ai-shared/daniel/sameenergy/
app.py CHANGED
@@ -70,7 +70,7 @@ def build_ann_index(embeddings):
70
 
71
  filenames = data["filenames"]
72
  def thumb_patch(filename):
73
- prefix = "02_LOCATION_PHOTOS"
74
  assert filename.startswith(prefix)
75
  return prefix + ".thumbs" + filename[len(prefix): ]
76
 
 
70
 
71
  filenames = data["filenames"]
72
  def thumb_patch(filename):
73
+ prefix = "PhotoLibrary"
74
  assert filename.startswith(prefix)
75
  return prefix + ".thumbs" + filename[len(prefix): ]
76
 
readme.sh CHANGED
@@ -115,6 +115,6 @@ find $root -type f | grep -i "jpeg\|jpg$" | while read f ; do echo "$f" ; conver
115
  nohup bash downscale.sh > 02_LOCATION_PHOTOS.downscale.cout 2> 02_LOCATION_PHOTOS.downscale.cerr &
116
  # -> took a night or so.
117
  nohup bash downscale.sh > PhotoLibrary.downscale.cout 2> PhotoLibrary.downscale.cerr &
118
- # -> will take 4 days or so
119
 
120
- # added to app.py to patch the filenames in the pickle to change 02_LOCATION_PHOTOS to 02_LOCATION_PHOTOS.thumbs
 
115
  nohup bash downscale.sh > 02_LOCATION_PHOTOS.downscale.cout 2> 02_LOCATION_PHOTOS.downscale.cerr &
116
  # -> took a night or so.
117
  nohup bash downscale.sh > PhotoLibrary.downscale.cout 2> PhotoLibrary.downscale.cerr &
118
+ # -> took 2 days or so.
119
 
120
+ # added to app.py to patch the filenames in the pickle to change PhotoLibrary to PhotoLibrary.thumbs