Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +170 -0
- ComfyUI/.ci/windows_base_files/run_nvidia_gpu.bat +2 -0
- ComfyUI/.ci/windows_base_files/run_nvidia_gpu_fast_fp16_accumulation.bat +2 -0
- ComfyUI/.ci/windows_nightly_base_files/run_nvidia_gpu_fast.bat +2 -0
- ComfyUI/comfy/text_encoders/t5_pile_tokenizer/tokenizer.model +3 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/data/DemoDataset/global_pic/demo.jpg +3 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/demo/demo.jpg +3 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/dev/packaging/build_all_wheels.sh +57 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/checkpoint.rst +7 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/config.rst +17 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/data.rst +40 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/engine.rst +25 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/evaluation.rst +7 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/export.rst +7 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/index.rst +17 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/layers.rst +7 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/model_zoo.rst +7 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/modeling.rst +58 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/solver.rst +7 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/structures.rst +7 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/utils.rst +80 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/notes/benchmarks.md +196 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/notes/changelog.md +26 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/notes/compatibility.md +83 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/notes/contributing.md +49 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/notes/index.rst +10 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/README.md +4 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/builtin_datasets.md +99 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/configs.md +58 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/data_loading.md +77 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/datasets.md +221 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/deployment.md +92 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/evaluation.md +43 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/extend.md +53 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/getting_started.md +79 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/index.rst +18 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/install.md +184 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/models.md +151 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/training.md +50 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/write-models.md +39 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/Base-DensePose-RCNN-FPN.yaml +47 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC1_s1x.yaml +16 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC2_s1x.yaml +16 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_s1x.yaml +10 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC1_s1x.yaml +16 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC2_s1x.yaml +16 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_s1x.yaml +8 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_s1x_legacy.yaml +17 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC1_s1x.yaml +16 -0
- ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC2_s1x.yaml +16 -0
.gitattributes
CHANGED
|
@@ -638,3 +638,173 @@ ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/menu_layer_utility.jpg filter=lfs
|
|
| 638 |
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/mask_invert.jpg filter=lfs diff=lfs merge=lfs -text
|
| 639 |
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/1280x720car.jpg filter=lfs diff=lfs merge=lfs -text
|
| 640 |
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/1280x720_seven_person.jpg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 638 |
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/mask_invert.jpg filter=lfs diff=lfs merge=lfs -text
|
| 639 |
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/1280x720car.jpg filter=lfs diff=lfs merge=lfs -text
|
| 640 |
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/1280x720_seven_person.jpg filter=lfs diff=lfs merge=lfs -text
|
| 641 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/1344x768_girl2.png filter=lfs diff=lfs merge=lfs -text
|
| 642 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/1344x768_beach.png filter=lfs diff=lfs merge=lfs -text
|
| 643 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/1344x768_hair.png filter=lfs diff=lfs merge=lfs -text
|
| 644 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/1920x1080table.png filter=lfs diff=lfs merge=lfs -text
|
| 645 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/mask_grow_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 646 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/512x512.png filter=lfs diff=lfs merge=lfs -text
|
| 647 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/768x1344_beach.png filter=lfs diff=lfs merge=lfs -text
|
| 648 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/3840x2160car.jpg filter=lfs diff=lfs merge=lfs -text
|
| 649 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/whl/hydra_core-1.3.2-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
|
| 650 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/768x1344_dress.png filter=lfs diff=lfs merge=lfs -text
|
| 651 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/1344x768_redcar.png filter=lfs diff=lfs merge=lfs -text
|
| 652 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/1280x768_city.png filter=lfs diff=lfs merge=lfs -text
|
| 653 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/girl_dino_1024.png filter=lfs diff=lfs merge=lfs -text
|
| 654 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-BlackItalic-1413vuen.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 655 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-Black-jiII8dog.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 656 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-ExtraBoldItalic-BJafRE5I.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 657 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-ExtraBold-TduDdwUu.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 658 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-ExtraLightItalic-ZptecSuc.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 659 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-ExtraLight-w5HAp5iF.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 660 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-Italic-f6M78thn.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 661 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-BoldItalic-dE_gZyur.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 662 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-LightItalic-fu56_DRc.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 663 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-Light-DFhX0qo-.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 664 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-Regular-dEFHw1tF.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 665 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-SemiBoldItalic-uIDb7hsH.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 666 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-MediumItalic-zr3roggP.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 667 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/kofi_button_black-XI_Dr2zg.png filter=lfs diff=lfs merge=lfs -text
|
| 668 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-Thin-eKObIkJC.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 669 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-SemiBold-PyS8DO2L.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 670 |
+
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/workflow/catvton_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 671 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-Medium-dDRaJ8tM.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 672 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/workflow/fox_512x512.png filter=lfs diff=lfs merge=lfs -text
|
| 673 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/mask_gradient_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 674 |
+
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/workflow/girl.jpg filter=lfs diff=lfs merge=lfs -text
|
| 675 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle_Advance/workflow/1344x768_beach.png filter=lfs diff=lfs merge=lfs -text
|
| 676 |
+
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/demo/demo.jpg filter=lfs diff=lfs merge=lfs -text
|
| 677 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/outer_glow_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 678 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/object_detector_yolo_world_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 679 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-Bold-srYz_-1B.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 680 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/pixel_spread_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 681 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/phi_prompt_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 682 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/person_mask_ultra_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 683 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/person_mask_ultra_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 684 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/phi_prompt_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 685 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/prompt_tagger_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 686 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/prompt_embellish_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 687 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/purge_vram_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 688 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/prompt_tagger_example1.jpg filter=lfs diff=lfs merge=lfs -text
|
| 689 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/rembg_ultra_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 690 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/random_generator_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 691 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/random_generator_v2_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 692 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/qwen_image2prompt_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 693 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/queue_stop_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 694 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/random_generator_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 695 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/sam2_video_ultra_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 696 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/sd3_negative_conditioning_node_note.jpg filter=lfs diff=lfs merge=lfs -text
|
| 697 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/sd3_negative_conditioning_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 698 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/sam2_ultra_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 699 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/saveimage_plus_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 700 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/sam2_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 701 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/segformer_clothes_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 702 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/segformer_fashion_pipeline_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 703 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/segformer_clothes_pipeline_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 704 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/segformer_ultra_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 705 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/segment_anything_ultra_compare.jpg filter=lfs diff=lfs merge=lfs -text
|
| 706 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/segment_anything_ultra_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 707 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/shadow_and_highlight_mask_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 708 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/segformer_ultra_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 709 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/sharp_and_soft_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 710 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/segment_anything_ultra_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 711 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/simple_text_image_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 712 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/web_app/assets/Inter-ThinItalic-L6uBn3RP.woff2 filter=lfs diff=lfs merge=lfs -text
|
| 713 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/skin_beauty_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 714 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/segformer_fashion_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 715 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/stroke_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 716 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/switch_case_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 717 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/text_image_v2_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 718 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/text_image_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 719 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/ultra_v2_nodes_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 720 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/string_condition_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 721 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/title.jpg filter=lfs diff=lfs merge=lfs -text
|
| 722 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/text_image_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 723 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/text_join_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 724 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/transparent_background_ultra_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 725 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/ultra_nodes.jpg filter=lfs diff=lfs merge=lfs -text
|
| 726 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/userprompt_generator_txt2img_with_reference_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 727 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/vqa_prompt_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 728 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/watermark_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 729 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/blend_mode_v2_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 730 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/water_color_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 731 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/yolov8_detect_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 732 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/xy2percent_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 733 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/birefnet_ultra_v2_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 734 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/simple_text_image_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 735 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/blend_mode_result.jpg filter=lfs diff=lfs merge=lfs -text
|
| 736 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/channel_shake_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 737 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/blendif_mask_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 738 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/color_adapter_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 739 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/colormap_result.jpg filter=lfs diff=lfs merge=lfs -text
|
| 740 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/color_image_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 741 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/segment_anything_ultra_v2_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 742 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/color_overlay_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 743 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/color_balance_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 744 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/color_of_shadow_and_highlight_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 745 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/color_of_shadow_and_highlight_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 746 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/corp_by_mask_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 747 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/create_gradient_mask_example2.jpg filter=lfs diff=lfs merge=lfs -text
|
| 748 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/create_gradient_mask_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 749 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/color_temperature_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 750 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/corp_by_mask_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 751 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/data_nodes_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 752 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/draw_bbox_mask_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 753 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/drop_shadow_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 754 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/soft_light_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 755 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/extend_canvas_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 756 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/evf_sam_ultra_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 757 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/extend_canvas_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 758 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/exposure_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 759 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/evf_sam_ultra_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 760 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/film_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 761 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/film_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 762 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/florence2_ultra_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 763 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/mask_edge_shrink_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 764 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/gaussian_blur_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 765 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/get_color_tone_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 766 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/get_main_color_and_color_name_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 767 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/vqa_prompt_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 768 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/gradient_image_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 769 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/get_main_colors_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 770 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/gradient_overlay_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 771 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/if_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 772 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/hl_frequency_detail_restore_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 773 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/human_parts_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 774 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/image_auto_crop_v3_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 775 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/human_parts_ultra_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 776 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/hdr_effects_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 777 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/get_color_tone_v2_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 778 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/image_auto_crop_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 779 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/image_auto_crop_v2_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 780 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/image_auto_crop_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 781 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/image_channel_merge_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 782 |
+
ComfyUI/custom_nodes/comfyui-kjnodes/fonts/FreeMono.ttf filter=lfs diff=lfs merge=lfs -text
|
| 783 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/image_blend_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 784 |
+
ComfyUI/custom_nodes/comfyui-kjnodes/fonts/FreeMonoBoldOblique.otf filter=lfs diff=lfs merge=lfs -text
|
| 785 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/image_blend_advance_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 786 |
+
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/data/DemoDataset/global_pic/demo.jpg filter=lfs diff=lfs merge=lfs -text
|
| 787 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/image_blend_advance_node.jpg filter=lfs diff=lfs merge=lfs -text
|
| 788 |
+
ComfyUI/custom_nodes/comfyui-kjnodes/fonts/TTNorms-Black.otf filter=lfs diff=lfs merge=lfs -text
|
| 789 |
+
ComfyUI/custom_nodes/comfyui-kjnodes/docs/images/2024-04-03_20_49_29-ComfyUI.png filter=lfs diff=lfs merge=lfs -text
|
| 790 |
+
ComfyUI/custom_nodes/comfyui-inpaint-nodes/media/inpaint.png filter=lfs diff=lfs merge=lfs -text
|
| 791 |
+
ComfyUI/custom_nodes/comfyui-inpaint-nodes/media/preprocess-blur-65.png filter=lfs diff=lfs merge=lfs -text
|
| 792 |
+
ComfyUI/custom_nodes/comfyui-inpaint-nodes/media/preprocess-blur-17.png filter=lfs diff=lfs merge=lfs -text
|
| 793 |
+
ComfyUI/custom_nodes/comfyui-inpaint-nodes/media/preprocess-input.png filter=lfs diff=lfs merge=lfs -text
|
| 794 |
+
ComfyUI/custom_nodes/comfyui-inpaint-nodes/media/preprocess-neutral.png filter=lfs diff=lfs merge=lfs -text
|
| 795 |
+
ComfyUI/custom_nodes/comfyui-inpaint-cropandstitch/example_workflows/inpaint_flux.jpg filter=lfs diff=lfs merge=lfs -text
|
| 796 |
+
ComfyUI/custom_nodes/comfyui-inpaint-nodes/media/preprocess-telea.png filter=lfs diff=lfs merge=lfs -text
|
| 797 |
+
ComfyUI/custom_nodes/comfyui-inpaint-nodes/media/preprocess-mat.png filter=lfs diff=lfs merge=lfs -text
|
| 798 |
+
ComfyUI/custom_nodes/comfyui-inpaint-nodes/media/preprocess-navier-stokes.png filter=lfs diff=lfs merge=lfs -text
|
| 799 |
+
ComfyUI/custom_nodes/comfyui-inpaint-nodes/media/preprocess-lama.png filter=lfs diff=lfs merge=lfs -text
|
| 800 |
+
ComfyUI/custom_nodes/comfyui-inpaint-cropandstitch/example_workflows/inpaint_hires.jpg filter=lfs diff=lfs merge=lfs -text
|
| 801 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/image_channel_split_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 802 |
+
ComfyUI/custom_nodes/comfyui-impact-pack/example_workflows/2-MaskDetailer.jpg filter=lfs diff=lfs merge=lfs -text
|
| 803 |
+
ComfyUI/custom_nodes/comfyui-inpaint-cropandstitch/example_workflows/inpaint_sd15.jpg filter=lfs diff=lfs merge=lfs -text
|
| 804 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/florence2_image2prompt_example.jpg filter=lfs diff=lfs merge=lfs -text
|
| 805 |
+
ComfyUI/custom_nodes/comfyui-impact-pack/example_workflows/4-MakeTileSEGS-Upscale.jpg filter=lfs diff=lfs merge=lfs -text
|
| 806 |
+
ComfyUI/custom_nodes/comfyui-impact-pack/example_workflows/5-prompt-per-tile.jpg filter=lfs diff=lfs merge=lfs -text
|
| 807 |
+
ComfyUI/custom_nodes/comfyui-impact-pack/example_workflows/6-DetailerWildcard.jpg filter=lfs diff=lfs merge=lfs -text
|
| 808 |
+
ComfyUI/custom_nodes/comfyui-impact-pack/troubleshooting/black1.png filter=lfs diff=lfs merge=lfs -text
|
| 809 |
+
ComfyUI/custom_nodes/comfyui-impact-pack/troubleshooting/black2.png filter=lfs diff=lfs merge=lfs -text
|
| 810 |
+
ComfyUI/custom_nodes/ComfyUI_LayerStyle/image/mask_by_different_node.jpg filter=lfs diff=lfs merge=lfs -text
|
ComfyUI/.ci/windows_base_files/run_nvidia_gpu.bat
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build
|
| 2 |
+
pause
|
ComfyUI/.ci/windows_base_files/run_nvidia_gpu_fast_fp16_accumulation.bat
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --fast fp16_accumulation
|
| 2 |
+
pause
|
ComfyUI/.ci/windows_nightly_base_files/run_nvidia_gpu_fast.bat
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build --fast
|
| 2 |
+
pause
|
ComfyUI/comfy/text_encoders/t5_pile_tokenizer/tokenizer.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
| 3 |
+
size 499723
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/data/DemoDataset/global_pic/demo.jpg
ADDED
|
Git LFS Details
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/demo/demo.jpg
ADDED
|
Git LFS Details
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/dev/packaging/build_all_wheels.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash -e
|
| 2 |
+
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
|
| 3 |
+
|
| 4 |
+
PYTORCH_VERSION=1.5
|
| 5 |
+
|
| 6 |
+
build_for_one_cuda() {
|
| 7 |
+
cu=$1
|
| 8 |
+
|
| 9 |
+
case "$cu" in
|
| 10 |
+
cu*)
|
| 11 |
+
container_name=manylinux-cuda${cu/cu/}
|
| 12 |
+
;;
|
| 13 |
+
cpu)
|
| 14 |
+
container_name=manylinux-cuda101
|
| 15 |
+
;;
|
| 16 |
+
*)
|
| 17 |
+
echo "Unrecognized cu=$cu"
|
| 18 |
+
exit 1
|
| 19 |
+
;;
|
| 20 |
+
esac
|
| 21 |
+
|
| 22 |
+
echo "Launching container $container_name ..."
|
| 23 |
+
|
| 24 |
+
for py in 3.6 3.7 3.8; do
|
| 25 |
+
docker run -itd \
|
| 26 |
+
--name $container_name \
|
| 27 |
+
--mount type=bind,source="$(pwd)",target=/detectron2 \
|
| 28 |
+
pytorch/$container_name
|
| 29 |
+
|
| 30 |
+
cat <<EOF | docker exec -i $container_name sh
|
| 31 |
+
export CU_VERSION=$cu D2_VERSION_SUFFIX=+$cu PYTHON_VERSION=$py
|
| 32 |
+
export PYTORCH_VERSION=$PYTORCH_VERSION
|
| 33 |
+
cd /detectron2 && ./dev/packaging/build_wheel.sh
|
| 34 |
+
EOF
|
| 35 |
+
|
| 36 |
+
# if [[ "$cu" == "cu101" ]]; then
|
| 37 |
+
# # build wheel without local version
|
| 38 |
+
# cat <<EOF | docker exec -i $container_name sh
|
| 39 |
+
# export CU_VERSION=$cu D2_VERSION_SUFFIX= PYTHON_VERSION=$py
|
| 40 |
+
# export PYTORCH_VERSION=$PYTORCH_VERSION
|
| 41 |
+
# cd /detectron2 && ./dev/packaging/build_wheel.sh
|
| 42 |
+
# EOF
|
| 43 |
+
# fi
|
| 44 |
+
|
| 45 |
+
docker exec -i $container_name rm -rf /detectron2/build/$cu
|
| 46 |
+
docker container stop $container_name
|
| 47 |
+
docker container rm $container_name
|
| 48 |
+
done
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
if [[ -n "$1" ]]; then
|
| 52 |
+
build_for_one_cuda "$1"
|
| 53 |
+
else
|
| 54 |
+
for cu in cu102 cu101 cu92 cpu; do
|
| 55 |
+
build_for_one_cuda "$cu"
|
| 56 |
+
done
|
| 57 |
+
fi
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/checkpoint.rst
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
detectron2.checkpoint package
|
| 2 |
+
=============================
|
| 3 |
+
|
| 4 |
+
.. automodule:: detectron2.checkpoint
|
| 5 |
+
:members:
|
| 6 |
+
:undoc-members:
|
| 7 |
+
:show-inheritance:
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/config.rst
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
detectron2.config package
|
| 2 |
+
=========================
|
| 3 |
+
|
| 4 |
+
.. automodule:: detectron2.config
|
| 5 |
+
:members:
|
| 6 |
+
:undoc-members:
|
| 7 |
+
:show-inheritance:
|
| 8 |
+
:inherited-members:
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
Config References
|
| 12 |
+
-----------------
|
| 13 |
+
|
| 14 |
+
.. literalinclude:: ../../detectron2/config/defaults.py
|
| 15 |
+
:language: python
|
| 16 |
+
:linenos:
|
| 17 |
+
:lines: 4-
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/data.rst
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
detectron2.data package
|
| 2 |
+
=======================
|
| 3 |
+
|
| 4 |
+
.. automodule:: detectron2.data
|
| 5 |
+
:members:
|
| 6 |
+
:undoc-members:
|
| 7 |
+
:show-inheritance:
|
| 8 |
+
|
| 9 |
+
detectron2.data.detection\_utils module
|
| 10 |
+
---------------------------------------
|
| 11 |
+
|
| 12 |
+
.. automodule:: detectron2.data.detection_utils
|
| 13 |
+
:members:
|
| 14 |
+
:undoc-members:
|
| 15 |
+
:show-inheritance:
|
| 16 |
+
|
| 17 |
+
detectron2.data.datasets module
|
| 18 |
+
---------------------------------------
|
| 19 |
+
|
| 20 |
+
.. automodule:: detectron2.data.datasets
|
| 21 |
+
:members:
|
| 22 |
+
:undoc-members:
|
| 23 |
+
:show-inheritance:
|
| 24 |
+
|
| 25 |
+
detectron2.data.samplers module
|
| 26 |
+
---------------------------------------
|
| 27 |
+
|
| 28 |
+
.. automodule:: detectron2.data.samplers
|
| 29 |
+
:members:
|
| 30 |
+
:undoc-members:
|
| 31 |
+
:show-inheritance:
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
detectron2.data.transforms module
|
| 35 |
+
---------------------------------------
|
| 36 |
+
|
| 37 |
+
.. automodule:: detectron2.data.transforms
|
| 38 |
+
:members:
|
| 39 |
+
:undoc-members:
|
| 40 |
+
:show-inheritance:
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/engine.rst
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
detectron2.engine package
|
| 2 |
+
=========================
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
.. automodule:: detectron2.engine
|
| 6 |
+
:members:
|
| 7 |
+
:undoc-members:
|
| 8 |
+
:show-inheritance:
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
detectron2.engine.defaults module
|
| 12 |
+
---------------------------------
|
| 13 |
+
|
| 14 |
+
.. automodule:: detectron2.engine.defaults
|
| 15 |
+
:members:
|
| 16 |
+
:undoc-members:
|
| 17 |
+
:show-inheritance:
|
| 18 |
+
|
| 19 |
+
detectron2.engine.hooks module
|
| 20 |
+
---------------------------------
|
| 21 |
+
|
| 22 |
+
.. automodule:: detectron2.engine.hooks
|
| 23 |
+
:members:
|
| 24 |
+
:undoc-members:
|
| 25 |
+
:show-inheritance:
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/evaluation.rst
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
detectron2.evaluation package
|
| 2 |
+
=============================
|
| 3 |
+
|
| 4 |
+
.. automodule:: detectron2.evaluation
|
| 5 |
+
:members:
|
| 6 |
+
:undoc-members:
|
| 7 |
+
:show-inheritance:
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/export.rst
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
detectron2.export package
|
| 2 |
+
=========================
|
| 3 |
+
|
| 4 |
+
.. automodule:: detectron2.export
|
| 5 |
+
:members:
|
| 6 |
+
:undoc-members:
|
| 7 |
+
:show-inheritance:
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/index.rst
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
API Documentation
|
| 2 |
+
==================
|
| 3 |
+
|
| 4 |
+
.. toctree::
|
| 5 |
+
|
| 6 |
+
checkpoint
|
| 7 |
+
config
|
| 8 |
+
data
|
| 9 |
+
engine
|
| 10 |
+
evaluation
|
| 11 |
+
layers
|
| 12 |
+
model_zoo
|
| 13 |
+
modeling
|
| 14 |
+
solver
|
| 15 |
+
structures
|
| 16 |
+
utils
|
| 17 |
+
export
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/layers.rst
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
detectron2.layers package
|
| 2 |
+
=========================
|
| 3 |
+
|
| 4 |
+
.. automodule:: detectron2.layers
|
| 5 |
+
:members:
|
| 6 |
+
:undoc-members:
|
| 7 |
+
:show-inheritance:
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/model_zoo.rst
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
detectron2.model_zoo package
|
| 2 |
+
============================
|
| 3 |
+
|
| 4 |
+
.. automodule:: detectron2.model_zoo
|
| 5 |
+
:members:
|
| 6 |
+
:undoc-members:
|
| 7 |
+
:show-inheritance:
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/modeling.rst
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
detectron2.modeling package
|
| 2 |
+
===========================
|
| 3 |
+
|
| 4 |
+
.. automodule:: detectron2.modeling
|
| 5 |
+
:members:
|
| 6 |
+
:undoc-members:
|
| 7 |
+
:show-inheritance:
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
detectron2.modeling.poolers module
|
| 11 |
+
---------------------------------------
|
| 12 |
+
|
| 13 |
+
.. automodule:: detectron2.modeling.poolers
|
| 14 |
+
:members:
|
| 15 |
+
:undoc-members:
|
| 16 |
+
:show-inheritance:
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
detectron2.modeling.sampling module
|
| 20 |
+
------------------------------------
|
| 21 |
+
|
| 22 |
+
.. automodule:: detectron2.modeling.sampling
|
| 23 |
+
:members:
|
| 24 |
+
:undoc-members:
|
| 25 |
+
:show-inheritance:
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
detectron2.modeling.box_regression module
|
| 29 |
+
------------------------------------------
|
| 30 |
+
|
| 31 |
+
.. automodule:: detectron2.modeling.box_regression
|
| 32 |
+
:members:
|
| 33 |
+
:undoc-members:
|
| 34 |
+
:show-inheritance:
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
Model Registries
|
| 38 |
+
-----------------
|
| 39 |
+
|
| 40 |
+
These are different registries provided in modeling.
|
| 41 |
+
Each registry provide you the ability to replace it with your customized component,
|
| 42 |
+
without having to modify detectron2's code.
|
| 43 |
+
|
| 44 |
+
Note that it is impossible to allow users to customize any line of code directly.
|
| 45 |
+
Even just to add one line at some place,
|
| 46 |
+
you'll likely need to find out the smallest registry which contains that line,
|
| 47 |
+
and register your component to that registry.
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
.. autodata:: detectron2.modeling.META_ARCH_REGISTRY
|
| 51 |
+
.. autodata:: detectron2.modeling.BACKBONE_REGISTRY
|
| 52 |
+
.. autodata:: detectron2.modeling.PROPOSAL_GENERATOR_REGISTRY
|
| 53 |
+
.. autodata:: detectron2.modeling.RPN_HEAD_REGISTRY
|
| 54 |
+
.. autodata:: detectron2.modeling.ANCHOR_GENERATOR_REGISTRY
|
| 55 |
+
.. autodata:: detectron2.modeling.ROI_HEADS_REGISTRY
|
| 56 |
+
.. autodata:: detectron2.modeling.ROI_BOX_HEAD_REGISTRY
|
| 57 |
+
.. autodata:: detectron2.modeling.ROI_MASK_HEAD_REGISTRY
|
| 58 |
+
.. autodata:: detectron2.modeling.ROI_KEYPOINT_HEAD_REGISTRY
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/solver.rst
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
detectron2.solver package
|
| 2 |
+
=========================
|
| 3 |
+
|
| 4 |
+
.. automodule:: detectron2.solver
|
| 5 |
+
:members:
|
| 6 |
+
:undoc-members:
|
| 7 |
+
:show-inheritance:
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/structures.rst
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
detectron2.structures package
|
| 2 |
+
=============================
|
| 3 |
+
|
| 4 |
+
.. automodule:: detectron2.structures
|
| 5 |
+
:members:
|
| 6 |
+
:undoc-members:
|
| 7 |
+
:show-inheritance:
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/modules/utils.rst
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
detectron2.utils package
|
| 2 |
+
========================
|
| 3 |
+
|
| 4 |
+
detectron2.utils.colormap module
|
| 5 |
+
--------------------------------
|
| 6 |
+
|
| 7 |
+
.. automodule:: detectron2.utils.colormap
|
| 8 |
+
:members:
|
| 9 |
+
:undoc-members:
|
| 10 |
+
:show-inheritance:
|
| 11 |
+
|
| 12 |
+
detectron2.utils.comm module
|
| 13 |
+
----------------------------
|
| 14 |
+
|
| 15 |
+
.. automodule:: detectron2.utils.comm
|
| 16 |
+
:members:
|
| 17 |
+
:undoc-members:
|
| 18 |
+
:show-inheritance:
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
detectron2.utils.events module
|
| 22 |
+
------------------------------
|
| 23 |
+
|
| 24 |
+
.. automodule:: detectron2.utils.events
|
| 25 |
+
:members:
|
| 26 |
+
:undoc-members:
|
| 27 |
+
:show-inheritance:
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
detectron2.utils.logger module
|
| 31 |
+
------------------------------
|
| 32 |
+
|
| 33 |
+
.. automodule:: detectron2.utils.logger
|
| 34 |
+
:members:
|
| 35 |
+
:undoc-members:
|
| 36 |
+
:show-inheritance:
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
detectron2.utils.registry module
|
| 40 |
+
--------------------------------
|
| 41 |
+
|
| 42 |
+
.. automodule:: detectron2.utils.registry
|
| 43 |
+
:members:
|
| 44 |
+
:undoc-members:
|
| 45 |
+
:show-inheritance:
|
| 46 |
+
|
| 47 |
+
detectron2.utils.memory module
|
| 48 |
+
----------------------------------
|
| 49 |
+
|
| 50 |
+
.. automodule:: detectron2.utils.memory
|
| 51 |
+
:members:
|
| 52 |
+
:undoc-members:
|
| 53 |
+
:show-inheritance:
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
detectron2.utils.analysis module
|
| 57 |
+
----------------------------------
|
| 58 |
+
|
| 59 |
+
.. automodule:: detectron2.utils.analysis
|
| 60 |
+
:members:
|
| 61 |
+
:undoc-members:
|
| 62 |
+
:show-inheritance:
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
detectron2.utils.visualizer module
|
| 66 |
+
----------------------------------
|
| 67 |
+
|
| 68 |
+
.. automodule:: detectron2.utils.visualizer
|
| 69 |
+
:members:
|
| 70 |
+
:undoc-members:
|
| 71 |
+
:show-inheritance:
|
| 72 |
+
|
| 73 |
+
detectron2.utils.video\_visualizer module
|
| 74 |
+
-----------------------------------------
|
| 75 |
+
|
| 76 |
+
.. automodule:: detectron2.utils.video_visualizer
|
| 77 |
+
:members:
|
| 78 |
+
:undoc-members:
|
| 79 |
+
:show-inheritance:
|
| 80 |
+
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/notes/benchmarks.md
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# Benchmarks
|
| 3 |
+
|
| 4 |
+
Here we benchmark the training speed of a Mask R-CNN in detectron2,
|
| 5 |
+
with some other popular open source Mask R-CNN implementations.
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
### Settings
|
| 9 |
+
|
| 10 |
+
* Hardware: 8 NVIDIA V100s with NVLink.
|
| 11 |
+
* Software: Python 3.7, CUDA 10.1, cuDNN 7.6.5, PyTorch 1.5,
|
| 12 |
+
TensorFlow 1.15.0rc2, Keras 2.2.5, MxNet 1.6.0b20190820.
|
| 13 |
+
* Model: an end-to-end R-50-FPN Mask-RCNN model, using the same hyperparameter as the
|
| 14 |
+
[Detectron baseline config](https://github.com/facebookresearch/Detectron/blob/master/configs/12_2017_baselines/e2e_mask_rcnn_R-50-FPN_1x.yaml)
|
| 15 |
+
(it does no have scale augmentation).
|
| 16 |
+
* Metrics: We use the average throughput in iterations 100-500 to skip GPU warmup time.
|
| 17 |
+
Note that for R-CNN-style models, the throughput of a model typically changes during training, because
|
| 18 |
+
it depends on the predictions of the model. Therefore this metric is not directly comparable with
|
| 19 |
+
"train speed" in model zoo, which is the average speed of the entire training run.
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
### Main Results
|
| 23 |
+
|
| 24 |
+
```eval_rst
|
| 25 |
+
+-------------------------------+--------------------+
|
| 26 |
+
| Implementation | Throughput (img/s) |
|
| 27 |
+
+===============================+====================+
|
| 28 |
+
| |D2| |PT| | 62 |
|
| 29 |
+
+-------------------------------+--------------------+
|
| 30 |
+
| mmdetection_ |PT| | 53 |
|
| 31 |
+
+-------------------------------+--------------------+
|
| 32 |
+
| maskrcnn-benchmark_ |PT| | 53 |
|
| 33 |
+
+-------------------------------+--------------------+
|
| 34 |
+
| tensorpack_ |TF| | 50 |
|
| 35 |
+
+-------------------------------+--------------------+
|
| 36 |
+
| simpledet_ |mxnet| | 39 |
|
| 37 |
+
+-------------------------------+--------------------+
|
| 38 |
+
| Detectron_ |C2| | 19 |
|
| 39 |
+
+-------------------------------+--------------------+
|
| 40 |
+
| `matterport/Mask_RCNN`__ |TF| | 14 |
|
| 41 |
+
+-------------------------------+--------------------+
|
| 42 |
+
|
| 43 |
+
.. _maskrcnn-benchmark: https://github.com/facebookresearch/maskrcnn-benchmark/
|
| 44 |
+
.. _tensorpack: https://github.com/tensorpack/tensorpack/tree/master/examples/FasterRCNN
|
| 45 |
+
.. _mmdetection: https://github.com/open-mmlab/mmdetection/
|
| 46 |
+
.. _simpledet: https://github.com/TuSimple/simpledet/
|
| 47 |
+
.. _Detectron: https://github.com/facebookresearch/Detectron
|
| 48 |
+
__ https://github.com/matterport/Mask_RCNN/
|
| 49 |
+
|
| 50 |
+
.. |D2| image:: https://github.com/facebookresearch/detectron2/raw/master/.github/Detectron2-Logo-Horz.svg?sanitize=true
|
| 51 |
+
:height: 15pt
|
| 52 |
+
:target: https://github.com/facebookresearch/detectron2/
|
| 53 |
+
.. |PT| image:: https://pytorch.org/assets/images/logo-icon.svg
|
| 54 |
+
:width: 15pt
|
| 55 |
+
:height: 15pt
|
| 56 |
+
:target: https://pytorch.org
|
| 57 |
+
.. |TF| image:: https://static.nvidiagrid.net/ngc/containers/tensorflow.png
|
| 58 |
+
:width: 15pt
|
| 59 |
+
:height: 15pt
|
| 60 |
+
:target: https://tensorflow.org
|
| 61 |
+
.. |mxnet| image:: https://github.com/dmlc/web-data/raw/master/mxnet/image/mxnet_favicon.png
|
| 62 |
+
:width: 15pt
|
| 63 |
+
:height: 15pt
|
| 64 |
+
:target: https://mxnet.apache.org/
|
| 65 |
+
.. |C2| image:: https://caffe2.ai/static/logo.svg
|
| 66 |
+
:width: 15pt
|
| 67 |
+
:height: 15pt
|
| 68 |
+
:target: https://caffe2.ai
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
Details for each implementation:
|
| 73 |
+
|
| 74 |
+
* __Detectron2__: with release v0.1.2, run:
|
| 75 |
+
```
|
| 76 |
+
python tools/train_net.py --config-file configs/Detectron1-Comparisons/mask_rcnn_R_50_FPN_noaug_1x.yaml --num-gpus 8
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
* __mmdetection__: at commit `b0d845f`, run
|
| 80 |
+
```
|
| 81 |
+
./tools/dist_train.sh configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_1x_coco.py 8
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
* __maskrcnn-benchmark__: use commit `0ce8f6f` with `sed -i ‘s/torch.uint8/torch.bool/g’ **/*.py; sed -i 's/AT_CHECK/TORCH_CHECK/g' **/*.cu`
|
| 85 |
+
to make it compatible with PyTorch 1.5. Then, run training with
|
| 86 |
+
```
|
| 87 |
+
python -m torch.distributed.launch --nproc_per_node=8 tools/train_net.py --config-file configs/e2e_mask_rcnn_R_50_FPN_1x.yaml
|
| 88 |
+
```
|
| 89 |
+
The speed we observed is faster than its model zoo, likely due to different software versions.
|
| 90 |
+
|
| 91 |
+
* __tensorpack__: at commit `caafda`, `export TF_CUDNN_USE_AUTOTUNE=0`, then run
|
| 92 |
+
```
|
| 93 |
+
mpirun -np 8 ./train.py --config DATA.BASEDIR=/data/coco TRAINER=horovod BACKBONE.STRIDE_1X1=True TRAIN.STEPS_PER_EPOCH=50 --load ImageNet-R50-AlignPadding.npz
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
* __SimpleDet__: at commit `9187a1`, run
|
| 97 |
+
```
|
| 98 |
+
python detection_train.py --config config/mask_r50v1_fpn_1x.py
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
* __Detectron__: run
|
| 102 |
+
```
|
| 103 |
+
python tools/train_net.py --cfg configs/12_2017_baselines/e2e_mask_rcnn_R-50-FPN_1x.yaml
|
| 104 |
+
```
|
| 105 |
+
Note that many of its ops run on CPUs, therefore the performance is limited.
|
| 106 |
+
|
| 107 |
+
* __matterport/Mask_RCNN__: at commit `3deaec`, apply the following diff, `export TF_CUDNN_USE_AUTOTUNE=0`, then run
|
| 108 |
+
```
|
| 109 |
+
python coco.py train --dataset=/data/coco/ --model=imagenet
|
| 110 |
+
```
|
| 111 |
+
Note that many small details in this implementation might be different
|
| 112 |
+
from Detectron's standards.
|
| 113 |
+
|
| 114 |
+
<details>
|
| 115 |
+
<summary>
|
| 116 |
+
(diff to make it use the same hyperparameters - click to expand)
|
| 117 |
+
</summary>
|
| 118 |
+
|
| 119 |
+
```diff
|
| 120 |
+
diff --git i/mrcnn/model.py w/mrcnn/model.py
|
| 121 |
+
index 62cb2b0..61d7779 100644
|
| 122 |
+
--- i/mrcnn/model.py
|
| 123 |
+
+++ w/mrcnn/model.py
|
| 124 |
+
@@ -2367,8 +2367,8 @@ class MaskRCNN():
|
| 125 |
+
epochs=epochs,
|
| 126 |
+
steps_per_epoch=self.config.STEPS_PER_EPOCH,
|
| 127 |
+
callbacks=callbacks,
|
| 128 |
+
- validation_data=val_generator,
|
| 129 |
+
- validation_steps=self.config.VALIDATION_STEPS,
|
| 130 |
+
+ #validation_data=val_generator,
|
| 131 |
+
+ #validation_steps=self.config.VALIDATION_STEPS,
|
| 132 |
+
max_queue_size=100,
|
| 133 |
+
workers=workers,
|
| 134 |
+
use_multiprocessing=True,
|
| 135 |
+
diff --git i/mrcnn/parallel_model.py w/mrcnn/parallel_model.py
|
| 136 |
+
index d2bf53b..060172a 100644
|
| 137 |
+
--- i/mrcnn/parallel_model.py
|
| 138 |
+
+++ w/mrcnn/parallel_model.py
|
| 139 |
+
@@ -32,6 +32,7 @@ class ParallelModel(KM.Model):
|
| 140 |
+
keras_model: The Keras model to parallelize
|
| 141 |
+
gpu_count: Number of GPUs. Must be > 1
|
| 142 |
+
"""
|
| 143 |
+
+ super().__init__()
|
| 144 |
+
self.inner_model = keras_model
|
| 145 |
+
self.gpu_count = gpu_count
|
| 146 |
+
merged_outputs = self.make_parallel()
|
| 147 |
+
diff --git i/samples/coco/coco.py w/samples/coco/coco.py
|
| 148 |
+
index 5d172b5..239ed75 100644
|
| 149 |
+
--- i/samples/coco/coco.py
|
| 150 |
+
+++ w/samples/coco/coco.py
|
| 151 |
+
@@ -81,7 +81,10 @@ class CocoConfig(Config):
|
| 152 |
+
IMAGES_PER_GPU = 2
|
| 153 |
+
|
| 154 |
+
# Uncomment to train on 8 GPUs (default is 1)
|
| 155 |
+
- # GPU_COUNT = 8
|
| 156 |
+
+ GPU_COUNT = 8
|
| 157 |
+
+ BACKBONE = "resnet50"
|
| 158 |
+
+ STEPS_PER_EPOCH = 50
|
| 159 |
+
+ TRAIN_ROIS_PER_IMAGE = 512
|
| 160 |
+
|
| 161 |
+
# Number of classes (including background)
|
| 162 |
+
NUM_CLASSES = 1 + 80 # COCO has 80 classes
|
| 163 |
+
@@ -496,29 +499,10 @@ if __name__ == '__main__':
|
| 164 |
+
# *** This training schedule is an example. Update to your needs ***
|
| 165 |
+
|
| 166 |
+
# Training - Stage 1
|
| 167 |
+
- print("Training network heads")
|
| 168 |
+
model.train(dataset_train, dataset_val,
|
| 169 |
+
learning_rate=config.LEARNING_RATE,
|
| 170 |
+
epochs=40,
|
| 171 |
+
- layers='heads',
|
| 172 |
+
- augmentation=augmentation)
|
| 173 |
+
-
|
| 174 |
+
- # Training - Stage 2
|
| 175 |
+
- # Finetune layers from ResNet stage 4 and up
|
| 176 |
+
- print("Fine tune Resnet stage 4 and up")
|
| 177 |
+
- model.train(dataset_train, dataset_val,
|
| 178 |
+
- learning_rate=config.LEARNING_RATE,
|
| 179 |
+
- epochs=120,
|
| 180 |
+
- layers='4+',
|
| 181 |
+
- augmentation=augmentation)
|
| 182 |
+
-
|
| 183 |
+
- # Training - Stage 3
|
| 184 |
+
- # Fine tune all layers
|
| 185 |
+
- print("Fine tune all layers")
|
| 186 |
+
- model.train(dataset_train, dataset_val,
|
| 187 |
+
- learning_rate=config.LEARNING_RATE / 10,
|
| 188 |
+
- epochs=160,
|
| 189 |
+
- layers='all',
|
| 190 |
+
+ layers='3+',
|
| 191 |
+
augmentation=augmentation)
|
| 192 |
+
|
| 193 |
+
elif args.command == "evaluate":
|
| 194 |
+
```
|
| 195 |
+
|
| 196 |
+
</details>
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/notes/changelog.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Change Log
|
| 2 |
+
|
| 3 |
+
### Releases
|
| 4 |
+
See release log at
|
| 5 |
+
[https://github.com/facebookresearch/detectron2/releases](https://github.com/facebookresearch/detectron2/releases).
|
| 6 |
+
|
| 7 |
+
### Notable Backward Incompatible Changes:
|
| 8 |
+
|
| 9 |
+
* 03/30/2020: Custom box head's `output_size` changed to `output_shape`.
|
| 10 |
+
* 02/14/2020,02/18/2020: Mask head and keypoint head now include logic for losses & inference. Custom heads
|
| 11 |
+
should overwrite the feature computation by `layers()` method.
|
| 12 |
+
* 11/11/2019: `detectron2.data.detection_utils.read_image` transposes images with exif information.
|
| 13 |
+
|
| 14 |
+
### Config Version Change Log
|
| 15 |
+
|
| 16 |
+
* v1: Rename `RPN_HEAD.NAME` to `RPN.HEAD_NAME`.
|
| 17 |
+
* v2: A batch of rename of many configurations before release.
|
| 18 |
+
|
| 19 |
+
### Silent Regression in Historical Versions:
|
| 20 |
+
|
| 21 |
+
We list a few silent regressions since they may silently produce incorrect results and will be hard to debug.
|
| 22 |
+
|
| 23 |
+
* 04/01/2020 - 05/11/2020: Bad accuracy if `TRAIN_ON_PRED_BOXES` is set to True.
|
| 24 |
+
* 03/30/2020 - 04/01/2020: ResNets are not correctly built.
|
| 25 |
+
* 12/19/2019 - 12/26/2019: Using aspect ratio grouping causes a drop in accuracy.
|
| 26 |
+
* release - 11/9/2019: Test time augmentation does not predict the last category.
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/notes/compatibility.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Compatibility with Other Libraries
|
| 2 |
+
|
| 3 |
+
## Compatibility with Detectron (and maskrcnn-benchmark)
|
| 4 |
+
|
| 5 |
+
Detectron2 addresses some legacy issues left in Detectron. As a result, their models
|
| 6 |
+
are not compatible:
|
| 7 |
+
running inference with the same model weights will produce different results in the two code bases.
|
| 8 |
+
|
| 9 |
+
The major differences regarding inference are:
|
| 10 |
+
|
| 11 |
+
- The height and width of a box with corners (x1, y1) and (x2, y2) is now computed more naturally as
|
| 12 |
+
width = x2 - x1 and height = y2 - y1;
|
| 13 |
+
In Detectron, a "+ 1" was added both height and width.
|
| 14 |
+
|
| 15 |
+
Note that the relevant ops in Caffe2 have [adopted this change of convention](https://github.com/pytorch/pytorch/pull/20550)
|
| 16 |
+
with an extra option.
|
| 17 |
+
So it is still possible to run inference with a Detectron2-trained model in Caffe2.
|
| 18 |
+
|
| 19 |
+
The change in height/width calculations most notably changes:
|
| 20 |
+
- encoding/decoding in bounding box regression.
|
| 21 |
+
- non-maximum suppression. The effect here is very negligible, though.
|
| 22 |
+
|
| 23 |
+
- RPN now uses simpler anchors with fewer quantization artifacts.
|
| 24 |
+
|
| 25 |
+
In Detectron, the anchors were quantized and
|
| 26 |
+
[do not have accurate areas](https://github.com/facebookresearch/Detectron/issues/227).
|
| 27 |
+
In Detectron2, the anchors are center-aligned to feature grid points and not quantized.
|
| 28 |
+
|
| 29 |
+
- Classification layers have a different ordering of class labels.
|
| 30 |
+
|
| 31 |
+
This involves any trainable parameter with shape (..., num_categories + 1, ...).
|
| 32 |
+
In Detectron2, integer labels [0, K-1] correspond to the K = num_categories object categories
|
| 33 |
+
and the label "K" corresponds to the special "background" category.
|
| 34 |
+
In Detectron, label "0" means background, and labels [1, K] correspond to the K categories.
|
| 35 |
+
|
| 36 |
+
- ROIAlign is implemented differently. The new implementation is [available in Caffe2](https://github.com/pytorch/pytorch/pull/23706).
|
| 37 |
+
|
| 38 |
+
1. All the ROIs are shifted by half a pixel compared to Detectron in order to create better image-feature-map alignment.
|
| 39 |
+
See `layers/roi_align.py` for details.
|
| 40 |
+
To enable the old behavior, use `ROIAlign(aligned=False)`, or `POOLER_TYPE=ROIAlign` instead of
|
| 41 |
+
`ROIAlignV2` (the default).
|
| 42 |
+
|
| 43 |
+
1. The ROIs are not required to have a minimum size of 1.
|
| 44 |
+
This will lead to tiny differences in the output, but should be negligible.
|
| 45 |
+
|
| 46 |
+
- Mask inference function is different.
|
| 47 |
+
|
| 48 |
+
In Detectron2, the "paste_mask" function is different and should be more accurate than in Detectron. This change
|
| 49 |
+
can improve mask AP on COCO by ~0.5% absolute.
|
| 50 |
+
|
| 51 |
+
There are some other differences in training as well, but they won't affect
|
| 52 |
+
model-level compatibility. The major ones are:
|
| 53 |
+
|
| 54 |
+
- We fixed a [bug](https://github.com/facebookresearch/Detectron/issues/459) in
|
| 55 |
+
Detectron, by making `RPN.POST_NMS_TOPK_TRAIN` per-image, rather than per-batch.
|
| 56 |
+
The fix may lead to a small accuracy drop for a few models (e.g. keypoint
|
| 57 |
+
detection) and will require some parameter tuning to match the Detectron results.
|
| 58 |
+
- For simplicity, we change the default loss in bounding box regression to L1 loss, instead of smooth L1 loss.
|
| 59 |
+
We have observed that this tends to slightly decrease box AP50 while improving box AP for higher
|
| 60 |
+
overlap thresholds (and leading to a slight overall improvement in box AP).
|
| 61 |
+
- We interpret the coordinates in COCO bounding box and segmentation annotations
|
| 62 |
+
as coordinates in range `[0, width]` or `[0, height]`. The coordinates in
|
| 63 |
+
COCO keypoint annotations are interpreted as pixel indices in range `[0, width - 1]` or `[0, height - 1]`.
|
| 64 |
+
Note that this affects how flip augmentation is implemented.
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
We will later share more details and rationale behind the above mentioned issues
|
| 68 |
+
about pixels, coordinates, and "+1"s.
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
## Compatibility with Caffe2
|
| 72 |
+
|
| 73 |
+
As mentioned above, despite the incompatibilities with Detectron, the relevant
|
| 74 |
+
ops have been implemented in Caffe2.
|
| 75 |
+
Therefore, models trained with detectron2 can be converted in Caffe2.
|
| 76 |
+
See [Deployment](../tutorials/deployment.md) for the tutorial.
|
| 77 |
+
|
| 78 |
+
## Compatibility with TensorFlow
|
| 79 |
+
|
| 80 |
+
Most ops are available in TensorFlow, although some tiny differences in
|
| 81 |
+
the implementation of resize / ROIAlign / padding need to be addressed.
|
| 82 |
+
A working conversion script is provided by [tensorpack FasterRCNN](https://github.com/tensorpack/tensorpack/tree/master/examples/FasterRCNN/convert_d2)
|
| 83 |
+
to run a standard detectron2 model in TensorFlow.
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/notes/contributing.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Contributing to detectron2
|
| 2 |
+
|
| 3 |
+
## Issues
|
| 4 |
+
We use GitHub issues to track public bugs and questions.
|
| 5 |
+
Please make sure to follow one of the
|
| 6 |
+
[issue templates](https://github.com/facebookresearch/detectron2/issues/new/choose)
|
| 7 |
+
when reporting any issues.
|
| 8 |
+
|
| 9 |
+
Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe
|
| 10 |
+
disclosure of security bugs. In those cases, please go through the process
|
| 11 |
+
outlined on that page and do not file a public issue.
|
| 12 |
+
|
| 13 |
+
## Pull Requests
|
| 14 |
+
We actively welcome your pull requests.
|
| 15 |
+
|
| 16 |
+
However, if you're adding any significant features (e.g. > 50 lines), please
|
| 17 |
+
make sure to have a corresponding issue to discuss your motivation and proposals,
|
| 18 |
+
before sending a PR. We do not always accept new features, and we take the following
|
| 19 |
+
factors into consideration:
|
| 20 |
+
|
| 21 |
+
1. Whether the same feature can be achieved without modifying detectron2.
|
| 22 |
+
Detectron2 is designed so that you can implement many extensions from the outside, e.g.
|
| 23 |
+
those in [projects](https://github.com/facebookresearch/detectron2/tree/master/projects).
|
| 24 |
+
If some part is not as extensible, you can also bring up the issue to make it more extensible.
|
| 25 |
+
2. Whether the feature is potentially useful to a large audience, or only to a small portion of users.
|
| 26 |
+
3. Whether the proposed solution has a good design / interface.
|
| 27 |
+
4. Whether the proposed solution adds extra mental/practical overhead to users who don't
|
| 28 |
+
need such feature.
|
| 29 |
+
5. Whether the proposed solution breaks existing APIs.
|
| 30 |
+
|
| 31 |
+
When sending a PR, please do:
|
| 32 |
+
|
| 33 |
+
1. If a PR contains multiple orthogonal changes, split it to several PRs.
|
| 34 |
+
2. If you've added code that should be tested, add tests.
|
| 35 |
+
3. For PRs that need experiments (e.g. adding a new model or new methods),
|
| 36 |
+
you don't need to update model zoo, but do provide experiment results in the description of the PR.
|
| 37 |
+
4. If APIs are changed, update the documentation.
|
| 38 |
+
5. Make sure your code lints with `./dev/linter.sh`.
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
## Contributor License Agreement ("CLA")
|
| 42 |
+
In order to accept your pull request, we need you to submit a CLA. You only need
|
| 43 |
+
to do this once to work on any of Facebook's open source projects.
|
| 44 |
+
|
| 45 |
+
Complete your CLA here: <https://code.facebook.com/cla>
|
| 46 |
+
|
| 47 |
+
## License
|
| 48 |
+
By contributing to detectron2, you agree that your contributions will be licensed
|
| 49 |
+
under the LICENSE file in the root directory of this source tree.
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/notes/index.rst
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Notes
|
| 2 |
+
======================================
|
| 3 |
+
|
| 4 |
+
.. toctree::
|
| 5 |
+
:maxdepth: 2
|
| 6 |
+
|
| 7 |
+
benchmarks
|
| 8 |
+
compatibility
|
| 9 |
+
contributing
|
| 10 |
+
changelog
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/README.md
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Read the docs:
|
| 2 |
+
|
| 3 |
+
The latest documentation built from this directory is available at [detectron2.readthedocs.io](https://detectron2.readthedocs.io/).
|
| 4 |
+
Documents in this directory are not meant to be read on github.
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/builtin_datasets.md
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Setup Builtin Datasets
|
| 2 |
+
|
| 3 |
+
Detectron2 has builtin support for a few datasets.
|
| 4 |
+
The datasets are assumed to exist in a directory specified by the environment variable
|
| 5 |
+
`DETECTRON2_DATASETS`.
|
| 6 |
+
Under this directory, detectron2 expects to find datasets in the structure described below.
|
| 7 |
+
|
| 8 |
+
You can set the location for builtin datasets by `export DETECTRON2_DATASETS=/path/to/datasets`.
|
| 9 |
+
If left unset, the default is `./datasets` relative to your current working directory.
|
| 10 |
+
|
| 11 |
+
The [model zoo](https://github.com/facebookresearch/detectron2/blob/master/MODEL_ZOO.md)
|
| 12 |
+
contains configs and models that use these builtin datasets.
|
| 13 |
+
|
| 14 |
+
## Expected dataset structure for COCO instance/keypoint detection:
|
| 15 |
+
|
| 16 |
+
```
|
| 17 |
+
coco/
|
| 18 |
+
annotations/
|
| 19 |
+
instances_{train,val}2017.json
|
| 20 |
+
person_keypoints_{train,val}2017.json
|
| 21 |
+
{train,val}2017/
|
| 22 |
+
# image files that are mentioned in the corresponding json
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
You can use the 2014 version of the dataset as well.
|
| 26 |
+
|
| 27 |
+
Some of the builtin tests (`dev/run_*_tests.sh`) uses a tiny version of the COCO dataset,
|
| 28 |
+
which you can download with `./prepare_for_tests.sh`.
|
| 29 |
+
|
| 30 |
+
## Expected dataset structure for PanopticFPN:
|
| 31 |
+
|
| 32 |
+
```
|
| 33 |
+
coco/
|
| 34 |
+
annotations/
|
| 35 |
+
panoptic_{train,val}2017.json
|
| 36 |
+
panoptic_{train,val}2017/ # png annotations
|
| 37 |
+
panoptic_stuff_{train,val}2017/ # generated by the script mentioned below
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
Install panopticapi by:
|
| 41 |
+
```
|
| 42 |
+
pip install git+https://github.com/cocodataset/panopticapi.git
|
| 43 |
+
```
|
| 44 |
+
Then, run `python prepare_panoptic_fpn.py`, to extract semantic annotations from panoptic annotations.
|
| 45 |
+
|
| 46 |
+
## Expected dataset structure for LVIS instance segmentation:
|
| 47 |
+
```
|
| 48 |
+
coco/
|
| 49 |
+
{train,val,test}2017/
|
| 50 |
+
lvis/
|
| 51 |
+
lvis_v0.5_{train,val}.json
|
| 52 |
+
lvis_v0.5_image_info_test.json
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
Install lvis-api by:
|
| 56 |
+
```
|
| 57 |
+
pip install git+https://github.com/lvis-dataset/lvis-api.git
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
Run `python prepare_cocofied_lvis.py` to prepare "cocofied" LVIS annotations for evaluation of models trained on the COCO dataset.
|
| 61 |
+
|
| 62 |
+
## Expected dataset structure for cityscapes:
|
| 63 |
+
```
|
| 64 |
+
cityscapes/
|
| 65 |
+
gtFine/
|
| 66 |
+
train/
|
| 67 |
+
aachen/
|
| 68 |
+
color.png, instanceIds.png, labelIds.png, polygons.json,
|
| 69 |
+
labelTrainIds.png
|
| 70 |
+
...
|
| 71 |
+
val/
|
| 72 |
+
test/
|
| 73 |
+
leftImg8bit/
|
| 74 |
+
train/
|
| 75 |
+
val/
|
| 76 |
+
test/
|
| 77 |
+
```
|
| 78 |
+
Install cityscapes scripts by:
|
| 79 |
+
```
|
| 80 |
+
pip install git+https://github.com/mcordts/cityscapesScripts.git
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
Note: labelTrainIds.png are created using cityscapesescript with:
|
| 84 |
+
```
|
| 85 |
+
CITYSCAPES_DATASET=$DETECTRON2_DATASETS/cityscapes python cityscapesscripts/preparation/createTrainIdLabelImgs.py
|
| 86 |
+
```
|
| 87 |
+
They are not needed for instance segmentation.
|
| 88 |
+
|
| 89 |
+
## Expected dataset structure for Pascal VOC:
|
| 90 |
+
```
|
| 91 |
+
VOC20{07,12}/
|
| 92 |
+
Annotations/
|
| 93 |
+
ImageSets/
|
| 94 |
+
Main/
|
| 95 |
+
trainval.txt
|
| 96 |
+
test.txt
|
| 97 |
+
# train.txt or val.txt, if you use these splits
|
| 98 |
+
JPEGImages/
|
| 99 |
+
```
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/configs.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Configs
|
| 2 |
+
|
| 3 |
+
Detectron2 provides a key-value based config system that can be
|
| 4 |
+
used to obtain standard, common behaviors.
|
| 5 |
+
|
| 6 |
+
Detectron2's config system uses YAML and [yacs](https://github.com/rbgirshick/yacs).
|
| 7 |
+
In addition to the [basic operations](../modules/config.html#detectron2.config.CfgNode)
|
| 8 |
+
that access and update a config, we provide the following extra functionalities:
|
| 9 |
+
|
| 10 |
+
1. The config can have `_BASE_: base.yaml` field, which will load a base config first.
|
| 11 |
+
Values in the base config will be overwritten in sub-configs, if there are any conflicts.
|
| 12 |
+
We provided several base configs for standard model architectures.
|
| 13 |
+
2. We provide config versioning, for backward compatibility.
|
| 14 |
+
If your config file is versioned with a config line like `VERSION: 2`,
|
| 15 |
+
detectron2 will still recognize it even if we change some keys in the future.
|
| 16 |
+
|
| 17 |
+
"Config" is a very limited abstraction.
|
| 18 |
+
We do not expect all features in detectron2 to be available through configs.
|
| 19 |
+
If you need something that's not available in the config space,
|
| 20 |
+
please write code using detectron2's API.
|
| 21 |
+
|
| 22 |
+
### Basic Usage
|
| 23 |
+
|
| 24 |
+
Some basic usage of the `CfgNode` object is shown here. See more in [documentation](../modules/config.html#detectron2.config.CfgNode).
|
| 25 |
+
```python
|
| 26 |
+
from detectron2.config import get_cfg
|
| 27 |
+
cfg = get_cfg() # obtain detectron2's default config
|
| 28 |
+
cfg.xxx = yyy # add new configs for your own custom components
|
| 29 |
+
cfg.merge_from_file("my_cfg.yaml") # load values from a file
|
| 30 |
+
|
| 31 |
+
cfg.merge_from_list(["MODEL.WEIGHTS", "weights.pth"]) # can also load values from a list of str
|
| 32 |
+
print(cfg.dump()) # print formatted configs
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
Many builtin tools in detectron2 accepts command line config overwrite:
|
| 36 |
+
Key-value pairs provided in the command line will overwrite the existing values in the config file.
|
| 37 |
+
For example, [demo.py](../../demo/demo.py) can be used with
|
| 38 |
+
```
|
| 39 |
+
./demo.py --config-file config.yaml [--other-options] \
|
| 40 |
+
--opts MODEL.WEIGHTS /path/to/weights INPUT.MIN_SIZE_TEST 1000
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
To see a list of available configs in detectron2 and what they mean,
|
| 44 |
+
check [Config References](../modules/config.html#config-references)
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
### Best Practice with Configs
|
| 48 |
+
|
| 49 |
+
1. Treat the configs you write as "code": avoid copying them or duplicating them; use `_BASE_`
|
| 50 |
+
to share common parts between configs.
|
| 51 |
+
|
| 52 |
+
2. Keep the configs you write simple: don't include keys that do not affect the experimental setting.
|
| 53 |
+
|
| 54 |
+
3. Keep a version number in your configs (or the base config), e.g., `VERSION: 2`,
|
| 55 |
+
for backward compatibility.
|
| 56 |
+
We print a warning when reading a config without version number.
|
| 57 |
+
The official configs do not include version number because they are meant to
|
| 58 |
+
be always up-to-date.
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/data_loading.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# Use Custom Dataloaders
|
| 3 |
+
|
| 4 |
+
## How the Existing Dataloader Works
|
| 5 |
+
|
| 6 |
+
Detectron2 contains a builtin data loading pipeline.
|
| 7 |
+
It's good to understand how it works, in case you need to write a custom one.
|
| 8 |
+
|
| 9 |
+
Detectron2 provides two functions
|
| 10 |
+
[build_detection_{train,test}_loader](../modules/data.html#detectron2.data.build_detection_train_loader)
|
| 11 |
+
that create a default data loader from a given config.
|
| 12 |
+
Here is how `build_detection_{train,test}_loader` work:
|
| 13 |
+
|
| 14 |
+
1. It takes the name of a registered dataset (e.g., "coco_2017_train") and loads a `list[dict]` representing the dataset items
|
| 15 |
+
in a lightweight, canonical format. These dataset items are not yet ready to be used by the model (e.g., images are
|
| 16 |
+
not loaded into memory, random augmentations have not been applied, etc.).
|
| 17 |
+
Details about the dataset format and dataset registration can be found in
|
| 18 |
+
[datasets](./datasets.md).
|
| 19 |
+
2. Each dict in this list is mapped by a function ("mapper"):
|
| 20 |
+
* Users can customize this mapping function by specifying the "mapper" argument in
|
| 21 |
+
`build_detection_{train,test}_loader`. The default mapper is [DatasetMapper](../modules/data.html#detectron2.data.DatasetMapper).
|
| 22 |
+
* The output format of such function can be arbitrary, as long as it is accepted by the consumer of this data loader (usually the model).
|
| 23 |
+
The outputs of the default mapper, after batching, follow the default model input format documented in
|
| 24 |
+
[Use Models](./models.html#model-input-format).
|
| 25 |
+
* The role of the mapper is to transform the lightweight, canonical representation of a dataset item into a format
|
| 26 |
+
that is ready for the model to consume (including, e.g., read images, perform random data augmentation and convert to torch Tensors).
|
| 27 |
+
If you would like to perform custom transformations to data, you often want a custom mapper.
|
| 28 |
+
3. The outputs of the mapper are batched (simply into a list).
|
| 29 |
+
4. This batched data is the output of the data loader. Typically, it's also the input of
|
| 30 |
+
`model.forward()`.
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
## Write a Custom Dataloader
|
| 34 |
+
|
| 35 |
+
Using a different "mapper" with `build_detection_{train,test}_loader(mapper=)` works for most use cases
|
| 36 |
+
of custom data loading.
|
| 37 |
+
For example, if you want to resize all images to a fixed size for Mask R-CNN training, write this:
|
| 38 |
+
|
| 39 |
+
```python
|
| 40 |
+
from detectron2.data import build_detection_train_loader
|
| 41 |
+
from detectron2.data import transforms as T
|
| 42 |
+
from detectron2.data import detection_utils as utils
|
| 43 |
+
|
| 44 |
+
def mapper(dataset_dict):
|
| 45 |
+
# Implement a mapper, similar to the default DatasetMapper, but with your own customizations
|
| 46 |
+
dataset_dict = copy.deepcopy(dataset_dict) # it will be modified by code below
|
| 47 |
+
image = utils.read_image(dataset_dict["file_name"], format="BGR")
|
| 48 |
+
image, transforms = T.apply_transform_gens([T.Resize((800, 800))], image)
|
| 49 |
+
dataset_dict["image"] = torch.as_tensor(image.transpose(2, 0, 1).astype("float32"))
|
| 50 |
+
|
| 51 |
+
annos = [
|
| 52 |
+
utils.transform_instance_annotations(obj, transforms, image.shape[:2])
|
| 53 |
+
for obj in dataset_dict.pop("annotations")
|
| 54 |
+
if obj.get("iscrowd", 0) == 0
|
| 55 |
+
]
|
| 56 |
+
instances = utils.annotations_to_instances(annos, image.shape[:2])
|
| 57 |
+
dataset_dict["instances"] = utils.filter_empty_instances(instances)
|
| 58 |
+
return dataset_dict
|
| 59 |
+
|
| 60 |
+
data_loader = build_detection_train_loader(cfg, mapper=mapper)
|
| 61 |
+
# use this dataloader instead of the default
|
| 62 |
+
```
|
| 63 |
+
Refer to [API documentation of detectron2.data](../modules/data) for details.
|
| 64 |
+
|
| 65 |
+
If you want to change not only the mapper (e.g., to write different sampling or batching logic),
|
| 66 |
+
you can write your own data loader. The data loader is simply a
|
| 67 |
+
python iterator that produces [the format](./models.md) your model accepts.
|
| 68 |
+
You can implement it using any tools you like.
|
| 69 |
+
|
| 70 |
+
## Use a Custom Dataloader
|
| 71 |
+
|
| 72 |
+
If you use [DefaultTrainer](../modules/engine.html#detectron2.engine.defaults.DefaultTrainer),
|
| 73 |
+
you can overwrite its `build_{train,test}_loader` method to use your own dataloader.
|
| 74 |
+
See the [densepose dataloader](../../projects/DensePose/train_net.py)
|
| 75 |
+
for an example.
|
| 76 |
+
|
| 77 |
+
If you write your own training loop, you can plug in your data loader easily.
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/datasets.md
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use Custom Datasets
|
| 2 |
+
|
| 3 |
+
Datasets that have builtin support in detectron2 are listed in [datasets](../../datasets).
|
| 4 |
+
If you want to use a custom dataset while also reusing detectron2's data loaders,
|
| 5 |
+
you will need to
|
| 6 |
+
|
| 7 |
+
1. __Register__ your dataset (i.e., tell detectron2 how to obtain your dataset).
|
| 8 |
+
2. Optionally, __register metadata__ for your dataset.
|
| 9 |
+
|
| 10 |
+
Next, we explain the above two concepts in detail.
|
| 11 |
+
|
| 12 |
+
The [Colab tutorial](https://colab.research.google.com/drive/16jcaJoc6bCFAQ96jDe2HwtXj7BMD_-m5)
|
| 13 |
+
has a live example of how to register and train on a dataset of custom formats.
|
| 14 |
+
|
| 15 |
+
### Register a Dataset
|
| 16 |
+
|
| 17 |
+
To let detectron2 know how to obtain a dataset named "my_dataset", you will implement
|
| 18 |
+
a function that returns the items in your dataset and then tell detectron2 about this
|
| 19 |
+
function:
|
| 20 |
+
```python
|
| 21 |
+
def my_dataset_function():
|
| 22 |
+
...
|
| 23 |
+
return list[dict] in the following format
|
| 24 |
+
|
| 25 |
+
from detectron2.data import DatasetCatalog
|
| 26 |
+
DatasetCatalog.register("my_dataset", my_dataset_function)
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
Here, the snippet associates a dataset "my_dataset" with a function that returns the data.
|
| 30 |
+
The registration stays effective until the process exists.
|
| 31 |
+
|
| 32 |
+
The function can processes data from its original format into either one of the following:
|
| 33 |
+
1. Detectron2's standard dataset dict, described below. This will work with many other builtin
|
| 34 |
+
features in detectron2, so it's recommended to use it when it's sufficient for your task.
|
| 35 |
+
2. Your custom dataset dict. You can also return arbitrary dicts in your own format,
|
| 36 |
+
such as adding extra keys for new tasks.
|
| 37 |
+
Then you will need to handle them properly downstream as well.
|
| 38 |
+
See below for more details.
|
| 39 |
+
|
| 40 |
+
#### Standard Dataset Dicts
|
| 41 |
+
|
| 42 |
+
For standard tasks
|
| 43 |
+
(instance detection, instance/semantic/panoptic segmentation, keypoint detection),
|
| 44 |
+
we load the original dataset into `list[dict]` with a specification similar to COCO's json annotations.
|
| 45 |
+
This is our standard representation for a dataset.
|
| 46 |
+
|
| 47 |
+
Each dict contains information about one image.
|
| 48 |
+
The dict may have the following fields,
|
| 49 |
+
and the required fields vary based on what the dataloader or the task needs (see more below).
|
| 50 |
+
|
| 51 |
+
+ `file_name`: the full path to the image file. Will apply rotation and flipping if the image has such exif information.
|
| 52 |
+
+ `height`, `width`: integer. The shape of image.
|
| 53 |
+
+ `image_id` (str or int): a unique id that identifies this image. Used
|
| 54 |
+
during evaluation to identify the images, but a dataset may use it for different purposes.
|
| 55 |
+
+ `annotations` (list[dict]): each dict corresponds to annotations of one instance
|
| 56 |
+
in this image. Required by instance detection/segmentation or keypoint detection tasks.
|
| 57 |
+
|
| 58 |
+
Images with empty `annotations` will by default be removed from training,
|
| 59 |
+
but can be included using `DATALOADER.FILTER_EMPTY_ANNOTATIONS`.
|
| 60 |
+
|
| 61 |
+
Each dict contains the following keys, of which `bbox`,`bbox_mode` and `category_id` are required:
|
| 62 |
+
+ `bbox` (list[float]): list of 4 numbers representing the bounding box of the instance.
|
| 63 |
+
+ `bbox_mode` (int): the format of bbox.
|
| 64 |
+
It must be a member of
|
| 65 |
+
[structures.BoxMode](../modules/structures.html#detectron2.structures.BoxMode).
|
| 66 |
+
Currently supports: `BoxMode.XYXY_ABS`, `BoxMode.XYWH_ABS`.
|
| 67 |
+
+ `category_id` (int): an integer in the range [0, num_categories) representing the category label.
|
| 68 |
+
The value num_categories is reserved to represent the "background" category, if applicable.
|
| 69 |
+
+ `segmentation` (list[list[float]] or dict): the segmentation mask of the instance.
|
| 70 |
+
+ If `list[list[float]]`, it represents a list of polygons, one for each connected component
|
| 71 |
+
of the object. Each `list[float]` is one simple polygon in the format of `[x1, y1, ..., xn, yn]`.
|
| 72 |
+
The Xs and Ys are either relative coordinates in [0, 1], or absolute coordinates,
|
| 73 |
+
depend on whether "bbox_mode" is relative.
|
| 74 |
+
+ If `dict`, it represents the per-pixel segmentation mask in COCO's RLE format. The dict should have
|
| 75 |
+
keys "size" and "counts". You can convert a uint8 segmentation mask of 0s and 1s into
|
| 76 |
+
RLE format by `pycocotools.mask.encode(np.asarray(mask, order="F"))`.
|
| 77 |
+
+ `keypoints` (list[float]): in the format of [x1, y1, v1,..., xn, yn, vn].
|
| 78 |
+
v[i] means the [visibility](http://cocodataset.org/#format-data) of this keypoint.
|
| 79 |
+
`n` must be equal to the number of keypoint categories.
|
| 80 |
+
The Xs and Ys are either relative coordinates in [0, 1], or absolute coordinates,
|
| 81 |
+
depend on whether "bbox_mode" is relative.
|
| 82 |
+
|
| 83 |
+
Note that the coordinate annotations in COCO format are integers in range [0, H-1 or W-1].
|
| 84 |
+
By default, detectron2 adds 0.5 to absolute keypoint coordinates to convert them from discrete
|
| 85 |
+
pixel indices to floating point coordinates.
|
| 86 |
+
+ `iscrowd`: 0 (default) or 1. Whether this instance is labeled as COCO's "crowd
|
| 87 |
+
region". Don't include this field if you don't know what it means.
|
| 88 |
+
+ `sem_seg_file_name`: the full path to the ground truth semantic segmentation file.
|
| 89 |
+
Required by semantic segmentation task.
|
| 90 |
+
It should be an image whose pixel values are integer labels.
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
Fast R-CNN (with precomputed proposals) is rarely used today.
|
| 94 |
+
To train a Fast R-CNN, the following extra keys are needed:
|
| 95 |
+
|
| 96 |
+
+ `proposal_boxes` (array): 2D numpy array with shape (K, 4) representing K precomputed proposal boxes for this image.
|
| 97 |
+
+ `proposal_objectness_logits` (array): numpy array with shape (K, ), which corresponds to the objectness
|
| 98 |
+
logits of proposals in 'proposal_boxes'.
|
| 99 |
+
+ `proposal_bbox_mode` (int): the format of the precomputed proposal bbox.
|
| 100 |
+
It must be a member of
|
| 101 |
+
[structures.BoxMode](../modules/structures.html#detectron2.structures.BoxMode).
|
| 102 |
+
Default is `BoxMode.XYXY_ABS`.
|
| 103 |
+
|
| 104 |
+
#### Custom Dataset Dicts for New Tasks
|
| 105 |
+
|
| 106 |
+
In the `list[dict]` that your dataset function returns, the dictionary can also have arbitrary custom data.
|
| 107 |
+
This will be useful for a new task that needs extra information not supported
|
| 108 |
+
by the standard dataset dicts. In this case, you need to make sure the downstream code can handle your data
|
| 109 |
+
correctly. Usually this requires writing a new `mapper` for the dataloader (see [Use Custom Dataloaders](./data_loading.md)).
|
| 110 |
+
|
| 111 |
+
When designing a custom format, note that all dicts are stored in memory
|
| 112 |
+
(sometimes serialized and with multiple copies).
|
| 113 |
+
To save memory, each dict is meant to contain small but sufficient information
|
| 114 |
+
about each sample, such as file names and annotations.
|
| 115 |
+
Loading full samples typically happens in the data loader.
|
| 116 |
+
|
| 117 |
+
For attributes shared among the entire dataset, use `Metadata` (see below).
|
| 118 |
+
To avoid extra memory, do not save such information repeatly for each sample.
|
| 119 |
+
|
| 120 |
+
### "Metadata" for Datasets
|
| 121 |
+
|
| 122 |
+
Each dataset is associated with some metadata, accessible through
|
| 123 |
+
`MetadataCatalog.get(dataset_name).some_metadata`.
|
| 124 |
+
Metadata is a key-value mapping that contains information that's shared among
|
| 125 |
+
the entire dataset, and usually is used to interpret what's in the dataset, e.g.,
|
| 126 |
+
names of classes, colors of classes, root of files, etc.
|
| 127 |
+
This information will be useful for augmentation, evaluation, visualization, logging, etc.
|
| 128 |
+
The structure of metadata depends on the what is needed from the corresponding downstream code.
|
| 129 |
+
|
| 130 |
+
If you register a new dataset through `DatasetCatalog.register`,
|
| 131 |
+
you may also want to add its corresponding metadata through
|
| 132 |
+
`MetadataCatalog.get(dataset_name).some_key = some_value`, to enable any features that need the metadata.
|
| 133 |
+
You can do it like this (using the metadata key "thing_classes" as an example):
|
| 134 |
+
|
| 135 |
+
```python
|
| 136 |
+
from detectron2.data import MetadataCatalog
|
| 137 |
+
MetadataCatalog.get("my_dataset").thing_classes = ["person", "dog"]
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
+
Here is a list of metadata keys that are used by builtin features in detectron2.
|
| 141 |
+
If you add your own dataset without these metadata, some features may be
|
| 142 |
+
unavailable to you:
|
| 143 |
+
|
| 144 |
+
* `thing_classes` (list[str]): Used by all instance detection/segmentation tasks.
|
| 145 |
+
A list of names for each instance/thing category.
|
| 146 |
+
If you load a COCO format dataset, it will be automatically set by the function `load_coco_json`.
|
| 147 |
+
|
| 148 |
+
* `thing_colors` (list[tuple(r, g, b)]): Pre-defined color (in [0, 255]) for each thing category.
|
| 149 |
+
Used for visualization. If not given, random colors are used.
|
| 150 |
+
|
| 151 |
+
* `stuff_classes` (list[str]): Used by semantic and panoptic segmentation tasks.
|
| 152 |
+
A list of names for each stuff category.
|
| 153 |
+
|
| 154 |
+
* `stuff_colors` (list[tuple(r, g, b)]): Pre-defined color (in [0, 255]) for each stuff category.
|
| 155 |
+
Used for visualization. If not given, random colors are used.
|
| 156 |
+
|
| 157 |
+
* `keypoint_names` (list[str]): Used by keypoint localization. A list of names for each keypoint.
|
| 158 |
+
|
| 159 |
+
* `keypoint_flip_map` (list[tuple[str]]): Used by the keypoint localization task. A list of pairs of names,
|
| 160 |
+
where each pair are the two keypoints that should be flipped if the image is
|
| 161 |
+
flipped horizontally during augmentation.
|
| 162 |
+
* `keypoint_connection_rules`: list[tuple(str, str, (r, g, b))]. Each tuple specifies a pair of keypoints
|
| 163 |
+
that are connected and the color to use for the line between them when visualized.
|
| 164 |
+
|
| 165 |
+
Some additional metadata that are specific to the evaluation of certain datasets (e.g. COCO):
|
| 166 |
+
|
| 167 |
+
* `thing_dataset_id_to_contiguous_id` (dict[int->int]): Used by all instance detection/segmentation tasks in the COCO format.
|
| 168 |
+
A mapping from instance class ids in the dataset to contiguous ids in range [0, #class).
|
| 169 |
+
Will be automatically set by the function `load_coco_json`.
|
| 170 |
+
|
| 171 |
+
* `stuff_dataset_id_to_contiguous_id` (dict[int->int]): Used when generating prediction json files for
|
| 172 |
+
semantic/panoptic segmentation.
|
| 173 |
+
A mapping from semantic segmentation class ids in the dataset
|
| 174 |
+
to contiguous ids in [0, num_categories). It is useful for evaluation only.
|
| 175 |
+
|
| 176 |
+
* `json_file`: The COCO annotation json file. Used by COCO evaluation for COCO-format datasets.
|
| 177 |
+
* `panoptic_root`, `panoptic_json`: Used by panoptic evaluation.
|
| 178 |
+
* `evaluator_type`: Used by the builtin main training script to select
|
| 179 |
+
evaluator. Don't use it in a new training script.
|
| 180 |
+
You can just provide the [DatasetEvaluator](../modules/evaluation.html#detectron2.evaluation.DatasetEvaluator)
|
| 181 |
+
for your dataset directly in your main script.
|
| 182 |
+
|
| 183 |
+
NOTE: For background on the concept of "thing" and "stuff", see
|
| 184 |
+
[On Seeing Stuff: The Perception of Materials by Humans and Machines](http://persci.mit.edu/pub_pdfs/adelson_spie_01.pdf).
|
| 185 |
+
In detectron2, the term "thing" is used for instance-level tasks,
|
| 186 |
+
and "stuff" is used for semantic segmentation tasks.
|
| 187 |
+
Both are used in panoptic segmentation.
|
| 188 |
+
|
| 189 |
+
### Register a COCO Format Dataset
|
| 190 |
+
|
| 191 |
+
If your dataset is already a json file in the COCO format,
|
| 192 |
+
the dataset and its associated metadata can be registered easily with:
|
| 193 |
+
```python
|
| 194 |
+
from detectron2.data.datasets import register_coco_instances
|
| 195 |
+
register_coco_instances("my_dataset", {}, "json_annotation.json", "path/to/image/dir")
|
| 196 |
+
```
|
| 197 |
+
|
| 198 |
+
If your dataset is in COCO format but with extra custom per-instance annotations,
|
| 199 |
+
the [load_coco_json](../modules/data.html#detectron2.data.datasets.load_coco_json)
|
| 200 |
+
function might be useful.
|
| 201 |
+
|
| 202 |
+
### Update the Config for New Datasets
|
| 203 |
+
|
| 204 |
+
Once you've registered the dataset, you can use the name of the dataset (e.g., "my_dataset" in
|
| 205 |
+
example above) in `cfg.DATASETS.{TRAIN,TEST}`.
|
| 206 |
+
There are other configs you might want to change to train or evaluate on new datasets:
|
| 207 |
+
|
| 208 |
+
* `MODEL.ROI_HEADS.NUM_CLASSES` and `MODEL.RETINANET.NUM_CLASSES` are the number of thing classes
|
| 209 |
+
for R-CNN and RetinaNet models, respectively.
|
| 210 |
+
* `MODEL.ROI_KEYPOINT_HEAD.NUM_KEYPOINTS` sets the number of keypoints for Keypoint R-CNN.
|
| 211 |
+
You'll also need to set [Keypoint OKS](http://cocodataset.org/#keypoints-eval)
|
| 212 |
+
with `TEST.KEYPOINT_OKS_SIGMAS` for evaluation.
|
| 213 |
+
* `MODEL.SEM_SEG_HEAD.NUM_CLASSES` sets the number of stuff classes for Semantic FPN & Panoptic FPN.
|
| 214 |
+
* If you're training Fast R-CNN (with precomputed proposals), `DATASETS.PROPOSAL_FILES_{TRAIN,TEST}`
|
| 215 |
+
need to match the datasets. The format of proposal files are documented
|
| 216 |
+
[here](../modules/data.html#detectron2.data.load_proposals_into_dataset).
|
| 217 |
+
|
| 218 |
+
New models
|
| 219 |
+
(e.g. [TensorMask](../../projects/TensorMask),
|
| 220 |
+
[PointRend](../../projects/PointRend))
|
| 221 |
+
often have similar configs of their own that need to be changed as well.
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/deployment.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Deployment
|
| 2 |
+
|
| 3 |
+
## Caffe2 Deployment
|
| 4 |
+
We currently support converting a detectron2 model to Caffe2 format through ONNX.
|
| 5 |
+
The converted Caffe2 model is able to run without detectron2 dependency in either Python or C++.
|
| 6 |
+
It has a runtime optimized for CPU & mobile inference, but not for GPU inference.
|
| 7 |
+
|
| 8 |
+
Caffe2 conversion requires PyTorch ≥ 1.4 and ONNX ≥ 1.6.
|
| 9 |
+
|
| 10 |
+
### Coverage
|
| 11 |
+
|
| 12 |
+
It supports 3 most common meta architectures: `GeneralizedRCNN`, `RetinaNet`, `PanopticFPN`,
|
| 13 |
+
and most official models under these 3 meta architectures.
|
| 14 |
+
|
| 15 |
+
Users' custom extensions under these architectures (added through registration) are supported
|
| 16 |
+
as long as they do not contain control flow or operators not available in Caffe2 (e.g. deformable convolution).
|
| 17 |
+
For example, custom backbones and heads are often supported out of the box.
|
| 18 |
+
|
| 19 |
+
### Usage
|
| 20 |
+
|
| 21 |
+
The conversion APIs are documented at [the API documentation](../modules/export).
|
| 22 |
+
We provide a tool, `caffe2_converter.py` as an example that uses
|
| 23 |
+
these APIs to convert a standard model.
|
| 24 |
+
|
| 25 |
+
To convert an official Mask R-CNN trained on COCO, first
|
| 26 |
+
[prepare the COCO dataset](../../datasets/), then pick the model from [Model Zoo](../../MODEL_ZOO.md), and run:
|
| 27 |
+
```
|
| 28 |
+
cd tools/deploy/ && ./caffe2_converter.py --config-file ../../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml \
|
| 29 |
+
--output ./caffe2_model --run-eval \
|
| 30 |
+
MODEL.WEIGHTS detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl \
|
| 31 |
+
MODEL.DEVICE cpu
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
Note that:
|
| 35 |
+
1. The conversion needs valid sample inputs & weights to trace the model. That's why the script requires the dataset.
|
| 36 |
+
You can modify the script to obtain sample inputs in other ways.
|
| 37 |
+
2. With the `--run-eval` flag, it will evaluate the converted models to verify its accuracy.
|
| 38 |
+
The accuracy is typically slightly different (within 0.1 AP) from PyTorch due to
|
| 39 |
+
numerical precisions between different implementations.
|
| 40 |
+
It's recommended to always verify the accuracy in case your custom model is not supported by the
|
| 41 |
+
conversion.
|
| 42 |
+
|
| 43 |
+
The converted model is available at the specified `caffe2_model/` directory. Two files `model.pb`
|
| 44 |
+
and `model_init.pb` that contain network structure and network parameters are necessary for deployment.
|
| 45 |
+
These files can then be loaded in C++ or Python using Caffe2's APIs.
|
| 46 |
+
|
| 47 |
+
The script generates `model.svg` file which contains a visualization of the network.
|
| 48 |
+
You can also load `model.pb` to tools such as [netron](https://github.com/lutzroeder/netron) to visualize it.
|
| 49 |
+
|
| 50 |
+
### Use the model in C++/Python
|
| 51 |
+
|
| 52 |
+
The model can be loaded in C++. An example [caffe2_mask_rcnn.cpp](../../tools/deploy/) is given,
|
| 53 |
+
which performs CPU/GPU inference using `COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x`.
|
| 54 |
+
|
| 55 |
+
The C++ example needs to be built with:
|
| 56 |
+
* PyTorch with caffe2 inside
|
| 57 |
+
* gflags, glog, opencv
|
| 58 |
+
* protobuf headers that match the version of your caffe2
|
| 59 |
+
* MKL headers if caffe2 is built with MKL
|
| 60 |
+
|
| 61 |
+
The following can compile the example inside [official detectron2 docker](../../docker/):
|
| 62 |
+
```
|
| 63 |
+
sudo apt update && sudo apt install libgflags-dev libgoogle-glog-dev libopencv-dev
|
| 64 |
+
pip install mkl-include
|
| 65 |
+
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.6.1/protobuf-cpp-3.6.1.tar.gz
|
| 66 |
+
tar xf protobuf-cpp-3.6.1.tar.gz
|
| 67 |
+
export CPATH=$(readlink -f ./protobuf-3.6.1/src/):$HOME/.local/include
|
| 68 |
+
export CMAKE_PREFIX_PATH=$HOME/.local/lib/python3.6/site-packages/torch/
|
| 69 |
+
mkdir build && cd build
|
| 70 |
+
cmake -DTORCH_CUDA_ARCH_LIST=$TORCH_CUDA_ARCH_LIST .. && make
|
| 71 |
+
|
| 72 |
+
# To run:
|
| 73 |
+
./caffe2_mask_rcnn --predict_net=./model.pb --init_net=./model_init.pb --input=input.jpg
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
Note that:
|
| 77 |
+
|
| 78 |
+
* All converted models (the .pb files) take two input tensors:
|
| 79 |
+
"data" is an NCHW image, and "im_info" is an Nx3 tensor consisting of (height, width, 1.0) for
|
| 80 |
+
each image (the shape of "data" might be larger than that in "im_info" due to padding).
|
| 81 |
+
|
| 82 |
+
* The converted models do not contain post-processing operations that
|
| 83 |
+
transform raw layer outputs into formatted predictions.
|
| 84 |
+
The example only produces raw outputs (28x28 masks) from the final
|
| 85 |
+
layers that are not post-processed, because in actual deployment, an application often needs
|
| 86 |
+
its custom lightweight post-processing (e.g. full-image masks for every detected object is often not necessary).
|
| 87 |
+
|
| 88 |
+
We also provide a python wrapper around the converted model, in the
|
| 89 |
+
[Caffe2Model.\_\_call\_\_](../modules/export.html#detectron2.export.Caffe2Model.__call__) method.
|
| 90 |
+
This method has an interface that's identical to the [pytorch versions of models](./models.md),
|
| 91 |
+
and it internally applies pre/post-processing code to match the formats.
|
| 92 |
+
They can serve as a reference for pre/post-processing in actual deployment.
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/evaluation.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# Evaluation
|
| 3 |
+
|
| 4 |
+
Evaluation is a process that takes a number of inputs/outputs pairs and aggregate them.
|
| 5 |
+
You can always [use the model](./models.md) directly and just parse its inputs/outputs manually to perform
|
| 6 |
+
evaluation.
|
| 7 |
+
Alternatively, evaluation is implemented in detectron2 using the [DatasetEvaluator](../modules/evaluation.html#detectron2.evaluation.DatasetEvaluator)
|
| 8 |
+
interface.
|
| 9 |
+
|
| 10 |
+
Detectron2 includes a few `DatasetEvaluator` that computes metrics using standard dataset-specific
|
| 11 |
+
APIs (e.g., COCO, LVIS).
|
| 12 |
+
You can also implement your own `DatasetEvaluator` that performs some other jobs
|
| 13 |
+
using the inputs/outputs pairs.
|
| 14 |
+
For example, to count how many instances are detected on the validation set:
|
| 15 |
+
|
| 16 |
+
```
|
| 17 |
+
class Counter(DatasetEvaluator):
|
| 18 |
+
def reset(self):
|
| 19 |
+
self.count = 0
|
| 20 |
+
def process(self, inputs, outputs):
|
| 21 |
+
for output in outputs:
|
| 22 |
+
self.count += len(output["instances"])
|
| 23 |
+
def evaluate(self):
|
| 24 |
+
# save self.count somewhere, or print it, or return it.
|
| 25 |
+
return {"count": self.count}
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
Once you have some `DatasetEvaluator`, you can run it with
|
| 29 |
+
[inference_on_dataset](../modules/evaluation.html#detectron2.evaluation.inference_on_dataset).
|
| 30 |
+
For example,
|
| 31 |
+
|
| 32 |
+
```python
|
| 33 |
+
val_results = inference_on_dataset(
|
| 34 |
+
model,
|
| 35 |
+
val_data_loader,
|
| 36 |
+
DatasetEvaluators([COCOEvaluator(...), Counter()]))
|
| 37 |
+
```
|
| 38 |
+
Compared to running the evaluation manually using the model, the benefit of this function is that
|
| 39 |
+
you can merge evaluators together using [DatasetEvaluators](../modules/evaluation.html#detectron2.evaluation.DatasetEvaluators).
|
| 40 |
+
In this way you can run all evaluations without having to go through the dataset multiple times.
|
| 41 |
+
|
| 42 |
+
The `inference_on_dataset` function also provides accurate speed benchmarks for the
|
| 43 |
+
given model and dataset.
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/extend.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Extend Detectron2's Defaults
|
| 2 |
+
|
| 3 |
+
__Research is about doing things in new ways__.
|
| 4 |
+
This brings a tension in how to create abstractions in code,
|
| 5 |
+
which is a challenge for any research engineering project of a significant size:
|
| 6 |
+
|
| 7 |
+
1. On one hand, it needs to have very thin abstractions to allow for the possibility of doing
|
| 8 |
+
everything in new ways. It should be reasonably easy to break existing
|
| 9 |
+
abstractions and replace them with new ones.
|
| 10 |
+
|
| 11 |
+
2. On the other hand, such a project also needs reasonably high-level
|
| 12 |
+
abstractions, so that users can easily do things in standard ways,
|
| 13 |
+
without worrying too much about the details that only certain researchers care about.
|
| 14 |
+
|
| 15 |
+
In detectron2, there are two types of interfaces that address this tension together:
|
| 16 |
+
|
| 17 |
+
1. Functions and classes that take a config (`cfg`) argument
|
| 18 |
+
(sometimes with only a few extra arguments).
|
| 19 |
+
|
| 20 |
+
Such functions and classes implement
|
| 21 |
+
the "standard default" behavior: it will read what it needs from the
|
| 22 |
+
config and do the "standard" thing.
|
| 23 |
+
Users only need to load a given config and pass it around, without having to worry about
|
| 24 |
+
which arguments are used and what they all mean.
|
| 25 |
+
|
| 26 |
+
2. Functions and classes that have well-defined explicit arguments.
|
| 27 |
+
|
| 28 |
+
Each of these is a small building block of the entire system.
|
| 29 |
+
They require users' expertise to understand what each argument should be,
|
| 30 |
+
and require more effort to stitch together to a larger system.
|
| 31 |
+
But they can be stitched together in more flexible ways.
|
| 32 |
+
|
| 33 |
+
When you need to implement something not supported by the "standard defaults"
|
| 34 |
+
included in detectron2, these well-defined components can be reused.
|
| 35 |
+
|
| 36 |
+
3. (experimental) A few classes are implemented with the
|
| 37 |
+
[@configurable](../../modules/config.html#detectron2.config.configurable)
|
| 38 |
+
decorator - they can be called with either a config, or with explicit arguments.
|
| 39 |
+
Their explicit argument interfaces are currently __experimental__ and subject to change.
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
If you only need the standard behavior, the [Beginner's Tutorial](./getting_started.md)
|
| 43 |
+
should suffice. If you need to extend detectron2 to your own needs,
|
| 44 |
+
see the following tutorials for more details:
|
| 45 |
+
|
| 46 |
+
* Detectron2 includes a few standard datasets. To use custom ones, see
|
| 47 |
+
[Use Custom Datasets](./datasets.md).
|
| 48 |
+
* Detectron2 contains the standard logic that creates a data loader for training/testing from a
|
| 49 |
+
dataset, but you can write your own as well. See [Use Custom Data Loaders](./data_loading.md).
|
| 50 |
+
* Detectron2 implements many standard detection models, and provide ways for you
|
| 51 |
+
to overwrite their behaviors. See [Use Models](./models.md) and [Write Models](./write-models.md).
|
| 52 |
+
* Detectron2 provides a default training loop that is good for common training tasks.
|
| 53 |
+
You can customize it with hooks, or write your own loop instead. See [training](./training.md).
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/getting_started.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Getting Started with Detectron2
|
| 2 |
+
|
| 3 |
+
This document provides a brief intro of the usage of builtin command-line tools in detectron2.
|
| 4 |
+
|
| 5 |
+
For a tutorial that involves actual coding with the API,
|
| 6 |
+
see our [Colab Notebook](https://colab.research.google.com/drive/16jcaJoc6bCFAQ96jDe2HwtXj7BMD_-m5)
|
| 7 |
+
which covers how to run inference with an
|
| 8 |
+
existing model, and how to train a builtin model on a custom dataset.
|
| 9 |
+
|
| 10 |
+
For more advanced tutorials, refer to our [documentation](https://detectron2.readthedocs.io/tutorials/extend.html).
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
### Inference Demo with Pre-trained Models
|
| 14 |
+
|
| 15 |
+
1. Pick a model and its config file from
|
| 16 |
+
[model zoo](MODEL_ZOO.md),
|
| 17 |
+
for example, `mask_rcnn_R_50_FPN_3x.yaml`.
|
| 18 |
+
2. We provide `demo.py` that is able to run builtin standard models. Run it with:
|
| 19 |
+
```
|
| 20 |
+
cd demo/
|
| 21 |
+
python demo.py --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml \
|
| 22 |
+
--input input1.jpg input2.jpg \
|
| 23 |
+
[--other-options]
|
| 24 |
+
--opts MODEL.WEIGHTS detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl
|
| 25 |
+
```
|
| 26 |
+
The configs are made for training, therefore we need to specify `MODEL.WEIGHTS` to a model from model zoo for evaluation.
|
| 27 |
+
This command will run the inference and show visualizations in an OpenCV window.
|
| 28 |
+
|
| 29 |
+
For details of the command line arguments, see `demo.py -h` or look at its source code
|
| 30 |
+
to understand its behavior. Some common arguments are:
|
| 31 |
+
* To run __on your webcam__, replace `--input files` with `--webcam`.
|
| 32 |
+
* To run __on a video__, replace `--input files` with `--video-input video.mp4`.
|
| 33 |
+
* To run __on cpu__, add `MODEL.DEVICE cpu` after `--opts`.
|
| 34 |
+
* To save outputs to a directory (for images) or a file (for webcam or video), use `--output`.
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
### Training & Evaluation in Command Line
|
| 38 |
+
|
| 39 |
+
We provide a script in "tools/{,plain_}train_net.py", that is made to train
|
| 40 |
+
all the configs provided in detectron2.
|
| 41 |
+
You may want to use it as a reference to write your own training script.
|
| 42 |
+
|
| 43 |
+
To train a model with "train_net.py", first
|
| 44 |
+
setup the corresponding datasets following
|
| 45 |
+
[datasets/README.md](./datasets/README.md),
|
| 46 |
+
then run:
|
| 47 |
+
```
|
| 48 |
+
cd tools/
|
| 49 |
+
./train_net.py --num-gpus 8 \
|
| 50 |
+
--config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
The configs are made for 8-GPU training.
|
| 54 |
+
To train on 1 GPU, you may need to [change some parameters](https://arxiv.org/abs/1706.02677), e.g.:
|
| 55 |
+
```
|
| 56 |
+
./train_net.py \
|
| 57 |
+
--config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml \
|
| 58 |
+
--num-gpus 1 SOLVER.IMS_PER_BATCH 2 SOLVER.BASE_LR 0.0025
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
For most models, CPU training is not supported.
|
| 62 |
+
|
| 63 |
+
To evaluate a model's performance, use
|
| 64 |
+
```
|
| 65 |
+
./train_net.py \
|
| 66 |
+
--config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml \
|
| 67 |
+
--eval-only MODEL.WEIGHTS /path/to/checkpoint_file
|
| 68 |
+
```
|
| 69 |
+
For more options, see `./train_net.py -h`.
|
| 70 |
+
|
| 71 |
+
### Use Detectron2 APIs in Your Code
|
| 72 |
+
|
| 73 |
+
See our [Colab Notebook](https://colab.research.google.com/drive/16jcaJoc6bCFAQ96jDe2HwtXj7BMD_-m5)
|
| 74 |
+
to learn how to use detectron2 APIs to:
|
| 75 |
+
1. run inference with an existing model
|
| 76 |
+
2. train a builtin model on a custom dataset
|
| 77 |
+
|
| 78 |
+
See [detectron2/projects](https://github.com/facebookresearch/detectron2/tree/master/projects)
|
| 79 |
+
for more ways to build your project on detectron2.
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/index.rst
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Tutorials
|
| 2 |
+
======================================
|
| 3 |
+
|
| 4 |
+
.. toctree::
|
| 5 |
+
:maxdepth: 2
|
| 6 |
+
|
| 7 |
+
install
|
| 8 |
+
getting_started
|
| 9 |
+
builtin_datasets
|
| 10 |
+
extend
|
| 11 |
+
datasets
|
| 12 |
+
data_loading
|
| 13 |
+
models
|
| 14 |
+
write-models
|
| 15 |
+
training
|
| 16 |
+
evaluation
|
| 17 |
+
configs
|
| 18 |
+
deployment
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/install.md
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## Installation
|
| 2 |
+
|
| 3 |
+
Our [Colab Notebook](https://colab.research.google.com/drive/16jcaJoc6bCFAQ96jDe2HwtXj7BMD_-m5)
|
| 4 |
+
has step-by-step instructions that install detectron2.
|
| 5 |
+
The [Dockerfile](docker)
|
| 6 |
+
also installs detectron2 with a few simple commands.
|
| 7 |
+
|
| 8 |
+
### Requirements
|
| 9 |
+
- Linux or macOS with Python ≥ 3.6
|
| 10 |
+
- PyTorch ≥ 1.4
|
| 11 |
+
- [torchvision](https://github.com/pytorch/vision/) that matches the PyTorch installation.
|
| 12 |
+
You can install them together at [pytorch.org](https://pytorch.org) to make sure of this.
|
| 13 |
+
- OpenCV, optional, needed by demo and visualization
|
| 14 |
+
- pycocotools: `pip install cython; pip install -U 'git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI'`
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
### Build Detectron2 from Source
|
| 18 |
+
|
| 19 |
+
gcc & g++ ≥ 5 are required. [ninja](https://ninja-build.org/) is recommended for faster build.
|
| 20 |
+
After having them, run:
|
| 21 |
+
```
|
| 22 |
+
python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
|
| 23 |
+
# (add --user if you don't have permission)
|
| 24 |
+
|
| 25 |
+
# Or, to install it from a local clone:
|
| 26 |
+
git clone https://github.com/facebookresearch/detectron2.git
|
| 27 |
+
python -m pip install -e detectron2
|
| 28 |
+
|
| 29 |
+
# Or if you are on macOS
|
| 30 |
+
# CC=clang CXX=clang++ python -m pip install -e .
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
To __rebuild__ detectron2 that's built from a local clone, use `rm -rf build/ **/*.so` to clean the
|
| 34 |
+
old build first. You often need to rebuild detectron2 after reinstalling PyTorch.
|
| 35 |
+
|
| 36 |
+
### Install Pre-Built Detectron2 (Linux only)
|
| 37 |
+
```
|
| 38 |
+
# for CUDA 10.1:
|
| 39 |
+
python -m pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/index.html
|
| 40 |
+
```
|
| 41 |
+
You can replace cu101 with "cu{100,92}" or "cpu".
|
| 42 |
+
|
| 43 |
+
Note that:
|
| 44 |
+
1. Such installation has to be used with certain version of official PyTorch release.
|
| 45 |
+
See [releases](https://github.com/facebookresearch/detectron2/releases) for requirements.
|
| 46 |
+
It will not work with a different version of PyTorch or a non-official build of PyTorch.
|
| 47 |
+
2. Such installation is out-of-date w.r.t. master branch of detectron2. It may not be
|
| 48 |
+
compatible with the master branch of a research project that uses detectron2 (e.g. those in
|
| 49 |
+
[projects](projects) or [meshrcnn](https://github.com/facebookresearch/meshrcnn/)).
|
| 50 |
+
|
| 51 |
+
### Common Installation Issues
|
| 52 |
+
|
| 53 |
+
If you met issues using the pre-built detectron2, please uninstall it and try building it from source.
|
| 54 |
+
|
| 55 |
+
Click each issue for its solutions:
|
| 56 |
+
|
| 57 |
+
<details>
|
| 58 |
+
<summary>
|
| 59 |
+
Undefined torch/aten/caffe2 symbols, or segmentation fault immediately when running the library.
|
| 60 |
+
</summary>
|
| 61 |
+
<br/>
|
| 62 |
+
|
| 63 |
+
This usually happens when detectron2 or torchvision is not
|
| 64 |
+
compiled with the version of PyTorch you're running.
|
| 65 |
+
|
| 66 |
+
Pre-built torchvision or detectron2 has to work with the corresponding official release of pytorch.
|
| 67 |
+
If the error comes from a pre-built torchvision, uninstall torchvision and pytorch and reinstall them
|
| 68 |
+
following [pytorch.org](http://pytorch.org). So the versions will match.
|
| 69 |
+
|
| 70 |
+
If the error comes from a pre-built detectron2, check [release notes](https://github.com/facebookresearch/detectron2/releases)
|
| 71 |
+
to see the corresponding pytorch version required for each pre-built detectron2.
|
| 72 |
+
|
| 73 |
+
If the error comes from detectron2 or torchvision that you built manually from source,
|
| 74 |
+
remove files you built (`build/`, `**/*.so`) and rebuild it so it can pick up the version of pytorch currently in your environment.
|
| 75 |
+
|
| 76 |
+
If you cannot resolve this problem, please include the output of `gdb -ex "r" -ex "bt" -ex "quit" --args python -m detectron2.utils.collect_env`
|
| 77 |
+
in your issue.
|
| 78 |
+
</details>
|
| 79 |
+
|
| 80 |
+
<details>
|
| 81 |
+
<summary>
|
| 82 |
+
Undefined C++ symbols (e.g. `GLIBCXX`) or C++ symbols not found.
|
| 83 |
+
</summary>
|
| 84 |
+
<br/>
|
| 85 |
+
Usually it's because the library is compiled with a newer C++ compiler but run with an old C++ runtime.
|
| 86 |
+
|
| 87 |
+
This often happens with old anaconda.
|
| 88 |
+
Try `conda update libgcc`. Then rebuild detectron2.
|
| 89 |
+
|
| 90 |
+
The fundamental solution is to run the code with proper C++ runtime.
|
| 91 |
+
One way is to use `LD_PRELOAD=/path/to/libstdc++.so`.
|
| 92 |
+
|
| 93 |
+
</details>
|
| 94 |
+
|
| 95 |
+
<details>
|
| 96 |
+
<summary>
|
| 97 |
+
"Not compiled with GPU support" or "Detectron2 CUDA Compiler: not available".
|
| 98 |
+
</summary>
|
| 99 |
+
<br/>
|
| 100 |
+
CUDA is not found when building detectron2.
|
| 101 |
+
You should make sure
|
| 102 |
+
|
| 103 |
+
```
|
| 104 |
+
python -c 'import torch; from torch.utils.cpp_extension import CUDA_HOME; print(torch.cuda.is_available(), CUDA_HOME)'
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
print valid outputs at the time you build detectron2.
|
| 108 |
+
|
| 109 |
+
Most models can run inference (but not training) without GPU support. To use CPUs, set `MODEL.DEVICE='cpu'` in the config.
|
| 110 |
+
</details>
|
| 111 |
+
|
| 112 |
+
<details>
|
| 113 |
+
<summary>
|
| 114 |
+
"invalid device function" or "no kernel image is available for execution".
|
| 115 |
+
</summary>
|
| 116 |
+
<br/>
|
| 117 |
+
Two possibilities:
|
| 118 |
+
|
| 119 |
+
* You build detectron2 with one version of CUDA but run it with a different version.
|
| 120 |
+
|
| 121 |
+
To check whether it is the case,
|
| 122 |
+
use `python -m detectron2.utils.collect_env` to find out inconsistent CUDA versions.
|
| 123 |
+
In the output of this command, you should expect "Detectron2 CUDA Compiler", "CUDA_HOME", "PyTorch built with - CUDA"
|
| 124 |
+
to contain cuda libraries of the same version.
|
| 125 |
+
|
| 126 |
+
When they are inconsistent,
|
| 127 |
+
you need to either install a different build of PyTorch (or build by yourself)
|
| 128 |
+
to match your local CUDA installation, or install a different version of CUDA to match PyTorch.
|
| 129 |
+
|
| 130 |
+
* Detectron2 or PyTorch/torchvision is not built for the correct GPU architecture (compute compatibility).
|
| 131 |
+
|
| 132 |
+
The GPU architecture for PyTorch/detectron2/torchvision is available in the "architecture flags" in
|
| 133 |
+
`python -m detectron2.utils.collect_env`.
|
| 134 |
+
|
| 135 |
+
The GPU architecture flags of detectron2/torchvision by default matches the GPU model detected
|
| 136 |
+
during compilation. This means the compiled code may not work on a different GPU model.
|
| 137 |
+
To overwrite the GPU architecture for detectron2/torchvision, use `TORCH_CUDA_ARCH_LIST` environment variable during compilation.
|
| 138 |
+
|
| 139 |
+
For example, `export TORCH_CUDA_ARCH_LIST=6.0,7.0` makes it compile for both P100s and V100s.
|
| 140 |
+
Visit [developer.nvidia.com/cuda-gpus](https://developer.nvidia.com/cuda-gpus) to find out
|
| 141 |
+
the correct compute compatibility number for your device.
|
| 142 |
+
|
| 143 |
+
</details>
|
| 144 |
+
|
| 145 |
+
<details>
|
| 146 |
+
<summary>
|
| 147 |
+
Undefined CUDA symbols; cannot open libcudart.so; other nvcc failures.
|
| 148 |
+
</summary>
|
| 149 |
+
<br/>
|
| 150 |
+
The version of NVCC you use to build detectron2 or torchvision does
|
| 151 |
+
not match the version of CUDA you are running with.
|
| 152 |
+
This often happens when using anaconda's CUDA runtime.
|
| 153 |
+
|
| 154 |
+
Use `python -m detectron2.utils.collect_env` to find out inconsistent CUDA versions.
|
| 155 |
+
In the output of this command, you should expect "Detectron2 CUDA Compiler", "CUDA_HOME", "PyTorch built with - CUDA"
|
| 156 |
+
to contain cuda libraries of the same version.
|
| 157 |
+
|
| 158 |
+
When they are inconsistent,
|
| 159 |
+
you need to either install a different build of PyTorch (or build by yourself)
|
| 160 |
+
to match your local CUDA installation, or install a different version of CUDA to match PyTorch.
|
| 161 |
+
</details>
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
<details>
|
| 165 |
+
<summary>
|
| 166 |
+
"ImportError: cannot import name '_C'".
|
| 167 |
+
</summary>
|
| 168 |
+
<br/>
|
| 169 |
+
Please build and install detectron2 following the instructions above.
|
| 170 |
+
|
| 171 |
+
If you are running code from detectron2's root directory, `cd` to a different one.
|
| 172 |
+
Otherwise you may not import the code that you installed.
|
| 173 |
+
</details>
|
| 174 |
+
|
| 175 |
+
<details>
|
| 176 |
+
<summary>
|
| 177 |
+
ONNX conversion segfault after some "TraceWarning".
|
| 178 |
+
</summary>
|
| 179 |
+
<br/>
|
| 180 |
+
The ONNX package is compiled with too old compiler.
|
| 181 |
+
|
| 182 |
+
Please build and install ONNX from its source code using a compiler
|
| 183 |
+
whose version is closer to what's used by PyTorch (available in `torch.__config__.show()`).
|
| 184 |
+
</details>
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/models.md
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use Models
|
| 2 |
+
|
| 3 |
+
Models (and their sub-models) in detectron2 are built by
|
| 4 |
+
functions such as `build_model`, `build_backbone`, `build_roi_heads`:
|
| 5 |
+
```python
|
| 6 |
+
from detectron2.modeling import build_model
|
| 7 |
+
model = build_model(cfg) # returns a torch.nn.Module
|
| 8 |
+
```
|
| 9 |
+
|
| 10 |
+
`build_model` only builds the model structure, and fill it with random parameters.
|
| 11 |
+
See below for how to load an existing checkpoint to the model,
|
| 12 |
+
and how to use the `model` object.
|
| 13 |
+
|
| 14 |
+
### Load/Save a Checkpoint
|
| 15 |
+
```python
|
| 16 |
+
from detectron2.checkpoint import DetectionCheckpointer
|
| 17 |
+
DetectionCheckpointer(model).load(file_path) # load a file to model
|
| 18 |
+
|
| 19 |
+
checkpointer = DetectionCheckpointer(model, save_dir="output")
|
| 20 |
+
checkpointer.save("model_999") # save to output/model_999.pth
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
Detectron2's checkpointer recognizes models in pytorch's `.pth` format, as well as the `.pkl` files
|
| 24 |
+
in our model zoo.
|
| 25 |
+
See [API doc](../modules/checkpoint.html#detectron2.checkpoint.DetectionCheckpointer)
|
| 26 |
+
for more details about its usage.
|
| 27 |
+
|
| 28 |
+
The model files can be arbitrarily manipulated using `torch.{load,save}` for `.pth` files or
|
| 29 |
+
`pickle.{dump,load}` for `.pkl` files.
|
| 30 |
+
|
| 31 |
+
### Use a Model
|
| 32 |
+
|
| 33 |
+
A model can be called by `outputs = model(inputs)`, where `inputs` is a `list[dict]`.
|
| 34 |
+
Each dict corresponds to one image and the required keys
|
| 35 |
+
depend on the type of model, and whether the model is in training or evaluation mode.
|
| 36 |
+
For example, in order to do inference,
|
| 37 |
+
all existing models expect the "image" key, and optionally "height" and "width".
|
| 38 |
+
The detailed format of inputs and outputs of existing models are explained below.
|
| 39 |
+
|
| 40 |
+
When in training mode, all models are required to be used under an `EventStorage`.
|
| 41 |
+
The training statistics will be put into the storage:
|
| 42 |
+
```python
|
| 43 |
+
from detectron2.utils.events import EventStorage
|
| 44 |
+
with EventStorage() as storage:
|
| 45 |
+
losses = model(inputs)
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
If you only want to do simple inference using an existing model,
|
| 49 |
+
[DefaultPredictor](../modules/engine.html#detectron2.engine.defaults.DefaultPredictor)
|
| 50 |
+
is a wrapper around model that provides such basic functionality.
|
| 51 |
+
It includes default behavior including model loading, preprocessing,
|
| 52 |
+
and operates on single image rather than batches.
|
| 53 |
+
|
| 54 |
+
### Model Input Format
|
| 55 |
+
|
| 56 |
+
Users can implement custom models that support any arbitrary input format.
|
| 57 |
+
Here we describe the standard input format that all builtin models support in detectron2.
|
| 58 |
+
They all take a `list[dict]` as the inputs. Each dict
|
| 59 |
+
corresponds to information about one image.
|
| 60 |
+
|
| 61 |
+
The dict may contain the following keys:
|
| 62 |
+
|
| 63 |
+
* "image": `Tensor` in (C, H, W) format. The meaning of channels are defined by `cfg.INPUT.FORMAT`.
|
| 64 |
+
Image normalization, if any, will be performed inside the model using
|
| 65 |
+
`cfg.MODEL.PIXEL_{MEAN,STD}`.
|
| 66 |
+
* "instances": an [Instances](../modules/structures.html#detectron2.structures.Instances)
|
| 67 |
+
object, with the following fields:
|
| 68 |
+
+ "gt_boxes": a [Boxes](../modules/structures.html#detectron2.structures.Boxes) object storing N boxes, one for each instance.
|
| 69 |
+
+ "gt_classes": `Tensor` of long type, a vector of N labels, in range [0, num_categories).
|
| 70 |
+
+ "gt_masks": a [PolygonMasks](../modules/structures.html#detectron2.structures.PolygonMasks)
|
| 71 |
+
or [BitMasks](../modules/structures.html#detectron2.structures.BitMasks) object storing N masks, one for each instance.
|
| 72 |
+
+ "gt_keypoints": a [Keypoints](../modules/structures.html#detectron2.structures.Keypoints)
|
| 73 |
+
object storing N keypoint sets, one for each instance.
|
| 74 |
+
* "proposals": an [Instances](../modules/structures.html#detectron2.structures.Instances)
|
| 75 |
+
object used only in Fast R-CNN style models, with the following fields:
|
| 76 |
+
+ "proposal_boxes": a [Boxes](../modules/structures.html#detectron2.structures.Boxes) object storing P proposal boxes.
|
| 77 |
+
+ "objectness_logits": `Tensor`, a vector of P scores, one for each proposal.
|
| 78 |
+
* "height", "width": the **desired** output height and width, which is not necessarily the same
|
| 79 |
+
as the height or width of the `image` input field.
|
| 80 |
+
For example, the `image` input field might be a resized image,
|
| 81 |
+
but you may want the outputs to be in **original** resolution.
|
| 82 |
+
|
| 83 |
+
If provided, the model will produce output in this resolution,
|
| 84 |
+
rather than in the resolution of the `image` as input into the model. This is more efficient and accurate.
|
| 85 |
+
* "sem_seg": `Tensor[int]` in (H, W) format. The semantic segmentation ground truth.
|
| 86 |
+
Values represent category labels starting from 0.
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
#### How it connects to data loader:
|
| 90 |
+
|
| 91 |
+
The output of the default [DatasetMapper]( ../modules/data.html#detectron2.data.DatasetMapper) is a dict
|
| 92 |
+
that follows the above format.
|
| 93 |
+
After the data loader performs batching, it becomes `list[dict]` which the builtin models support.
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
### Model Output Format
|
| 97 |
+
|
| 98 |
+
When in training mode, the builtin models output a `dict[str->ScalarTensor]` with all the losses.
|
| 99 |
+
|
| 100 |
+
When in inference mode, the builtin models output a `list[dict]`, one dict for each image.
|
| 101 |
+
Based on the tasks the model is doing, each dict may contain the following fields:
|
| 102 |
+
|
| 103 |
+
* "instances": [Instances](../modules/structures.html#detectron2.structures.Instances)
|
| 104 |
+
object with the following fields:
|
| 105 |
+
* "pred_boxes": [Boxes](../modules/structures.html#detectron2.structures.Boxes) object storing N boxes, one for each detected instance.
|
| 106 |
+
* "scores": `Tensor`, a vector of N scores.
|
| 107 |
+
* "pred_classes": `Tensor`, a vector of N labels in range [0, num_categories).
|
| 108 |
+
+ "pred_masks": a `Tensor` of shape (N, H, W), masks for each detected instance.
|
| 109 |
+
+ "pred_keypoints": a `Tensor` of shape (N, num_keypoint, 3).
|
| 110 |
+
Each row in the last dimension is (x, y, score). Scores are larger than 0.
|
| 111 |
+
* "sem_seg": `Tensor` of (num_categories, H, W), the semantic segmentation prediction.
|
| 112 |
+
* "proposals": [Instances](../modules/structures.html#detectron2.structures.Instances)
|
| 113 |
+
object with the following fields:
|
| 114 |
+
* "proposal_boxes": [Boxes](../modules/structures.html#detectron2.structures.Boxes)
|
| 115 |
+
object storing N boxes.
|
| 116 |
+
* "objectness_logits": a torch vector of N scores.
|
| 117 |
+
* "panoptic_seg": A tuple of `(Tensor, list[dict])`. The tensor has shape (H, W), where each element
|
| 118 |
+
represent the segment id of the pixel. Each dict describes one segment id and has the following fields:
|
| 119 |
+
* "id": the segment id
|
| 120 |
+
* "isthing": whether the segment is a thing or stuff
|
| 121 |
+
* "category_id": the category id of this segment. It represents the thing
|
| 122 |
+
class id when `isthing==True`, and the stuff class id otherwise.
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
### Partially execute a model:
|
| 126 |
+
|
| 127 |
+
Sometimes you may want to obtain an intermediate tensor inside a model.
|
| 128 |
+
Since there are typically hundreds of intermediate tensors, there isn't an API that provides you
|
| 129 |
+
the intermediate result you need.
|
| 130 |
+
You have the following options:
|
| 131 |
+
|
| 132 |
+
1. Write a (sub)model. Following the [tutorial](./write-models.md), you can
|
| 133 |
+
rewrite a model component (e.g. a head of a model), such that it
|
| 134 |
+
does the same thing as the existing component, but returns the output
|
| 135 |
+
you need.
|
| 136 |
+
2. Partially execute a model. You can create the model as usual,
|
| 137 |
+
but use custom code to execute it instead of its `forward()`. For example,
|
| 138 |
+
the following code obtains mask features before mask head.
|
| 139 |
+
|
| 140 |
+
```python
|
| 141 |
+
images = ImageList.from_tensors(...) # preprocessed input tensor
|
| 142 |
+
model = build_model(cfg)
|
| 143 |
+
features = model.backbone(images.tensor)
|
| 144 |
+
proposals, _ = model.proposal_generator(images, features)
|
| 145 |
+
instances = model.roi_heads._forward_box(features, proposals)
|
| 146 |
+
mask_features = [features[f] for f in model.roi_heads.in_features]
|
| 147 |
+
mask_features = model.roi_heads.mask_pooler(mask_features, [x.pred_boxes for x in instances])
|
| 148 |
+
```
|
| 149 |
+
|
| 150 |
+
Note that both options require you to read the existing forward code to understand
|
| 151 |
+
how to write code to obtain the outputs you need.
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/training.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Training
|
| 2 |
+
|
| 3 |
+
From the previous tutorials, you may now have a custom model and data loader.
|
| 4 |
+
|
| 5 |
+
You are free to create your own optimizer, and write the training logic: it's
|
| 6 |
+
usually easy with PyTorch, and allow researchers to see the entire training
|
| 7 |
+
logic more clearly and have full control.
|
| 8 |
+
One such example is provided in [tools/plain_train_net.py](../../tools/plain_train_net.py).
|
| 9 |
+
|
| 10 |
+
We also provide a standarized "trainer" abstraction with a
|
| 11 |
+
[minimal hook system](../modules/engine.html#detectron2.engine.HookBase)
|
| 12 |
+
that helps simplify the standard types of training.
|
| 13 |
+
|
| 14 |
+
You can use
|
| 15 |
+
[SimpleTrainer().train()](../modules/engine.html#detectron2.engine.SimpleTrainer)
|
| 16 |
+
which provides minimal abstraction for single-cost single-optimizer single-data-source training.
|
| 17 |
+
The builtin `train_net.py` script uses
|
| 18 |
+
[DefaultTrainer().train()](../modules/engine.html#detectron2.engine.defaults.DefaultTrainer),
|
| 19 |
+
which includes more standard default behavior that one might want to opt in,
|
| 20 |
+
including default configurations for learning rate schedule,
|
| 21 |
+
logging, evaluation, checkpointing etc.
|
| 22 |
+
This also means that it's less likely to support some non-standard behavior
|
| 23 |
+
you might want during research.
|
| 24 |
+
|
| 25 |
+
To customize the training loops, you can:
|
| 26 |
+
|
| 27 |
+
1. If your customization is similar to what `DefaultTrainer` is already doing,
|
| 28 |
+
you can change behavior of `DefaultTrainer` by overwriting [its methods](../modules/engine.html#detectron2.engine.defaults.DefaultTrainer)
|
| 29 |
+
in a subclass, like what [tools/train_net.py](../../tools/train_net.py) does.
|
| 30 |
+
2. If you need something very novel, you can start from [tools/plain_train_net.py](../../tools/plain_train_net.py) to implement them yourself.
|
| 31 |
+
|
| 32 |
+
### Logging of Metrics
|
| 33 |
+
|
| 34 |
+
During training, metrics are saved to a centralized [EventStorage](../modules/utils.html#detectron2.utils.events.EventStorage).
|
| 35 |
+
You can use the following code to access it and log metrics to it:
|
| 36 |
+
```
|
| 37 |
+
from detectron2.utils.events import get_event_storage
|
| 38 |
+
|
| 39 |
+
# inside the model:
|
| 40 |
+
if self.training:
|
| 41 |
+
value = # compute the value from inputs
|
| 42 |
+
storage = get_event_storage()
|
| 43 |
+
storage.put_scalar("some_accuracy", value)
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
Refer to its documentation for more details.
|
| 47 |
+
|
| 48 |
+
Metrics are then saved to various destinations with [EventWriter](../modules/utils.html#module-detectron2.utils.events).
|
| 49 |
+
DefaultTrainer enables a few `EventWriter` with default configurations.
|
| 50 |
+
See above for how to customize them.
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/docs/tutorials/write-models.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Write Models
|
| 2 |
+
|
| 3 |
+
If you are trying to do something completely new, you may wish to implement
|
| 4 |
+
a model entirely from scratch within detectron2. However, in many situations you may
|
| 5 |
+
be interested in modifying or extending some components of an existing model.
|
| 6 |
+
Therefore, we also provide a registration mechanism that lets you override the
|
| 7 |
+
behavior of certain internal components of standard models.
|
| 8 |
+
|
| 9 |
+
For example, to add a new backbone, import this code in your code:
|
| 10 |
+
```python
|
| 11 |
+
from detectron2.modeling import BACKBONE_REGISTRY, Backbone, ShapeSpec
|
| 12 |
+
|
| 13 |
+
@BACKBONE_REGISTRY.register()
|
| 14 |
+
class ToyBackBone(Backbone):
|
| 15 |
+
def __init__(self, cfg, input_shape):
|
| 16 |
+
# create your own backbone
|
| 17 |
+
self.conv1 = nn.Conv2d(3, 64, kernel_size=7, stride=16, padding=3)
|
| 18 |
+
|
| 19 |
+
def forward(self, image):
|
| 20 |
+
return {"conv1": self.conv1(image)}
|
| 21 |
+
|
| 22 |
+
def output_shape(self):
|
| 23 |
+
return {"conv1": ShapeSpec(channels=64, stride=16)}
|
| 24 |
+
```
|
| 25 |
+
Then, you can use `cfg.MODEL.BACKBONE.NAME = 'ToyBackBone'` in your config object.
|
| 26 |
+
`build_model(cfg)` will then call your `ToyBackBone` instead.
|
| 27 |
+
|
| 28 |
+
As another example, to add new abilities to the ROI heads in the Generalized R-CNN meta-architecture,
|
| 29 |
+
you can implement a new
|
| 30 |
+
[ROIHeads](../modules/modeling.html#detectron2.modeling.ROIHeads) subclass and put it in the `ROI_HEADS_REGISTRY`.
|
| 31 |
+
See [densepose in detectron2](../../projects/DensePose)
|
| 32 |
+
and [meshrcnn](https://github.com/facebookresearch/meshrcnn)
|
| 33 |
+
for examples that implement new ROIHeads to perform new tasks.
|
| 34 |
+
And [projects/](../../projects/)
|
| 35 |
+
contains more examples that implement different architectures.
|
| 36 |
+
|
| 37 |
+
A complete list of registries can be found in [API documentation](../modules/modeling.html#model-registries).
|
| 38 |
+
You can register components in these registries to customize different parts of a model, or the
|
| 39 |
+
entire model.
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/Base-DensePose-RCNN-FPN.yaml
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MODEL:
|
| 2 |
+
META_ARCHITECTURE: "GeneralizedRCNN"
|
| 3 |
+
BACKBONE:
|
| 4 |
+
NAME: "build_resnet_fpn_backbone"
|
| 5 |
+
RESNETS:
|
| 6 |
+
OUT_FEATURES: ["res2", "res3", "res4", "res5"]
|
| 7 |
+
FPN:
|
| 8 |
+
IN_FEATURES: ["res2", "res3", "res4", "res5"]
|
| 9 |
+
ANCHOR_GENERATOR:
|
| 10 |
+
SIZES: [[32], [64], [128], [256], [512]] # One size for each in feature map
|
| 11 |
+
ASPECT_RATIOS: [[0.5, 1.0, 2.0]] # Three aspect ratios (same for all in feature maps)
|
| 12 |
+
RPN:
|
| 13 |
+
IN_FEATURES: ["p2", "p3", "p4", "p5", "p6"]
|
| 14 |
+
PRE_NMS_TOPK_TRAIN: 2000 # Per FPN level
|
| 15 |
+
PRE_NMS_TOPK_TEST: 1000 # Per FPN level
|
| 16 |
+
# Detectron1 uses 2000 proposals per-batch,
|
| 17 |
+
# (See "modeling/rpn/rpn_outputs.py" for details of this legacy issue)
|
| 18 |
+
# which is approximately 1000 proposals per-image since the default batch size for FPN is 2.
|
| 19 |
+
POST_NMS_TOPK_TRAIN: 1000
|
| 20 |
+
POST_NMS_TOPK_TEST: 1000
|
| 21 |
+
|
| 22 |
+
DENSEPOSE_ON: True
|
| 23 |
+
ROI_HEADS:
|
| 24 |
+
NAME: "DensePoseROIHeads"
|
| 25 |
+
IN_FEATURES: ["p2", "p3", "p4", "p5"]
|
| 26 |
+
NUM_CLASSES: 1
|
| 27 |
+
ROI_BOX_HEAD:
|
| 28 |
+
NAME: "FastRCNNConvFCHead"
|
| 29 |
+
NUM_FC: 2
|
| 30 |
+
POOLER_RESOLUTION: 7
|
| 31 |
+
POOLER_SAMPLING_RATIO: 2
|
| 32 |
+
POOLER_TYPE: "ROIAlign"
|
| 33 |
+
ROI_DENSEPOSE_HEAD:
|
| 34 |
+
NAME: "DensePoseV1ConvXHead"
|
| 35 |
+
POOLER_TYPE: "ROIAlign"
|
| 36 |
+
NUM_COARSE_SEGM_CHANNELS: 2
|
| 37 |
+
DATASETS:
|
| 38 |
+
TRAIN: ("densepose_coco_2014_train", "densepose_coco_2014_valminusminival")
|
| 39 |
+
TEST: ("densepose_coco_2014_minival",)
|
| 40 |
+
SOLVER:
|
| 41 |
+
IMS_PER_BATCH: 16
|
| 42 |
+
BASE_LR: 0.01
|
| 43 |
+
STEPS: (60000, 80000)
|
| 44 |
+
MAX_ITER: 90000
|
| 45 |
+
WARMUP_FACTOR: 0.1
|
| 46 |
+
INPUT:
|
| 47 |
+
MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800)
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC1_s1x.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 101
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseDeepLabHead"
|
| 8 |
+
UV_CONFIDENCE:
|
| 9 |
+
ENABLED: True
|
| 10 |
+
TYPE: "iid_iso"
|
| 11 |
+
POINT_REGRESSION_WEIGHTS: 0.0005
|
| 12 |
+
SOLVER:
|
| 13 |
+
CLIP_GRADIENTS:
|
| 14 |
+
ENABLED: True
|
| 15 |
+
MAX_ITER: 130000
|
| 16 |
+
STEPS: (100000, 120000)
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC2_s1x.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 101
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseDeepLabHead"
|
| 8 |
+
UV_CONFIDENCE:
|
| 9 |
+
ENABLED: True
|
| 10 |
+
TYPE: "indep_aniso"
|
| 11 |
+
POINT_REGRESSION_WEIGHTS: 0.0005
|
| 12 |
+
SOLVER:
|
| 13 |
+
CLIP_GRADIENTS:
|
| 14 |
+
ENABLED: True
|
| 15 |
+
MAX_ITER: 130000
|
| 16 |
+
STEPS: (100000, 120000)
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_s1x.yaml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 101
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseDeepLabHead"
|
| 8 |
+
SOLVER:
|
| 9 |
+
MAX_ITER: 130000
|
| 10 |
+
STEPS: (100000, 120000)
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC1_s1x.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 101
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
UV_CONFIDENCE:
|
| 8 |
+
ENABLED: True
|
| 9 |
+
TYPE: "iid_iso"
|
| 10 |
+
POINT_REGRESSION_WEIGHTS: 0.0005
|
| 11 |
+
SOLVER:
|
| 12 |
+
CLIP_GRADIENTS:
|
| 13 |
+
ENABLED: True
|
| 14 |
+
MAX_ITER: 130000
|
| 15 |
+
STEPS: (100000, 120000)
|
| 16 |
+
WARMUP_FACTOR: 0.025
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC2_s1x.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 101
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
UV_CONFIDENCE:
|
| 8 |
+
ENABLED: True
|
| 9 |
+
TYPE: "indep_aniso"
|
| 10 |
+
POINT_REGRESSION_WEIGHTS: 0.0005
|
| 11 |
+
SOLVER:
|
| 12 |
+
CLIP_GRADIENTS:
|
| 13 |
+
ENABLED: True
|
| 14 |
+
MAX_ITER: 130000
|
| 15 |
+
STEPS: (100000, 120000)
|
| 16 |
+
WARMUP_FACTOR: 0.025
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_s1x.yaml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 101
|
| 6 |
+
SOLVER:
|
| 7 |
+
MAX_ITER: 130000
|
| 8 |
+
STEPS: (100000, 120000)
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_s1x_legacy.yaml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 101
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NUM_COARSE_SEGM_CHANNELS: 15
|
| 8 |
+
POOLER_RESOLUTION: 14
|
| 9 |
+
HEATMAP_SIZE: 56
|
| 10 |
+
INDEX_WEIGHTS: 2.0
|
| 11 |
+
PART_WEIGHTS: 0.3
|
| 12 |
+
POINT_REGRESSION_WEIGHTS: 0.1
|
| 13 |
+
DECODER_ON: False
|
| 14 |
+
SOLVER:
|
| 15 |
+
BASE_LR: 0.002
|
| 16 |
+
MAX_ITER: 130000
|
| 17 |
+
STEPS: (100000, 120000)
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC1_s1x.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseDeepLabHead"
|
| 8 |
+
UV_CONFIDENCE:
|
| 9 |
+
ENABLED: True
|
| 10 |
+
TYPE: "iid_iso"
|
| 11 |
+
POINT_REGRESSION_WEIGHTS: 0.0005
|
| 12 |
+
SOLVER:
|
| 13 |
+
CLIP_GRADIENTS:
|
| 14 |
+
ENABLED: True
|
| 15 |
+
MAX_ITER: 130000
|
| 16 |
+
STEPS: (100000, 120000)
|
ComfyUI/custom_nodes/ComfyUI_CatVTON_Wrapper/py/catvton/SCHP/mhp_extension/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC2_s1x.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseDeepLabHead"
|
| 8 |
+
UV_CONFIDENCE:
|
| 9 |
+
ENABLED: True
|
| 10 |
+
TYPE: "indep_aniso"
|
| 11 |
+
POINT_REGRESSION_WEIGHTS: 0.0005
|
| 12 |
+
SOLVER:
|
| 13 |
+
CLIP_GRADIENTS:
|
| 14 |
+
ENABLED: True
|
| 15 |
+
MAX_ITER: 130000
|
| 16 |
+
STEPS: (100000, 120000)
|