nielsr HF staff commited on
Commit
ff59753
1 Parent(s): 422ecfe

Fix another bug

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -27,6 +27,7 @@ def process_image(image):
27
  # create primers
28
  samples = encoding.pixel_values.numpy()
29
  n_px = feature_extractor.size
 
30
  n_px_crop = 16
31
  primers = samples.reshape(-1,n_px*n_px)[:,:n_px_crop*n_px] # crop top n_px_crop rows. These will be the conditioning tokens
32
 
 
27
  # create primers
28
  samples = encoding.pixel_values.numpy()
29
  n_px = feature_extractor.size
30
+ clusters = feature_extractor.clusters
31
  n_px_crop = 16
32
  primers = samples.reshape(-1,n_px*n_px)[:,:n_px_crop*n_px] # crop top n_px_crop rows. These will be the conditioning tokens
33