Spaces:
Runtime error
Runtime error
Fix another bug
Browse files
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 |
|