Add DPT (#15991)
* First draft
* More improvements
* Add fusion blocks
* Make conversion script work for dpt_large
* Make conversion script work
* Improve implementation
* Improve conversion script
* Add DPTForSemanticSegmentation
* Make conversion work for semantic segmentation
* Add tests
* Remove print statements
* First draft
* Redesign neck
* Improve tests
* Improve implementation some more
* Make neck output list of tensors
* Improve neck and feature extractor
* Fix integration tests
* Make more tests pass
* Make all tests pass
* Add missing config archive map
* Add in_index attribute to make heads accept list of tensors
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by:
Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Apply some more suggestions
* Add copied from statements
* Remove assert
* Apply suggestions from code review
* Apply suggestions from code review...
Showing
Please register or sign in to comment