Skip to content
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

Prune Swin Transfomer:Could not find image processor class in the image processor config or the model config. #362

Open
IASAnthony opened this issue Mar 29, 2024 · 0 comments

Comments

@IASAnthony
Copy link

@JonnyKong Hello!When I run prune_hf_swin.py, I met a problem:"Could not find image processor class in the image processor config or the model config. Loading based on pattern matching with the model's feature extractor configuration. Please open a PR/issue to update preprocessor_config.json to use image_processor_type instead of feature_extractor_type. This warning will be removed in v4.40.
"
And in the next prune stage I met:"UserWarning: Unwrapped parameters detected: ['swin.encoder.layers.0.blocks.1.atten
tion.self.relative_position_bias_table', 'swin.encoder.layers.2.blocks.0.attention.self.relative_position_bias_table', 'swin.encoder.layers.2.blocks.2.attention.self.rel........"
please help me,thx a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant