Allow .onnx models in the detection folder (fixes #14050, #14635)#14781
Allow .onnx models in the detection folder (fixes #14050, #14635)#14781Andrew-Pulley wants to merge 1 commit into
Conversation
PR Comfy-Org#14025 registered models/detection/ with supported_pt_extensions only, which excludes .onnx files used by WanAnimate ONNX loaders and other detection nodes. That caused prompt validation to reject values like vitpose-l-wholebody.onnx with value_not_in_list even when the UI showed them as selectable. Fixes Comfy-Org#14050 Fixes Comfy-Org#14635 Co-authored-by: Cursor <cursoragent@cursor.com>
📝 WalkthroughWalkthroughThis change updates the "detection" model folder configuration in folder_paths.py to accept .onnx files in addition to previously supported extensions. A new unit test file was added to verify that .onnx is included in the detected extensions, that .onnx files placed in a registered detection directory are correctly listed via get_filename_list, and that get_full_path resolves to the correct absolute file path. Changes
Related PRs: None identified. Suggested labels: tests, enhancement Suggested reviewers: None identified. 🐰 A rabbit sniffs a model shaped odd, 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Realize PR #14689 adds |
Issue
Fixes #14050
Fixes #14635
After #14025 added the
detectionmodel folder for MediaPipe nodes, it was registered withsupported_pt_extensionsonly. That excludes.onnxfiles, soget_filename_list("detection")and prompt validation reject models such asvitpose-l-wholebody.onnxandyolov10m.onnx.Symptoms:
OnnxDetectionModelLoaderdropdown empty / runtimeget_full_path_or_raisefailurevalue_not_in_listbefore executionFix
Register
.onnxas an allowed extension for thedetectionfolder:Testing
Both tests pass locally.
Side effects
detectionconsumers simply gain.onnxentries in their model lists.Notes
.taskfiles; this PR scopes to.onnxas reported in the linked issues. Cloud users will need a core release deploy after merge.