-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update feature extractor references #312
base: main
Are you sure you want to change the base?
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
"\n", | ||
"if \"shortest_edge\" in image_processor.size:\n", | ||
" crop_size = image_processor.size[\"shortest_edge\"]\n", | ||
" resize_size = (crop_size, crop_size)\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
" resize_size = (crop_size, crop_size)\n", | |
" resize_to = (crop_size, crop_size)\n", |
@@ -3075,7 +3089,7 @@ | |||
"source": [ | |||
"pipe = pipeline(\"image-classification\", \n", | |||
" model=model,\n", | |||
" feature_extractor=feature_extractor)" | |||
" feature_extractor=image_processoror)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
" feature_extractor=image_processoror)" | |
" feature_extractor=image_processor)" |
"ViTImageProcessor {\n", | ||
" \"do_normalize\": true,\n", | ||
" \"do_resize\": true,\n", | ||
" \"image_processor_type\": \"ViTImageProcessor\",\n", | ||
" \"image_mean\": [\n", | ||
" 0.485,\n", | ||
" 0.456,\n", | ||
" 0.406\n", | ||
" ],\n", | ||
" \"image_std\": [\n", | ||
" 0.229,\n", | ||
" 0.224,\n", | ||
" 0.225\n", | ||
" ],\n", | ||
" \"resample\": 3,\n", | ||
" \"rescale_factor\": 0.00392156862745098,\n", | ||
" \"size\": {\n", | ||
" \"height\": 224,\n", | ||
" \"width\": 224,\n", | ||
" },\n", | ||
"}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"ViTImageProcessor {\n", | |
" \"do_normalize\": true,\n", | |
" \"do_resize\": true,\n", | |
" \"image_processor_type\": \"ViTImageProcessor\",\n", | |
" \"image_mean\": [\n", | |
" 0.485,\n", | |
" 0.456,\n", | |
" 0.406\n", | |
" ],\n", | |
" \"image_std\": [\n", | |
" 0.229,\n", | |
" 0.224,\n", | |
" 0.225\n", | |
" ],\n", | |
" \"resample\": 3,\n", | |
" \"rescale_factor\": 0.00392156862745098,\n", | |
" \"size\": {\n", | |
" \"height\": 224,\n", | |
" \"width\": 224,\n", | |
" },\n", | |
"}" | |
"ViTImageProcessor {\n", | |
" \"do_normalize\": true,\n", | |
" \"do_resize\": true,\n", | |
" \"image_processor_type\": \"ViTImageProcessor\",\n", | |
" \"image_mean\": [\n", | |
" 0.485,\n", | |
" 0.456,\n", | |
" 0.406\n", | |
" ],\n", | |
" \"image_std\": [\n", | |
" 0.229,\n", | |
" 0.224,\n", | |
" 0.225\n", | |
" ],\n", | |
" \"resample\": 3,\n", | |
" \"rescale_factor\": 0.00392156862745098,\n", | |
" \"size\": {\n", | |
" \"height\": 224,\n", | |
" \"width\": 224,\n", | |
" },\n", | |
"}" |
What does this PR do?
Fixes # (issue)
Who can review?
Feel free to tag members/contributors who may be interested in your PR.