• amyeroberts's avatar
    Add Image Processors (#19796) · a6b77598
    amyeroberts authored
    
    
    * Add CLIP image processor
    
    * Crop size as dict too
    
    * Update warning
    
    * Actually use logger this time
    
    * Normalize doesn't change dtype of input
    
    * Add perceiver image processor
    
    * Tidy up
    
    * Add DPT image processor
    
    * Add Vilt image processor
    
    * Tidy up
    
    * Add poolformer image processor
    
    * Tidy up
    
    * Add LayoutLM v2 and v3 imsge processors
    
    * Tidy up
    
    * Add Flava image processor
    
    * Tidy up
    
    * Add deit image processor
    
    * Tidy up
    
    * Add ConvNext image processor
    
    * Tidy up
    
    * Add levit image processor
    
    * Add segformer image processor
    
    * Add in post processing
    
    * Fix up
    
    * Add ImageGPT image processor
    
    * Fixup
    
    * Add mobilevit image processor
    
    * Tidy up
    
    * Add postprocessing
    
    * Fixup
    
    * Add VideoMAE image processor
    
    * Tidy up
    
    * Add ImageGPT image processor
    
    * Fixup
    
    * Add ViT image processor
    
    * Tidy up
    
    * Add beit image processor
    
    * Add mobilevit image processor
    
    * Tidy up
    
    * Add postprocessing
    
    * Fixup
    
    * Fix up
    
    * Fix flava and remove tree module
    
    * Fix image classification pipeline failing tests
    
    * Update feature extractor in trainer scripts
    
    * Update pad_if_smaller to accept tuple and int size
    
    * Update for image segmentation pipeline
    
    * Update src/transformers/models/perceiver/image_processing_perceiver.py
    Co-authored-by: default avatarAlara Dirik <8944735+alaradirik@users.noreply.github.com>
    
    * Update src/transformers/image_processing_utils.py
    Co-authored-by: default avatarNielsRogge <48327001+NielsRogge@users.noreply.github.com>
    
    * Update src/transformers/models/beit/image_processing_beit.py
    Co-authored-by: default avatarNielsRogge <48327001+NielsRogge@users.noreply.github.com>
    
    * PR comments - docstrings; remove accidentally added resize; var names
    
    * Update docstrings
    
    * Add exception if size is not in the right format
    
    * Fix exception check
    
    * Fix up
    
    * Use shortest_edge in tuple in script
    Co-authored-by: default avatarAlara Dirik <8944735+alaradirik@users.noreply.github.com>
    Co-authored-by: default avatarNielsRogge <48327001+NielsRogge@users.noreply.github.com>
    a6b77598
run_mae.py 15.1 KB