MarkusStoll commited on
Commit
1db7b55
·
1 Parent(s): b7b88e8

pre calc only, sample

Browse files
Files changed (1) hide show
  1. run.py +2 -2
run.py CHANGED
@@ -12,10 +12,10 @@ if __name__ == "__main__":
12
 
13
 
14
  while True:
15
- df = df.drop(columns=["embedding_ft", "nn_image"])
 
16
  dtypes = {
17
  "image": spotlight.Image,
18
- "embedding_foundation": spotlight.Embedding,
19
  "embedding_foundation_precalc": spotlight.Embedding,
20
  }
21
  view = spotlight.show(
 
12
 
13
 
14
  while True:
15
+ df = df.drop(columns=["embedding_ft", "nn_image", "embedding_foundation"])
16
+ df.sample(10000, random_state=42).reset_index(drop=True)
17
  dtypes = {
18
  "image": spotlight.Image,
 
19
  "embedding_foundation_precalc": spotlight.Embedding,
20
  }
21
  view = spotlight.show(