Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
d3d87b45
Unverified
Commit
d3d87b45
authored
May 16, 2022
by
Joao Gante
Committed by
GitHub
May 16, 2022
Browse files
TF - Fix convnext classification example (#17261)
parent
e86faecf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/convnext/modeling_tf_convnext.py
src/transformers/models/convnext/modeling_tf_convnext.py
+1
-1
No files found.
src/transformers/models/convnext/modeling_tf_convnext.py
View file @
d3d87b45
...
...
@@ -537,7 +537,7 @@ class TFConvNextForImageClassification(TFConvNextPreTrainedModel, TFSequenceClas
>>> image = Image.open(requests.get(url, stream=True).raw)
>>> feature_extractor = ConvNextFeatureExtractor.from_pretrained("facebook/convnext-tiny-224")
>>> model = TF
ViT
ForImageClassification.from_pretrained("facebook/convnext-tiny-224")
>>> model = TF
ConvNext
ForImageClassification.from_pretrained("facebook/convnext-tiny-224")
>>> inputs = feature_extractor(images=image, return_tensors="tf")
>>> outputs = model(**inputs)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment