Phillip Kuznetsov
8cadf76e1c
fix(DPT,Depth-Anything) torch.export
( #34103 )
...
* Fix torch.export issue in dpt based models
Signed-off-by: Phillip Kuznetsov <philkuz@gimletlabs.ai>
* Simplify the if statements
Signed-off-by: Phillip Kuznetsov <philkuz@gimletlabs.ai>
* Move activation definitions of zoe_depth to init()
Signed-off-by: Phillip Kuznetsov <philkuz@gimletlabs.ai>
* Add test_export for dpt and zoedepth
Signed-off-by: Phillip Kuznetsov <philkuz@gimletlabs.ai>
* add depth anything
Signed-off-by: Phillip Kuznetsov <philkuz@gimletlabs.ai>
* Remove zoedepth non-automated zoedepth changes and zoedepth test
Signed-off-by: Phillip Kuznetsov <philkuz@gimletlabs.ai>
* [run_slow] dpt, depth_anything, zoedepth
Signed-off-by: Phillip Kuznetsov <philkuz@gimletlabs.ai>
---------
Signed-off-by: Phillip Kuznetsov <philkuz@gimletlabs.ai>
2024-11-20 11:31:21 +01:00
Phillip Kuznetsov
b5919e12f7
fix(DPT,Depth-Anything) Address expected_slice errors inside inference tests ( #34518 )
...
* fix(DPT,Depth-Anything) Address expected_slice errors inside inference tests
Signed-off-by: Phillip Kuznetsov <philkuz@gimletlabs.ai>
* [run_slow] dpt, depth_anything
---------
Signed-off-by: Phillip Kuznetsov <philkuz@gimletlabs.ai>
2024-10-31 16:47:58 +01:00
Bertrand Thia
cc25757a44
Add Depth Anything V2 Metric models ( #32126 )
...
* add checkpoint and repo names
* adapt head to support metric depth estimation
* add max_depth output scaling
* add expected logits
* improve docs
* fix docstring
* add checkpoint and repo names
* adapt head to support metric depth estimation
* add max_depth output scaling
* add expected logits
* improve docs
* fix docstring
* rename depth_estimation to depth_estimation_type
* add integration test
* Refactored tests to include metric depth model inference test
* Integration test pass when the timm backbone lines are commented (L220-L227)
* address feedback
* replace model path to use organization path
* formatting
* delete deprecated TODO
* address feedback
* [run_slow] depth_anything
2024-08-13 16:16:30 +02:00
amyeroberts
609e662243
Use self.config_tester.run_common_tests() ( #31431 )
...
* First testing updating config tests
* Use run_common_tests
2024-06-19 10:18:08 +01:00
amyeroberts
25245ec26d
Rename test_model_common_attributes -> test_model_get_set_embeddings ( #31321 )
...
* Rename to test_model_common_attributes
The method name is misleading - it is testing being able to get and set embeddings, not common attributes to all models
* Explicitly skip
2024-06-07 19:40:26 +01:00
amyeroberts
bdf36dcd48
Enable HF pretrained backbones ( #31145 )
...
* Enable load HF or tim backbone checkpoints
* Fix up
* Fix test - pass in proper out_indices
* Update docs
* Fix tvp tests
* Fix doc examples
* Fix doc examples
* Try to resolve DPT backbone param init
* Don't conditionally set to None
* Add condition based on whether backbone is defined
* Address review comments
2024-06-06 22:02:38 +01:00
Arthur
673440d073
update ruff version ( #30932 )
...
* update ruff version
* fix research projects
* Empty
* Fix errors
---------
Co-authored-by: Lysandre <lysandre@huggingface.co>
2024-05-22 06:40:15 +02:00
Lysandre Debut
39114c0383
Remove static pretrained maps from the library's internals ( #29112 )
...
* [test_all] Remove static pretrained maps from the library's internals
* Deprecate archive maps instead of removing them
* Revert init changes
* [test_all] Deprecate instead of removing
* [test_all] PVT v2 support
* [test_all] Tests should all pass
* [test_all] Style
* Address review comments
* Update src/transformers/models/deprecated/_archive_maps.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* Update src/transformers/models/deprecated/_archive_maps.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* [test_all] trigger tests
* [test_all] LLAVA
* [test_all] Bad rebase
---------
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
2024-03-25 10:33:38 +01:00
NielsRogge
963db81a5a
Add Depth Anything ( #28654 )
...
* First draft
* More improvements
* More improvements
* More improvements
* More improvements
* Add docs
* Remove file
* Add copied from
* Address comments
* Address comments
* Address comments
* Fix style
* Update docs
* Convert all checkpoints, add integration test
* Rename checkpoints
* Add pretrained backbone attributes
* Fix default config
* Address comment
* Add figure to docs
* Fix bug thanks to @xenova
* Update conversion script
* Fix integration test
2024-01-25 09:34:50 +01:00