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