Skip to content

Commit

Permalink
Fix modular model converter unable to generate Processor classes (#33737
Browse files Browse the repository at this point in the history
)

fix: fix wrong file type for processor in `modular_model_converter.py`
  • Loading branch information
tonywu71 authored Sep 26, 2024
1 parent e32521b commit e1b1508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/modular_model_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def replace_call_to_super(class_finder: ClassFinder, updated_node: cst.ClassDef,
TYPE_TO_FILE_TYPE = {
"Config": "configuration",
"Tokenizer": "tokenization",
"Processor": "processor",
"Processor": "processing",
"ImageProcessor": "image_processing",
"FeatureExtractor": "feature_extractor",
}
Expand Down

0 comments on commit e1b1508

Please sign in to comment.