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

Fix another bug

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -26,6 +26,7 @@ def process_image(image):
26
 
27
  # create primers
28
  samples = encoding.pixel_values.numpy()
 
29
  n_px_crop = 16
30
  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
31
 
 
26
 
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