• StevenBucaille's avatar
    Implementation of SuperPoint and AutoModelForKeypointDetection (#28966) · 56baa033
    StevenBucaille authored
    
    
    * Added SuperPoint docs
    
    * Added tests
    
    * Removed commented part
    
    * Commit to create and fix add_superpoint branch with a new branch
    
    * Fixed dummy_pt_objects
    
    * Committed missing files
    
    * Fixed README.md
    
    * Apply suggestions from code review
    
    Fixed small changes
    
    Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
    
    * Moved ImagePointDescriptionOutput from modeling_outputs.py to modeling_superpoint.py
    
    * Removed AutoModelForKeypointDetection and related stuff
    
    * Fixed inconsistencies in image_processing_superpoint.py
    
    * Moved infer_on_model logic simply in test_inference
    
    * Fixed bugs, added labels to forward method with checks whether it is properly a None value, also added tests about this logic in test_modeling_superpoint.py
    
    * Added tests to SuperPointImageProcessor to ensure that images are properly converted to grayscale
    
    * Removed remaining mentions of MODEL_FOR_KEYPOINT_DETECTION_MAPPING
    
    * Apply suggestions from code review
    
    Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
    
    * Fixed from (w, h) to (h, w) as input for tests
    
    * Removed unnecessary condition
    
    * Moved last_hidden_state to be the first returned
    
    * Moved last_hidden_state to be the first returned (bis)
    
    * Moved last_hidden_state to be the first returned (ter)
    
    * Switched image_width and image_height in tests to match recent changes
    
    * Added config as first SuperPointConvBlock init argument
    
    * Reordered README's after merge
    
    * Added missing first config argument to SuperPointConvBlock instantiations
    
    * Removed formatting error
    
    * Added SuperPoint to README's de, pt-br, ru, te and vi
    
    * Checked out README_fr.md
    
    * Fixed README_fr.md
    
    * Test fix README_fr.md
    
    * Test fix README_fr.md
    
    * Last make fix-copies !
    
    * Updated checkpoint path
    
    * Removed unused SuperPoint doc
    
    * Added missing image
    
    * Update src/transformers/models/superpoint/modeling_superpoint.py
    
    Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
    
    * Removed unnecessary import
    
    * Update src/transformers/models/superpoint/modeling_superpoint.py
    
    Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
    
    * Added SuperPoint to _toctree.yml
    
    ---------
    
    Co-authored-by: default avatarsteven <steven.bucaillle@gmail.com>
    Co-authored-by: default avataramyeroberts <22614925+amyeroberts@users.noreply.github.com>
    Co-authored-by: default avatarSteven Bucaille <steven.bucaille@buawei.com>
    56baa033