Spaces:
Runtime error
Runtime error
Commit
·
1b67318
1
Parent(s):
59c096a
switch classifier google/vit-base-patch16-224
Browse files
app.py
CHANGED
@@ -23,9 +23,9 @@ feature_extractor = ViTFeatureExtractor()
|
|
23 |
#feature_extractor = ViTFeatureExtractor.from_pretrained("google/vit-base-patch16-224")
|
24 |
|
25 |
#the following gets called by classify_image()
|
26 |
-
feature_extractor = PerceiverFeatureExtractor.from_pretrained("
|
27 |
-
model = PerceiverForImageClassificationConvProcessing.from_pretrained("
|
28 |
-
|
29 |
image_pipe = ImageClassificationPipeline(model=model, feature_extractor=feature_extractor)
|
30 |
|
31 |
|
|
|
23 |
#feature_extractor = ViTFeatureExtractor.from_pretrained("google/vit-base-patch16-224")
|
24 |
|
25 |
#the following gets called by classify_image()
|
26 |
+
feature_extractor = PerceiverFeatureExtractor.from_pretrained("google/vit-base-patch16-224")
|
27 |
+
model = PerceiverForImageClassificationConvProcessing.from_pretrained("google/vit-base-patch16-224")
|
28 |
+
#google/vit-base-patch16-224, deepmind/vision-perceiver-con
|
29 |
image_pipe = ImageClassificationPipeline(model=model, feature_extractor=feature_extractor)
|
30 |
|
31 |
|