Commit
·
ff5549e
0
Parent(s):
Initial commit of project with LFS
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +5 -0
- LICENSE.txt +437 -0
- README.md +233 -0
- assets/teaser.png +3 -0
- assets/teaser2.png +3 -0
- ckpt/densepose/model_final_162be9.pkl +1 -0
- ckpt/humanparsing/parsing_atr.onnx +1 -0
- ckpt/humanparsing/parsing_lip.onnx +1 -0
- ckpt/image_encoder/config.json +3 -0
- ckpt/image_encoder/model.safetensors +1 -0
- ckpt/ip_adapter/ip-adapter-plus_sdxl_vit-h.bin +1 -0
- ckpt/openpose/.DS_Store +0 -0
- ckpt/openpose/ckpts/body_pose_model.pth +1 -0
- configs/Base-DensePose-RCNN-FPN.yaml +48 -0
- configs/HRNet/densepose_rcnn_HRFPN_HRNet_w32_s1x.yaml +16 -0
- configs/HRNet/densepose_rcnn_HRFPN_HRNet_w40_s1x.yaml +23 -0
- configs/HRNet/densepose_rcnn_HRFPN_HRNet_w48_s1x.yaml +23 -0
- configs/cse/Base-DensePose-RCNN-FPN-Human.yaml +20 -0
- configs/cse/Base-DensePose-RCNN-FPN.yaml +60 -0
- configs/cse/densepose_rcnn_R_101_FPN_DL_s1x.yaml +12 -0
- configs/cse/densepose_rcnn_R_101_FPN_DL_soft_s1x.yaml +12 -0
- configs/cse/densepose_rcnn_R_101_FPN_s1x.yaml +12 -0
- configs/cse/densepose_rcnn_R_101_FPN_soft_s1x.yaml +12 -0
- configs/cse/densepose_rcnn_R_50_FPN_DL_s1x.yaml +12 -0
- configs/cse/densepose_rcnn_R_50_FPN_DL_soft_s1x.yaml +12 -0
- configs/cse/densepose_rcnn_R_50_FPN_s1x.yaml +12 -0
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_16k.yaml +133 -0
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_4k.yaml +133 -0
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_16k.yaml +119 -0
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_i2m_16k.yaml +121 -0
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_m2m_16k.yaml +138 -0
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_16k.yaml +119 -0
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_4k.yaml +119 -0
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k.yaml +118 -0
- configs/cse/densepose_rcnn_R_50_FPN_soft_chimps_finetune_4k.yaml +29 -0
- configs/cse/densepose_rcnn_R_50_FPN_soft_s1x.yaml +12 -0
- configs/densepose_rcnn_R_101_FPN_DL_WC1M_s1x.yaml +18 -0
- configs/densepose_rcnn_R_101_FPN_DL_WC1_s1x.yaml +16 -0
- configs/densepose_rcnn_R_101_FPN_DL_WC2M_s1x.yaml +18 -0
- configs/densepose_rcnn_R_101_FPN_DL_WC2_s1x.yaml +16 -0
- configs/densepose_rcnn_R_101_FPN_DL_s1x.yaml +10 -0
- configs/densepose_rcnn_R_101_FPN_WC1M_s1x.yaml +18 -0
- configs/densepose_rcnn_R_101_FPN_WC1_s1x.yaml +16 -0
- configs/densepose_rcnn_R_101_FPN_WC2M_s1x.yaml +18 -0
- configs/densepose_rcnn_R_101_FPN_WC2_s1x.yaml +16 -0
- configs/densepose_rcnn_R_101_FPN_s1x.yaml +8 -0
- configs/densepose_rcnn_R_101_FPN_s1x_legacy.yaml +17 -0
- configs/densepose_rcnn_R_50_FPN_DL_WC1M_s1x.yaml +18 -0
- configs/densepose_rcnn_R_50_FPN_DL_WC1_s1x.yaml +16 -0
- configs/densepose_rcnn_R_50_FPN_DL_WC2M_s1x.yaml +18 -0
.gitattributes
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.json filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.so filter=lfs diff=lfs merge=lfs -text
|
LICENSE.txt
ADDED
|
@@ -0,0 +1,437 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Attribution-NonCommercial-ShareAlike 4.0 International
|
| 2 |
+
|
| 3 |
+
=======================================================================
|
| 4 |
+
|
| 5 |
+
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
| 6 |
+
does not provide legal services or legal advice. Distribution of
|
| 7 |
+
Creative Commons public licenses does not create a lawyer-client or
|
| 8 |
+
other relationship. Creative Commons makes its licenses and related
|
| 9 |
+
information available on an "as-is" basis. Creative Commons gives no
|
| 10 |
+
warranties regarding its licenses, any material licensed under their
|
| 11 |
+
terms and conditions, or any related information. Creative Commons
|
| 12 |
+
disclaims all liability for damages resulting from their use to the
|
| 13 |
+
fullest extent possible.
|
| 14 |
+
|
| 15 |
+
Using Creative Commons Public Licenses
|
| 16 |
+
|
| 17 |
+
Creative Commons public licenses provide a standard set of terms and
|
| 18 |
+
conditions that creators and other rights holders may use to share
|
| 19 |
+
original works of authorship and other material subject to copyright
|
| 20 |
+
and certain other rights specified in the public license below. The
|
| 21 |
+
following considerations are for informational purposes only, are not
|
| 22 |
+
exhaustive, and do not form part of our licenses.
|
| 23 |
+
|
| 24 |
+
Considerations for licensors: Our public licenses are
|
| 25 |
+
intended for use by those authorized to give the public
|
| 26 |
+
permission to use material in ways otherwise restricted by
|
| 27 |
+
copyright and certain other rights. Our licenses are
|
| 28 |
+
irrevocable. Licensors should read and understand the terms
|
| 29 |
+
and conditions of the license they choose before applying it.
|
| 30 |
+
Licensors should also secure all rights necessary before
|
| 31 |
+
applying our licenses so that the public can reuse the
|
| 32 |
+
material as expected. Licensors should clearly mark any
|
| 33 |
+
material not subject to the license. This includes other CC-
|
| 34 |
+
licensed material, or material used under an exception or
|
| 35 |
+
limitation to copyright. More considerations for licensors:
|
| 36 |
+
wiki.creativecommons.org/Considerations_for_licensors
|
| 37 |
+
|
| 38 |
+
Considerations for the public: By using one of our public
|
| 39 |
+
licenses, a licensor grants the public permission to use the
|
| 40 |
+
licensed material under specified terms and conditions. If
|
| 41 |
+
the licensor's permission is not necessary for any reason--for
|
| 42 |
+
example, because of any applicable exception or limitation to
|
| 43 |
+
copyright--then that use is not regulated by the license. Our
|
| 44 |
+
licenses grant only permissions under copyright and certain
|
| 45 |
+
other rights that a licensor has authority to grant. Use of
|
| 46 |
+
the licensed material may still be restricted for other
|
| 47 |
+
reasons, including because others have copyright or other
|
| 48 |
+
rights in the material. A licensor may make special requests,
|
| 49 |
+
such as asking that all changes be marked or described.
|
| 50 |
+
Although not required by our licenses, you are encouraged to
|
| 51 |
+
respect those requests where reasonable. More considerations
|
| 52 |
+
for the public:
|
| 53 |
+
wiki.creativecommons.org/Considerations_for_licensees
|
| 54 |
+
|
| 55 |
+
=======================================================================
|
| 56 |
+
|
| 57 |
+
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
|
| 58 |
+
Public License
|
| 59 |
+
|
| 60 |
+
By exercising the Licensed Rights (defined below), You accept and agree
|
| 61 |
+
to be bound by the terms and conditions of this Creative Commons
|
| 62 |
+
Attribution-NonCommercial-ShareAlike 4.0 International Public License
|
| 63 |
+
("Public License"). To the extent this Public License may be
|
| 64 |
+
interpreted as a contract, You are granted the Licensed Rights in
|
| 65 |
+
consideration of Your acceptance of these terms and conditions, and the
|
| 66 |
+
Licensor grants You such rights in consideration of benefits the
|
| 67 |
+
Licensor receives from making the Licensed Material available under
|
| 68 |
+
these terms and conditions.
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
Section 1 -- Definitions.
|
| 72 |
+
|
| 73 |
+
a. Adapted Material means material subject to Copyright and Similar
|
| 74 |
+
Rights that is derived from or based upon the Licensed Material
|
| 75 |
+
and in which the Licensed Material is translated, altered,
|
| 76 |
+
arranged, transformed, or otherwise modified in a manner requiring
|
| 77 |
+
permission under the Copyright and Similar Rights held by the
|
| 78 |
+
Licensor. For purposes of this Public License, where the Licensed
|
| 79 |
+
Material is a musical work, performance, or sound recording,
|
| 80 |
+
Adapted Material is always produced where the Licensed Material is
|
| 81 |
+
synched in timed relation with a moving image.
|
| 82 |
+
|
| 83 |
+
b. Adapter's License means the license You apply to Your Copyright
|
| 84 |
+
and Similar Rights in Your contributions to Adapted Material in
|
| 85 |
+
accordance with the terms and conditions of this Public License.
|
| 86 |
+
|
| 87 |
+
c. BY-NC-SA Compatible License means a license listed at
|
| 88 |
+
creativecommons.org/compatiblelicenses, approved by Creative
|
| 89 |
+
Commons as essentially the equivalent of this Public License.
|
| 90 |
+
|
| 91 |
+
d. Copyright and Similar Rights means copyright and/or similar rights
|
| 92 |
+
closely related to copyright including, without limitation,
|
| 93 |
+
performance, broadcast, sound recording, and Sui Generis Database
|
| 94 |
+
Rights, without regard to how the rights are labeled or
|
| 95 |
+
categorized. For purposes of this Public License, the rights
|
| 96 |
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
| 97 |
+
Rights.
|
| 98 |
+
|
| 99 |
+
e. Effective Technological Measures means those measures that, in the
|
| 100 |
+
absence of proper authority, may not be circumvented under laws
|
| 101 |
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
| 102 |
+
Treaty adopted on December 20, 1996, and/or similar international
|
| 103 |
+
agreements.
|
| 104 |
+
|
| 105 |
+
f. Exceptions and Limitations means fair use, fair dealing, and/or
|
| 106 |
+
any other exception or limitation to Copyright and Similar Rights
|
| 107 |
+
that applies to Your use of the Licensed Material.
|
| 108 |
+
|
| 109 |
+
g. License Elements means the license attributes listed in the name
|
| 110 |
+
of a Creative Commons Public License. The License Elements of this
|
| 111 |
+
Public License are Attribution, NonCommercial, and ShareAlike.
|
| 112 |
+
|
| 113 |
+
h. Licensed Material means the artistic or literary work, database,
|
| 114 |
+
or other material to which the Licensor applied this Public
|
| 115 |
+
License.
|
| 116 |
+
|
| 117 |
+
i. Licensed Rights means the rights granted to You subject to the
|
| 118 |
+
terms and conditions of this Public License, which are limited to
|
| 119 |
+
all Copyright and Similar Rights that apply to Your use of the
|
| 120 |
+
Licensed Material and that the Licensor has authority to license.
|
| 121 |
+
|
| 122 |
+
j. Licensor means the individual(s) or entity(ies) granting rights
|
| 123 |
+
under this Public License.
|
| 124 |
+
|
| 125 |
+
k. NonCommercial means not primarily intended for or directed towards
|
| 126 |
+
commercial advantage or monetary compensation. For purposes of
|
| 127 |
+
this Public License, the exchange of the Licensed Material for
|
| 128 |
+
other material subject to Copyright and Similar Rights by digital
|
| 129 |
+
file-sharing or similar means is NonCommercial provided there is
|
| 130 |
+
no payment of monetary compensation in connection with the
|
| 131 |
+
exchange.
|
| 132 |
+
|
| 133 |
+
l. Share means to provide material to the public by any means or
|
| 134 |
+
process that requires permission under the Licensed Rights, such
|
| 135 |
+
as reproduction, public display, public performance, distribution,
|
| 136 |
+
dissemination, communication, or importation, and to make material
|
| 137 |
+
available to the public including in ways that members of the
|
| 138 |
+
public may access the material from a place and at a time
|
| 139 |
+
individually chosen by them.
|
| 140 |
+
|
| 141 |
+
m. Sui Generis Database Rights means rights other than copyright
|
| 142 |
+
resulting from Directive 96/9/EC of the European Parliament and of
|
| 143 |
+
the Council of 11 March 1996 on the legal protection of databases,
|
| 144 |
+
as amended and/or succeeded, as well as other essentially
|
| 145 |
+
equivalent rights anywhere in the world.
|
| 146 |
+
|
| 147 |
+
n. You means the individual or entity exercising the Licensed Rights
|
| 148 |
+
under this Public License. Your has a corresponding meaning.
|
| 149 |
+
|
| 150 |
+
|
| 151 |
+
Section 2 -- Scope.
|
| 152 |
+
|
| 153 |
+
a. License grant.
|
| 154 |
+
|
| 155 |
+
1. Subject to the terms and conditions of this Public License,
|
| 156 |
+
the Licensor hereby grants You a worldwide, royalty-free,
|
| 157 |
+
non-sublicensable, non-exclusive, irrevocable license to
|
| 158 |
+
exercise the Licensed Rights in the Licensed Material to:
|
| 159 |
+
|
| 160 |
+
a. reproduce and Share the Licensed Material, in whole or
|
| 161 |
+
in part, for NonCommercial purposes only; and
|
| 162 |
+
|
| 163 |
+
b. produce, reproduce, and Share Adapted Material for
|
| 164 |
+
NonCommercial purposes only.
|
| 165 |
+
|
| 166 |
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
| 167 |
+
Exceptions and Limitations apply to Your use, this Public
|
| 168 |
+
License does not apply, and You do not need to comply with
|
| 169 |
+
its terms and conditions.
|
| 170 |
+
|
| 171 |
+
3. Term. The term of this Public License is specified in Section
|
| 172 |
+
6(a).
|
| 173 |
+
|
| 174 |
+
4. Media and formats; technical modifications allowed. The
|
| 175 |
+
Licensor authorizes You to exercise the Licensed Rights in
|
| 176 |
+
all media and formats whether now known or hereafter created,
|
| 177 |
+
and to make technical modifications necessary to do so. The
|
| 178 |
+
Licensor waives and/or agrees not to assert any right or
|
| 179 |
+
authority to forbid You from making technical modifications
|
| 180 |
+
necessary to exercise the Licensed Rights, including
|
| 181 |
+
technical modifications necessary to circumvent Effective
|
| 182 |
+
Technological Measures. For purposes of this Public License,
|
| 183 |
+
simply making modifications authorized by this Section 2(a)
|
| 184 |
+
(4) never produces Adapted Material.
|
| 185 |
+
|
| 186 |
+
5. Downstream recipients.
|
| 187 |
+
|
| 188 |
+
a. Offer from the Licensor -- Licensed Material. Every
|
| 189 |
+
recipient of the Licensed Material automatically
|
| 190 |
+
receives an offer from the Licensor to exercise the
|
| 191 |
+
Licensed Rights under the terms and conditions of this
|
| 192 |
+
Public License.
|
| 193 |
+
|
| 194 |
+
b. Additional offer from the Licensor -- Adapted Material.
|
| 195 |
+
Every recipient of Adapted Material from You
|
| 196 |
+
automatically receives an offer from the Licensor to
|
| 197 |
+
exercise the Licensed Rights in the Adapted Material
|
| 198 |
+
under the conditions of the Adapter's License You apply.
|
| 199 |
+
|
| 200 |
+
c. No downstream restrictions. You may not offer or impose
|
| 201 |
+
any additional or different terms or conditions on, or
|
| 202 |
+
apply any Effective Technological Measures to, the
|
| 203 |
+
Licensed Material if doing so restricts exercise of the
|
| 204 |
+
Licensed Rights by any recipient of the Licensed
|
| 205 |
+
Material.
|
| 206 |
+
|
| 207 |
+
6. No endorsement. Nothing in this Public License constitutes or
|
| 208 |
+
may be construed as permission to assert or imply that You
|
| 209 |
+
are, or that Your use of the Licensed Material is, connected
|
| 210 |
+
with, or sponsored, endorsed, or granted official status by,
|
| 211 |
+
the Licensor or others designated to receive attribution as
|
| 212 |
+
provided in Section 3(a)(1)(A)(i).
|
| 213 |
+
|
| 214 |
+
b. Other rights.
|
| 215 |
+
|
| 216 |
+
1. Moral rights, such as the right of integrity, are not
|
| 217 |
+
licensed under this Public License, nor are publicity,
|
| 218 |
+
privacy, and/or other similar personality rights; however, to
|
| 219 |
+
the extent possible, the Licensor waives and/or agrees not to
|
| 220 |
+
assert any such rights held by the Licensor to the limited
|
| 221 |
+
extent necessary to allow You to exercise the Licensed
|
| 222 |
+
Rights, but not otherwise.
|
| 223 |
+
|
| 224 |
+
2. Patent and trademark rights are not licensed under this
|
| 225 |
+
Public License.
|
| 226 |
+
|
| 227 |
+
3. To the extent possible, the Licensor waives any right to
|
| 228 |
+
collect royalties from You for the exercise of the Licensed
|
| 229 |
+
Rights, whether directly or through a collecting society
|
| 230 |
+
under any voluntary or waivable statutory or compulsory
|
| 231 |
+
licensing scheme. In all other cases the Licensor expressly
|
| 232 |
+
reserves any right to collect such royalties, including when
|
| 233 |
+
the Licensed Material is used other than for NonCommercial
|
| 234 |
+
purposes.
|
| 235 |
+
|
| 236 |
+
|
| 237 |
+
Section 3 -- License Conditions.
|
| 238 |
+
|
| 239 |
+
Your exercise of the Licensed Rights is expressly made subject to the
|
| 240 |
+
following conditions.
|
| 241 |
+
|
| 242 |
+
a. Attribution.
|
| 243 |
+
|
| 244 |
+
1. If You Share the Licensed Material (including in modified
|
| 245 |
+
form), You must:
|
| 246 |
+
|
| 247 |
+
a. retain the following if it is supplied by the Licensor
|
| 248 |
+
with the Licensed Material:
|
| 249 |
+
|
| 250 |
+
i. identification of the creator(s) of the Licensed
|
| 251 |
+
Material and any others designated to receive
|
| 252 |
+
attribution, in any reasonable manner requested by
|
| 253 |
+
the Licensor (including by pseudonym if
|
| 254 |
+
designated);
|
| 255 |
+
|
| 256 |
+
ii. a copyright notice;
|
| 257 |
+
|
| 258 |
+
iii. a notice that refers to this Public License;
|
| 259 |
+
|
| 260 |
+
iv. a notice that refers to the disclaimer of
|
| 261 |
+
warranties;
|
| 262 |
+
|
| 263 |
+
v. a URI or hyperlink to the Licensed Material to the
|
| 264 |
+
extent reasonably practicable;
|
| 265 |
+
|
| 266 |
+
b. indicate if You modified the Licensed Material and
|
| 267 |
+
retain an indication of any previous modifications; and
|
| 268 |
+
|
| 269 |
+
c. indicate the Licensed Material is licensed under this
|
| 270 |
+
Public License, and include the text of, or the URI or
|
| 271 |
+
hyperlink to, this Public License.
|
| 272 |
+
|
| 273 |
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
| 274 |
+
reasonable manner based on the medium, means, and context in
|
| 275 |
+
which You Share the Licensed Material. For example, it may be
|
| 276 |
+
reasonable to satisfy the conditions by providing a URI or
|
| 277 |
+
hyperlink to a resource that includes the required
|
| 278 |
+
information.
|
| 279 |
+
3. If requested by the Licensor, You must remove any of the
|
| 280 |
+
information required by Section 3(a)(1)(A) to the extent
|
| 281 |
+
reasonably practicable.
|
| 282 |
+
|
| 283 |
+
b. ShareAlike.
|
| 284 |
+
|
| 285 |
+
In addition to the conditions in Section 3(a), if You Share
|
| 286 |
+
Adapted Material You produce, the following conditions also apply.
|
| 287 |
+
|
| 288 |
+
1. The Adapter's License You apply must be a Creative Commons
|
| 289 |
+
license with the same License Elements, this version or
|
| 290 |
+
later, or a BY-NC-SA Compatible License.
|
| 291 |
+
|
| 292 |
+
2. You must include the text of, or the URI or hyperlink to, the
|
| 293 |
+
Adapter's License You apply. You may satisfy this condition
|
| 294 |
+
in any reasonable manner based on the medium, means, and
|
| 295 |
+
context in which You Share Adapted Material.
|
| 296 |
+
|
| 297 |
+
3. You may not offer or impose any additional or different terms
|
| 298 |
+
or conditions on, or apply any Effective Technological
|
| 299 |
+
Measures to, Adapted Material that restrict exercise of the
|
| 300 |
+
rights granted under the Adapter's License You apply.
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
Section 4 -- Sui Generis Database Rights.
|
| 304 |
+
|
| 305 |
+
Where the Licensed Rights include Sui Generis Database Rights that
|
| 306 |
+
apply to Your use of the Licensed Material:
|
| 307 |
+
|
| 308 |
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
| 309 |
+
to extract, reuse, reproduce, and Share all or a substantial
|
| 310 |
+
portion of the contents of the database for NonCommercial purposes
|
| 311 |
+
only;
|
| 312 |
+
|
| 313 |
+
b. if You include all or a substantial portion of the database
|
| 314 |
+
contents in a database in which You have Sui Generis Database
|
| 315 |
+
Rights, then the database in which You have Sui Generis Database
|
| 316 |
+
Rights (but not its individual contents) is Adapted Material,
|
| 317 |
+
including for purposes of Section 3(b); and
|
| 318 |
+
|
| 319 |
+
c. You must comply with the conditions in Section 3(a) if You Share
|
| 320 |
+
all or a substantial portion of the contents of the database.
|
| 321 |
+
|
| 322 |
+
For the avoidance of doubt, this Section 4 supplements and does not
|
| 323 |
+
replace Your obligations under this Public License where the Licensed
|
| 324 |
+
Rights include other Copyright and Similar Rights.
|
| 325 |
+
|
| 326 |
+
|
| 327 |
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
| 328 |
+
|
| 329 |
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
| 330 |
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
| 331 |
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
| 332 |
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
| 333 |
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
| 334 |
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
| 335 |
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
| 336 |
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
| 337 |
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
| 338 |
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
| 339 |
+
|
| 340 |
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
| 341 |
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
| 342 |
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
| 343 |
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
| 344 |
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
| 345 |
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
| 346 |
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
| 347 |
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
| 348 |
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
| 349 |
+
|
| 350 |
+
c. The disclaimer of warranties and limitation of liability provided
|
| 351 |
+
above shall be interpreted in a manner that, to the extent
|
| 352 |
+
possible, most closely approximates an absolute disclaimer and
|
| 353 |
+
waiver of all liability.
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
Section 6 -- Term and Termination.
|
| 357 |
+
|
| 358 |
+
a. This Public License applies for the term of the Copyright and
|
| 359 |
+
Similar Rights licensed here. However, if You fail to comply with
|
| 360 |
+
this Public License, then Your rights under this Public License
|
| 361 |
+
terminate automatically.
|
| 362 |
+
|
| 363 |
+
b. Where Your right to use the Licensed Material has terminated under
|
| 364 |
+
Section 6(a), it reinstates:
|
| 365 |
+
|
| 366 |
+
1. automatically as of the date the violation is cured, provided
|
| 367 |
+
it is cured within 30 days of Your discovery of the
|
| 368 |
+
violation; or
|
| 369 |
+
|
| 370 |
+
2. upon express reinstatement by the Licensor.
|
| 371 |
+
|
| 372 |
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
| 373 |
+
right the Licensor may have to seek remedies for Your violations
|
| 374 |
+
of this Public License.
|
| 375 |
+
|
| 376 |
+
c. For the avoidance of doubt, the Licensor may also offer the
|
| 377 |
+
Licensed Material under separate terms or conditions or stop
|
| 378 |
+
distributing the Licensed Material at any time; however, doing so
|
| 379 |
+
will not terminate this Public License.
|
| 380 |
+
|
| 381 |
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
| 382 |
+
License.
|
| 383 |
+
|
| 384 |
+
|
| 385 |
+
Section 7 -- Other Terms and Conditions.
|
| 386 |
+
|
| 387 |
+
a. The Licensor shall not be bound by any additional or different
|
| 388 |
+
terms or conditions communicated by You unless expressly agreed.
|
| 389 |
+
|
| 390 |
+
b. Any arrangements, understandings, or agreements regarding the
|
| 391 |
+
Licensed Material not stated herein are separate from and
|
| 392 |
+
independent of the terms and conditions of this Public License.
|
| 393 |
+
|
| 394 |
+
|
| 395 |
+
Section 8 -- Interpretation.
|
| 396 |
+
|
| 397 |
+
a. For the avoidance of doubt, this Public License does not, and
|
| 398 |
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
| 399 |
+
conditions on any use of the Licensed Material that could lawfully
|
| 400 |
+
be made without permission under this Public License.
|
| 401 |
+
|
| 402 |
+
b. To the extent possible, if any provision of this Public License is
|
| 403 |
+
deemed unenforceable, it shall be automatically reformed to the
|
| 404 |
+
minimum extent necessary to make it enforceable. If the provision
|
| 405 |
+
cannot be reformed, it shall be severed from this Public License
|
| 406 |
+
without affecting the enforceability of the remaining terms and
|
| 407 |
+
conditions.
|
| 408 |
+
|
| 409 |
+
c. No term or condition of this Public License will be waived and no
|
| 410 |
+
failure to comply consented to unless expressly agreed to by the
|
| 411 |
+
Licensor.
|
| 412 |
+
|
| 413 |
+
d. Nothing in this Public License constitutes or may be interpreted
|
| 414 |
+
as a limitation upon, or waiver of, any privileges and immunities
|
| 415 |
+
that apply to the Licensor or You, including from the legal
|
| 416 |
+
processes of any jurisdiction or authority.
|
| 417 |
+
|
| 418 |
+
=======================================================================
|
| 419 |
+
|
| 420 |
+
Creative Commons is not a party to its public
|
| 421 |
+
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
| 422 |
+
its public licenses to material it publishes and in those instances
|
| 423 |
+
will be considered the “Licensor.” The text of the Creative Commons
|
| 424 |
+
public licenses is dedicated to the public domain under the CC0 Public
|
| 425 |
+
Domain Dedication. Except for the limited purpose of indicating that
|
| 426 |
+
material is shared under a Creative Commons public license or as
|
| 427 |
+
otherwise permitted by the Creative Commons policies published at
|
| 428 |
+
creativecommons.org/policies, Creative Commons does not authorize the
|
| 429 |
+
use of the trademark "Creative Commons" or any other trademark or logo
|
| 430 |
+
of Creative Commons without its prior written consent including,
|
| 431 |
+
without limitation, in connection with any unauthorized modifications
|
| 432 |
+
to any of its public licenses or any other arrangements,
|
| 433 |
+
understandings, or agreements concerning use of licensed material. For
|
| 434 |
+
the avoidance of doubt, this paragraph does not form part of the
|
| 435 |
+
public licenses.
|
| 436 |
+
|
| 437 |
+
Creative Commons may be contacted at creativecommons.org.
|
README.md
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
<div align="center">
|
| 3 |
+
<h1>IDM-VTON: Improving Diffusion Models for Authentic Virtual Try-on in the Wild</h1>
|
| 4 |
+
|
| 5 |
+
<a href='https://idm-vton.github.io'><img src='https://img.shields.io/badge/Project-Page-green'></a>
|
| 6 |
+
<a href='https://arxiv.org/abs/2403.05139'><img src='https://img.shields.io/badge/Paper-Arxiv-red'></a>
|
| 7 |
+
<a href='https://huggingface.co/spaces/yisol/IDM-VTON'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Demo-yellow'></a>
|
| 8 |
+
<a href='https://huggingface.co/yisol/IDM-VTON'><img src='https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-Model-blue'></a>
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
</div>
|
| 12 |
+
|
| 13 |
+
This is the official implementation of the paper ["Improving Diffusion Models for Authentic Virtual Try-on in the Wild"](https://arxiv.org/abs/2403.05139).
|
| 14 |
+
|
| 15 |
+
Star ⭐ us if you like it!
|
| 16 |
+
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+

|
| 21 |
+

|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
## Requirements
|
| 26 |
+
|
| 27 |
+
```
|
| 28 |
+
git clone https://github.com/yisol/IDM-VTON.git
|
| 29 |
+
cd IDM-VTON
|
| 30 |
+
|
| 31 |
+
conda env create -f environment.yaml
|
| 32 |
+
conda activate idm
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
## Data preparation
|
| 36 |
+
|
| 37 |
+
### VITON-HD
|
| 38 |
+
You can download VITON-HD dataset from [VITON-HD](https://github.com/shadow2496/VITON-HD).
|
| 39 |
+
|
| 40 |
+
After download VITON-HD dataset, move vitonhd_test_tagged.json into the test folder, and move vitonhd_train_tagged.json into the train folder.
|
| 41 |
+
|
| 42 |
+
Structure of the Dataset directory should be as follows.
|
| 43 |
+
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
train
|
| 47 |
+
|-- image
|
| 48 |
+
|-- image-densepose
|
| 49 |
+
|-- agnostic-mask
|
| 50 |
+
|-- cloth
|
| 51 |
+
|-- vitonhd_train_tagged.json
|
| 52 |
+
|
| 53 |
+
test
|
| 54 |
+
|-- image
|
| 55 |
+
|-- image-densepose
|
| 56 |
+
|-- agnostic-mask
|
| 57 |
+
|-- cloth
|
| 58 |
+
|-- vitonhd_test_tagged.json
|
| 59 |
+
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
### DressCode
|
| 63 |
+
You can download DressCode dataset from [DressCode](https://github.com/aimagelab/dress-code).
|
| 64 |
+
|
| 65 |
+
We provide pre-computed densepose images and captions for garments [here](https://kaistackr-my.sharepoint.com/:u:/g/personal/cpis7_kaist_ac_kr/EaIPRG-aiRRIopz9i002FOwBDa-0-BHUKVZ7Ia5yAVVG3A?e=YxkAip).
|
| 66 |
+
|
| 67 |
+
We used [detectron2](https://github.com/facebookresearch/detectron2) for obtaining densepose images, refer [here](https://github.com/sangyun884/HR-VITON/issues/45) for more details.
|
| 68 |
+
|
| 69 |
+
After download the DressCode dataset, place image-densepose directories and caption text files as follows.
|
| 70 |
+
|
| 71 |
+
```
|
| 72 |
+
DressCode
|
| 73 |
+
|-- dresses
|
| 74 |
+
|-- images
|
| 75 |
+
|-- image-densepose
|
| 76 |
+
|-- dc_caption.txt
|
| 77 |
+
|-- ...
|
| 78 |
+
|-- lower_body
|
| 79 |
+
|-- images
|
| 80 |
+
|-- image-densepose
|
| 81 |
+
|-- dc_caption.txt
|
| 82 |
+
|-- ...
|
| 83 |
+
|-- upper_body
|
| 84 |
+
|-- images
|
| 85 |
+
|-- image-densepose
|
| 86 |
+
|-- dc_caption.txt
|
| 87 |
+
|-- ...
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
## Training
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
### Preparation
|
| 95 |
+
|
| 96 |
+
Download pre-trained ip-adapter for sdxl(IP-Adapter/sdxl_models/ip-adapter-plus_sdxl_vit-h.bin) and image encoder(IP-Adapter/models/image_encoder) [here](https://github.com/tencent-ailab/IP-Adapter).
|
| 97 |
+
|
| 98 |
+
```
|
| 99 |
+
git clone https://huggingface.co/h94/IP-Adapter
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
Move ip-adapter to ckpt/ip_adapter, and image encoder to ckpt/image_encoder.
|
| 103 |
+
|
| 104 |
+
Start training using python file with arguments,
|
| 105 |
+
|
| 106 |
+
```
|
| 107 |
+
accelerate launch train_xl.py \
|
| 108 |
+
--gradient_checkpointing --use_8bit_adam \
|
| 109 |
+
--output_dir=result --train_batch_size=6 \
|
| 110 |
+
--data_dir=DATA_DIR
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
or, you can simply run with the script file.
|
| 114 |
+
|
| 115 |
+
```
|
| 116 |
+
sh train_xl.sh
|
| 117 |
+
```
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
## Inference
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
### VITON-HD
|
| 124 |
+
|
| 125 |
+
Inference using python file with arguments,
|
| 126 |
+
|
| 127 |
+
```
|
| 128 |
+
accelerate launch inference.py \
|
| 129 |
+
--width 768 --height 1024 --num_inference_steps 30 \
|
| 130 |
+
--output_dir "result" \
|
| 131 |
+
--unpaired \
|
| 132 |
+
--data_dir "DATA_DIR" \
|
| 133 |
+
--seed 42 \
|
| 134 |
+
--test_batch_size 2 \
|
| 135 |
+
--guidance_scale 2.0
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
or, you can simply run with the script file.
|
| 139 |
+
|
| 140 |
+
```
|
| 141 |
+
sh inference.sh
|
| 142 |
+
```
|
| 143 |
+
|
| 144 |
+
### DressCode
|
| 145 |
+
|
| 146 |
+
For DressCode dataset, put the category you want to generate images via category argument,
|
| 147 |
+
```
|
| 148 |
+
accelerate launch inference_dc.py \
|
| 149 |
+
--width 768 --height 1024 --num_inference_steps 30 \
|
| 150 |
+
--output_dir "result" \
|
| 151 |
+
--unpaired \
|
| 152 |
+
--data_dir "DATA_DIR" \
|
| 153 |
+
--seed 42
|
| 154 |
+
--test_batch_size 2
|
| 155 |
+
--guidance_scale 2.0
|
| 156 |
+
--category "upper_body"
|
| 157 |
+
```
|
| 158 |
+
|
| 159 |
+
or, you can simply run with the script file.
|
| 160 |
+
```
|
| 161 |
+
sh inference.sh
|
| 162 |
+
```
|
| 163 |
+
|
| 164 |
+
## Start a local gradio demo <a href='https://github.com/gradio-app/gradio'><img src='https://img.shields.io/github/stars/gradio-app/gradio'></a>
|
| 165 |
+
|
| 166 |
+
Download checkpoints for human parsing [here](https://huggingface.co/spaces/yisol/IDM-VTON/tree/main/ckpt).
|
| 167 |
+
|
| 168 |
+
Place the checkpoints under the ckpt folder.
|
| 169 |
+
```
|
| 170 |
+
ckpt
|
| 171 |
+
|-- densepose
|
| 172 |
+
|-- model_final_162be9.pkl
|
| 173 |
+
|-- humanparsing
|
| 174 |
+
|-- parsing_atr.onnx
|
| 175 |
+
|-- parsing_lip.onnx
|
| 176 |
+
|
| 177 |
+
|-- openpose
|
| 178 |
+
|-- ckpts
|
| 179 |
+
|-- body_pose_model.pth
|
| 180 |
+
|
| 181 |
+
```
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
Run the following command:
|
| 187 |
+
|
| 188 |
+
```python
|
| 189 |
+
python gradio_demo/app.py
|
| 190 |
+
```
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
|
| 197 |
+
## Acknowledgements
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
Thanks [ZeroGPU](https://huggingface.co/zero-gpu-explorers) for providing free GPU.
|
| 201 |
+
|
| 202 |
+
Thanks [IP-Adapter](https://github.com/tencent-ailab/IP-Adapter) for base codes.
|
| 203 |
+
|
| 204 |
+
Thanks [OOTDiffusion](https://github.com/levihsu/OOTDiffusion) and [DCI-VTON](https://github.com/bcmi/DCI-VTON-Virtual-Try-On) for masking generation.
|
| 205 |
+
|
| 206 |
+
Thanks [SCHP](https://github.com/GoGoDuck912/Self-Correction-Human-Parsing) for human segmentation.
|
| 207 |
+
|
| 208 |
+
Thanks [Densepose](https://github.com/facebookresearch/DensePose) for human densepose.
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
## Star History
|
| 213 |
+
|
| 214 |
+
[](https://star-history.com/#yisol/IDM-VTON&Date)
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
## Citation
|
| 219 |
+
```
|
| 220 |
+
@article{choi2024improving,
|
| 221 |
+
title={Improving Diffusion Models for Authentic Virtual Try-on in the Wild},
|
| 222 |
+
author={Choi, Yisol and Kwak, Sangkyung and Lee, Kyungmin and Choi, Hyungwon and Shin, Jinwoo},
|
| 223 |
+
journal={arXiv preprint arXiv:2403.05139},
|
| 224 |
+
year={2024}
|
| 225 |
+
}
|
| 226 |
+
```
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
|
| 230 |
+
## License
|
| 231 |
+
The codes and checkpoints in this repository are under the [CC BY-NC-SA 4.0 license](https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode).
|
| 232 |
+
|
| 233 |
+
|
assets/teaser.png
ADDED
|
Git LFS Details
|
assets/teaser2.png
ADDED
|
Git LFS Details
|
ckpt/densepose/model_final_162be9.pkl
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
put model_final_162be9.pkl here
|
ckpt/humanparsing/parsing_atr.onnx
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
put parsing_atr.onnx here
|
ckpt/humanparsing/parsing_lip.onnx
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
put parsing_lip.onnx here
|
ckpt/image_encoder/config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:625d37b31afbf2f0792a87846b3654ee23f20568409e35b78a1f795b04e1a7a1
|
| 3 |
+
size 560
|
ckpt/image_encoder/model.safetensors
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
put image encoder ckpt here
|
ckpt/ip_adapter/ip-adapter-plus_sdxl_vit-h.bin
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
put ip adapter ckpt here
|
ckpt/openpose/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
ckpt/openpose/ckpts/body_pose_model.pth
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
put body_pose_model.pth here
|
configs/Base-DensePose-RCNN-FPN.yaml
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
VERSION: 2
|
| 2 |
+
MODEL:
|
| 3 |
+
META_ARCHITECTURE: "GeneralizedRCNN"
|
| 4 |
+
BACKBONE:
|
| 5 |
+
NAME: "build_resnet_fpn_backbone"
|
| 6 |
+
RESNETS:
|
| 7 |
+
OUT_FEATURES: ["res2", "res3", "res4", "res5"]
|
| 8 |
+
FPN:
|
| 9 |
+
IN_FEATURES: ["res2", "res3", "res4", "res5"]
|
| 10 |
+
ANCHOR_GENERATOR:
|
| 11 |
+
SIZES: [[32], [64], [128], [256], [512]] # One size for each in feature map
|
| 12 |
+
ASPECT_RATIOS: [[0.5, 1.0, 2.0]] # Three aspect ratios (same for all in feature maps)
|
| 13 |
+
RPN:
|
| 14 |
+
IN_FEATURES: ["p2", "p3", "p4", "p5", "p6"]
|
| 15 |
+
PRE_NMS_TOPK_TRAIN: 2000 # Per FPN level
|
| 16 |
+
PRE_NMS_TOPK_TEST: 1000 # Per FPN level
|
| 17 |
+
# Detectron1 uses 2000 proposals per-batch,
|
| 18 |
+
# (See "modeling/rpn/rpn_outputs.py" for details of this legacy issue)
|
| 19 |
+
# which is approximately 1000 proposals per-image since the default batch size for FPN is 2.
|
| 20 |
+
POST_NMS_TOPK_TRAIN: 1000
|
| 21 |
+
POST_NMS_TOPK_TEST: 1000
|
| 22 |
+
|
| 23 |
+
DENSEPOSE_ON: True
|
| 24 |
+
ROI_HEADS:
|
| 25 |
+
NAME: "DensePoseROIHeads"
|
| 26 |
+
IN_FEATURES: ["p2", "p3", "p4", "p5"]
|
| 27 |
+
NUM_CLASSES: 1
|
| 28 |
+
ROI_BOX_HEAD:
|
| 29 |
+
NAME: "FastRCNNConvFCHead"
|
| 30 |
+
NUM_FC: 2
|
| 31 |
+
POOLER_RESOLUTION: 7
|
| 32 |
+
POOLER_SAMPLING_RATIO: 2
|
| 33 |
+
POOLER_TYPE: "ROIAlign"
|
| 34 |
+
ROI_DENSEPOSE_HEAD:
|
| 35 |
+
NAME: "DensePoseV1ConvXHead"
|
| 36 |
+
POOLER_TYPE: "ROIAlign"
|
| 37 |
+
NUM_COARSE_SEGM_CHANNELS: 2
|
| 38 |
+
DATASETS:
|
| 39 |
+
TRAIN: ("densepose_coco_2014_train", "densepose_coco_2014_valminusminival")
|
| 40 |
+
TEST: ("densepose_coco_2014_minival",)
|
| 41 |
+
SOLVER:
|
| 42 |
+
IMS_PER_BATCH: 16
|
| 43 |
+
BASE_LR: 0.01
|
| 44 |
+
STEPS: (60000, 80000)
|
| 45 |
+
MAX_ITER: 90000
|
| 46 |
+
WARMUP_FACTOR: 0.1
|
| 47 |
+
INPUT:
|
| 48 |
+
MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800)
|
configs/HRNet/densepose_rcnn_HRFPN_HRNet_w32_s1x.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "../Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "https://1drv.ms/u/s!Aus8VCZ_C_33dYBMemi9xOUFR0w"
|
| 4 |
+
BACKBONE:
|
| 5 |
+
NAME: "build_hrfpn_backbone"
|
| 6 |
+
RPN:
|
| 7 |
+
IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5']
|
| 8 |
+
ROI_HEADS:
|
| 9 |
+
IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5']
|
| 10 |
+
SOLVER:
|
| 11 |
+
MAX_ITER: 130000
|
| 12 |
+
STEPS: (100000, 120000)
|
| 13 |
+
CLIP_GRADIENTS:
|
| 14 |
+
ENABLED: True
|
| 15 |
+
CLIP_TYPE: "norm"
|
| 16 |
+
BASE_LR: 0.03
|
configs/HRNet/densepose_rcnn_HRFPN_HRNet_w40_s1x.yaml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "../Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "https://1drv.ms/u/s!Aus8VCZ_C_33ck0gvo5jfoWBOPo"
|
| 4 |
+
BACKBONE:
|
| 5 |
+
NAME: "build_hrfpn_backbone"
|
| 6 |
+
RPN:
|
| 7 |
+
IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5']
|
| 8 |
+
ROI_HEADS:
|
| 9 |
+
IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5']
|
| 10 |
+
HRNET:
|
| 11 |
+
STAGE2:
|
| 12 |
+
NUM_CHANNELS: [40, 80]
|
| 13 |
+
STAGE3:
|
| 14 |
+
NUM_CHANNELS: [40, 80, 160]
|
| 15 |
+
STAGE4:
|
| 16 |
+
NUM_CHANNELS: [40, 80, 160, 320]
|
| 17 |
+
SOLVER:
|
| 18 |
+
MAX_ITER: 130000
|
| 19 |
+
STEPS: (100000, 120000)
|
| 20 |
+
CLIP_GRADIENTS:
|
| 21 |
+
ENABLED: True
|
| 22 |
+
CLIP_TYPE: "norm"
|
| 23 |
+
BASE_LR: 0.03
|
configs/HRNet/densepose_rcnn_HRFPN_HRNet_w48_s1x.yaml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "../Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "https://1drv.ms/u/s!Aus8VCZ_C_33dKvqI6pBZlifgJk"
|
| 4 |
+
BACKBONE:
|
| 5 |
+
NAME: "build_hrfpn_backbone"
|
| 6 |
+
RPN:
|
| 7 |
+
IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5']
|
| 8 |
+
ROI_HEADS:
|
| 9 |
+
IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5']
|
| 10 |
+
HRNET:
|
| 11 |
+
STAGE2:
|
| 12 |
+
NUM_CHANNELS: [48, 96]
|
| 13 |
+
STAGE3:
|
| 14 |
+
NUM_CHANNELS: [48, 96, 192]
|
| 15 |
+
STAGE4:
|
| 16 |
+
NUM_CHANNELS: [48, 96, 192, 384]
|
| 17 |
+
SOLVER:
|
| 18 |
+
MAX_ITER: 130000
|
| 19 |
+
STEPS: (100000, 120000)
|
| 20 |
+
CLIP_GRADIENTS:
|
| 21 |
+
ENABLED: True
|
| 22 |
+
CLIP_TYPE: "norm"
|
| 23 |
+
BASE_LR: 0.03
|
configs/cse/Base-DensePose-RCNN-FPN-Human.yaml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
ROI_DENSEPOSE_HEAD:
|
| 4 |
+
CSE:
|
| 5 |
+
EMBEDDERS:
|
| 6 |
+
"smpl_27554":
|
| 7 |
+
TYPE: vertex_feature
|
| 8 |
+
NUM_VERTICES: 27554
|
| 9 |
+
FEATURE_DIM: 256
|
| 10 |
+
FEATURES_TRAINABLE: False
|
| 11 |
+
IS_TRAINABLE: True
|
| 12 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_smpl_27554_256.pkl"
|
| 13 |
+
DATASETS:
|
| 14 |
+
TRAIN:
|
| 15 |
+
- "densepose_coco_2014_train_cse"
|
| 16 |
+
- "densepose_coco_2014_valminusminival_cse"
|
| 17 |
+
TEST:
|
| 18 |
+
- "densepose_coco_2014_minival_cse"
|
| 19 |
+
CLASS_TO_MESH_NAME_MAPPING:
|
| 20 |
+
"0": "smpl_27554"
|
configs/cse/Base-DensePose-RCNN-FPN.yaml
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
VERSION: 2
|
| 2 |
+
MODEL:
|
| 3 |
+
META_ARCHITECTURE: "GeneralizedRCNN"
|
| 4 |
+
BACKBONE:
|
| 5 |
+
NAME: "build_resnet_fpn_backbone"
|
| 6 |
+
RESNETS:
|
| 7 |
+
OUT_FEATURES: ["res2", "res3", "res4", "res5"]
|
| 8 |
+
FPN:
|
| 9 |
+
IN_FEATURES: ["res2", "res3", "res4", "res5"]
|
| 10 |
+
ANCHOR_GENERATOR:
|
| 11 |
+
SIZES: [[32], [64], [128], [256], [512]] # One size for each in feature map
|
| 12 |
+
ASPECT_RATIOS: [[0.5, 1.0, 2.0]] # Three aspect ratios (same for all in feature maps)
|
| 13 |
+
RPN:
|
| 14 |
+
IN_FEATURES: ["p2", "p3", "p4", "p5", "p6"]
|
| 15 |
+
PRE_NMS_TOPK_TRAIN: 2000 # Per FPN level
|
| 16 |
+
PRE_NMS_TOPK_TEST: 1000 # Per FPN level
|
| 17 |
+
# Detectron1 uses 2000 proposals per-batch,
|
| 18 |
+
# (See "modeling/rpn/rpn_outputs.py" for details of this legacy issue)
|
| 19 |
+
# which is approximately 1000 proposals per-image since the default batch size for FPN is 2.
|
| 20 |
+
POST_NMS_TOPK_TRAIN: 1000
|
| 21 |
+
POST_NMS_TOPK_TEST: 1000
|
| 22 |
+
|
| 23 |
+
DENSEPOSE_ON: True
|
| 24 |
+
ROI_HEADS:
|
| 25 |
+
NAME: "DensePoseROIHeads"
|
| 26 |
+
IN_FEATURES: ["p2", "p3", "p4", "p5"]
|
| 27 |
+
NUM_CLASSES: 1
|
| 28 |
+
ROI_BOX_HEAD:
|
| 29 |
+
NAME: "FastRCNNConvFCHead"
|
| 30 |
+
NUM_FC: 2
|
| 31 |
+
POOLER_RESOLUTION: 7
|
| 32 |
+
POOLER_SAMPLING_RATIO: 2
|
| 33 |
+
POOLER_TYPE: "ROIAlign"
|
| 34 |
+
ROI_DENSEPOSE_HEAD:
|
| 35 |
+
NAME: "DensePoseV1ConvXHead"
|
| 36 |
+
POOLER_TYPE: "ROIAlign"
|
| 37 |
+
NUM_COARSE_SEGM_CHANNELS: 2
|
| 38 |
+
PREDICTOR_NAME: "DensePoseEmbeddingPredictor"
|
| 39 |
+
LOSS_NAME: "DensePoseCseLoss"
|
| 40 |
+
CSE:
|
| 41 |
+
# embedding loss, possible values:
|
| 42 |
+
# - "EmbeddingLoss"
|
| 43 |
+
# - "SoftEmbeddingLoss"
|
| 44 |
+
EMBED_LOSS_NAME: "EmbeddingLoss"
|
| 45 |
+
SOLVER:
|
| 46 |
+
IMS_PER_BATCH: 16
|
| 47 |
+
BASE_LR: 0.01
|
| 48 |
+
STEPS: (60000, 80000)
|
| 49 |
+
MAX_ITER: 90000
|
| 50 |
+
WARMUP_FACTOR: 0.1
|
| 51 |
+
CLIP_GRADIENTS:
|
| 52 |
+
CLIP_TYPE: norm
|
| 53 |
+
CLIP_VALUE: 1.0
|
| 54 |
+
ENABLED: true
|
| 55 |
+
NORM_TYPE: 2.0
|
| 56 |
+
INPUT:
|
| 57 |
+
MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800)
|
| 58 |
+
DENSEPOSE_EVALUATION:
|
| 59 |
+
TYPE: cse
|
| 60 |
+
STORAGE: file
|
configs/cse/densepose_rcnn_R_101_FPN_DL_s1x.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 101
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseDeepLabHead"
|
| 8 |
+
CSE:
|
| 9 |
+
EMBED_LOSS_NAME: "EmbeddingLoss"
|
| 10 |
+
SOLVER:
|
| 11 |
+
MAX_ITER: 130000
|
| 12 |
+
STEPS: (100000, 120000)
|
configs/cse/densepose_rcnn_R_101_FPN_DL_soft_s1x.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 101
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseDeepLabHead"
|
| 8 |
+
CSE:
|
| 9 |
+
EMBED_LOSS_NAME: "SoftEmbeddingLoss"
|
| 10 |
+
SOLVER:
|
| 11 |
+
MAX_ITER: 130000
|
| 12 |
+
STEPS: (100000, 120000)
|
configs/cse/densepose_rcnn_R_101_FPN_s1x.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 101
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseV1ConvXHead"
|
| 8 |
+
CSE:
|
| 9 |
+
EMBED_LOSS_NAME: "EmbeddingLoss"
|
| 10 |
+
SOLVER:
|
| 11 |
+
MAX_ITER: 130000
|
| 12 |
+
STEPS: (100000, 120000)
|
configs/cse/densepose_rcnn_R_101_FPN_soft_s1x.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 101
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseV1ConvXHead"
|
| 8 |
+
CSE:
|
| 9 |
+
EMBED_LOSS_NAME: "SoftEmbeddingLoss"
|
| 10 |
+
SOLVER:
|
| 11 |
+
MAX_ITER: 130000
|
| 12 |
+
STEPS: (100000, 120000)
|
configs/cse/densepose_rcnn_R_50_FPN_DL_s1x.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseDeepLabHead"
|
| 8 |
+
CSE:
|
| 9 |
+
EMBED_LOSS_NAME: "EmbeddingLoss"
|
| 10 |
+
SOLVER:
|
| 11 |
+
MAX_ITER: 130000
|
| 12 |
+
STEPS: (100000, 120000)
|
configs/cse/densepose_rcnn_R_50_FPN_DL_soft_s1x.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseDeepLabHead"
|
| 8 |
+
CSE:
|
| 9 |
+
EMBED_LOSS_NAME: "SoftEmbeddingLoss"
|
| 10 |
+
SOLVER:
|
| 11 |
+
MAX_ITER: 130000
|
| 12 |
+
STEPS: (100000, 120000)
|
configs/cse/densepose_rcnn_R_50_FPN_s1x.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseV1ConvXHead"
|
| 8 |
+
CSE:
|
| 9 |
+
EMBED_LOSS_NAME: "EmbeddingLoss"
|
| 10 |
+
SOLVER:
|
| 11 |
+
MAX_ITER: 130000
|
| 12 |
+
STEPS: (100000, 120000)
|
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_16k.yaml
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_HEADS:
|
| 7 |
+
NUM_CLASSES: 1
|
| 8 |
+
ROI_DENSEPOSE_HEAD:
|
| 9 |
+
NAME: "DensePoseV1ConvXHead"
|
| 10 |
+
COARSE_SEGM_TRAINED_BY_MASKS: True
|
| 11 |
+
CSE:
|
| 12 |
+
EMBED_LOSS_NAME: "SoftEmbeddingLoss"
|
| 13 |
+
EMBEDDING_DIST_GAUSS_SIGMA: 0.1
|
| 14 |
+
GEODESIC_DIST_GAUSS_SIGMA: 0.1
|
| 15 |
+
EMBEDDERS:
|
| 16 |
+
"cat_7466":
|
| 17 |
+
TYPE: vertex_feature
|
| 18 |
+
NUM_VERTICES: 7466
|
| 19 |
+
FEATURE_DIM: 256
|
| 20 |
+
FEATURES_TRAINABLE: False
|
| 21 |
+
IS_TRAINABLE: True
|
| 22 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl"
|
| 23 |
+
"dog_7466":
|
| 24 |
+
TYPE: vertex_feature
|
| 25 |
+
NUM_VERTICES: 7466
|
| 26 |
+
FEATURE_DIM: 256
|
| 27 |
+
FEATURES_TRAINABLE: False
|
| 28 |
+
IS_TRAINABLE: True
|
| 29 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl"
|
| 30 |
+
"sheep_5004":
|
| 31 |
+
TYPE: vertex_feature
|
| 32 |
+
NUM_VERTICES: 5004
|
| 33 |
+
FEATURE_DIM: 256
|
| 34 |
+
FEATURES_TRAINABLE: False
|
| 35 |
+
IS_TRAINABLE: True
|
| 36 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl"
|
| 37 |
+
"horse_5004":
|
| 38 |
+
TYPE: vertex_feature
|
| 39 |
+
NUM_VERTICES: 5004
|
| 40 |
+
FEATURE_DIM: 256
|
| 41 |
+
FEATURES_TRAINABLE: False
|
| 42 |
+
IS_TRAINABLE: True
|
| 43 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl"
|
| 44 |
+
"zebra_5002":
|
| 45 |
+
TYPE: vertex_feature
|
| 46 |
+
NUM_VERTICES: 5002
|
| 47 |
+
FEATURE_DIM: 256
|
| 48 |
+
FEATURES_TRAINABLE: False
|
| 49 |
+
IS_TRAINABLE: True
|
| 50 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl"
|
| 51 |
+
"giraffe_5002":
|
| 52 |
+
TYPE: vertex_feature
|
| 53 |
+
NUM_VERTICES: 5002
|
| 54 |
+
FEATURE_DIM: 256
|
| 55 |
+
FEATURES_TRAINABLE: False
|
| 56 |
+
IS_TRAINABLE: True
|
| 57 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl"
|
| 58 |
+
"elephant_5002":
|
| 59 |
+
TYPE: vertex_feature
|
| 60 |
+
NUM_VERTICES: 5002
|
| 61 |
+
FEATURE_DIM: 256
|
| 62 |
+
FEATURES_TRAINABLE: False
|
| 63 |
+
IS_TRAINABLE: True
|
| 64 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl"
|
| 65 |
+
"cow_5002":
|
| 66 |
+
TYPE: vertex_feature
|
| 67 |
+
NUM_VERTICES: 5002
|
| 68 |
+
FEATURE_DIM: 256
|
| 69 |
+
FEATURES_TRAINABLE: False
|
| 70 |
+
IS_TRAINABLE: True
|
| 71 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl"
|
| 72 |
+
"bear_4936":
|
| 73 |
+
TYPE: vertex_feature
|
| 74 |
+
NUM_VERTICES: 4936
|
| 75 |
+
FEATURE_DIM: 256
|
| 76 |
+
FEATURES_TRAINABLE: False
|
| 77 |
+
IS_TRAINABLE: True
|
| 78 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"
|
| 79 |
+
DATASETS:
|
| 80 |
+
TRAIN:
|
| 81 |
+
- "densepose_lvis_v1_ds2_train_v1"
|
| 82 |
+
TEST:
|
| 83 |
+
- "densepose_lvis_v1_ds2_val_v1"
|
| 84 |
+
WHITELISTED_CATEGORIES:
|
| 85 |
+
"densepose_lvis_v1_ds2_train_v1":
|
| 86 |
+
- 943 # sheep
|
| 87 |
+
- 1202 # zebra
|
| 88 |
+
- 569 # horse
|
| 89 |
+
- 496 # giraffe
|
| 90 |
+
- 422 # elephant
|
| 91 |
+
- 80 # cow
|
| 92 |
+
- 76 # bear
|
| 93 |
+
- 225 # cat
|
| 94 |
+
- 378 # dog
|
| 95 |
+
"densepose_lvis_v1_ds2_val_v1":
|
| 96 |
+
- 943 # sheep
|
| 97 |
+
- 1202 # zebra
|
| 98 |
+
- 569 # horse
|
| 99 |
+
- 496 # giraffe
|
| 100 |
+
- 422 # elephant
|
| 101 |
+
- 80 # cow
|
| 102 |
+
- 76 # bear
|
| 103 |
+
- 225 # cat
|
| 104 |
+
- 378 # dog
|
| 105 |
+
CATEGORY_MAPS:
|
| 106 |
+
"densepose_lvis_v1_ds2_train_v1":
|
| 107 |
+
"1202": 943 # zebra -> sheep
|
| 108 |
+
"569": 943 # horse -> sheep
|
| 109 |
+
"496": 943 # giraffe -> sheep
|
| 110 |
+
"422": 943 # elephant -> sheep
|
| 111 |
+
"80": 943 # cow -> sheep
|
| 112 |
+
"76": 943 # bear -> sheep
|
| 113 |
+
"225": 943 # cat -> sheep
|
| 114 |
+
"378": 943 # dog -> sheep
|
| 115 |
+
"densepose_lvis_v1_ds2_val_v1":
|
| 116 |
+
"1202": 943 # zebra -> sheep
|
| 117 |
+
"569": 943 # horse -> sheep
|
| 118 |
+
"496": 943 # giraffe -> sheep
|
| 119 |
+
"422": 943 # elephant -> sheep
|
| 120 |
+
"80": 943 # cow -> sheep
|
| 121 |
+
"76": 943 # bear -> sheep
|
| 122 |
+
"225": 943 # cat -> sheep
|
| 123 |
+
"378": 943 # dog -> sheep
|
| 124 |
+
CLASS_TO_MESH_NAME_MAPPING:
|
| 125 |
+
# Note: different classes are mapped to a single class
|
| 126 |
+
# mesh is chosen based on GT data, so this is just some
|
| 127 |
+
# value which has no particular meaning
|
| 128 |
+
"0": "sheep_5004"
|
| 129 |
+
SOLVER:
|
| 130 |
+
MAX_ITER: 16000
|
| 131 |
+
STEPS: (12000, 14000)
|
| 132 |
+
DENSEPOSE_EVALUATION:
|
| 133 |
+
EVALUATE_MESH_ALIGNMENT: True
|
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_4k.yaml
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_HEADS:
|
| 7 |
+
NUM_CLASSES: 1
|
| 8 |
+
ROI_DENSEPOSE_HEAD:
|
| 9 |
+
NAME: "DensePoseV1ConvXHead"
|
| 10 |
+
COARSE_SEGM_TRAINED_BY_MASKS: True
|
| 11 |
+
CSE:
|
| 12 |
+
EMBED_LOSS_NAME: "SoftEmbeddingLoss"
|
| 13 |
+
EMBEDDING_DIST_GAUSS_SIGMA: 0.1
|
| 14 |
+
GEODESIC_DIST_GAUSS_SIGMA: 0.1
|
| 15 |
+
EMBEDDERS:
|
| 16 |
+
"cat_5001":
|
| 17 |
+
TYPE: vertex_feature
|
| 18 |
+
NUM_VERTICES: 5001
|
| 19 |
+
FEATURE_DIM: 256
|
| 20 |
+
FEATURES_TRAINABLE: False
|
| 21 |
+
IS_TRAINABLE: True
|
| 22 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_5001_256.pkl"
|
| 23 |
+
"dog_5002":
|
| 24 |
+
TYPE: vertex_feature
|
| 25 |
+
NUM_VERTICES: 5002
|
| 26 |
+
FEATURE_DIM: 256
|
| 27 |
+
FEATURES_TRAINABLE: False
|
| 28 |
+
IS_TRAINABLE: True
|
| 29 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_5002_256.pkl"
|
| 30 |
+
"sheep_5004":
|
| 31 |
+
TYPE: vertex_feature
|
| 32 |
+
NUM_VERTICES: 5004
|
| 33 |
+
FEATURE_DIM: 256
|
| 34 |
+
FEATURES_TRAINABLE: False
|
| 35 |
+
IS_TRAINABLE: True
|
| 36 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl"
|
| 37 |
+
"horse_5004":
|
| 38 |
+
TYPE: vertex_feature
|
| 39 |
+
NUM_VERTICES: 5004
|
| 40 |
+
FEATURE_DIM: 256
|
| 41 |
+
FEATURES_TRAINABLE: False
|
| 42 |
+
IS_TRAINABLE: True
|
| 43 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl"
|
| 44 |
+
"zebra_5002":
|
| 45 |
+
TYPE: vertex_feature
|
| 46 |
+
NUM_VERTICES: 5002
|
| 47 |
+
FEATURE_DIM: 256
|
| 48 |
+
FEATURES_TRAINABLE: False
|
| 49 |
+
IS_TRAINABLE: True
|
| 50 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl"
|
| 51 |
+
"giraffe_5002":
|
| 52 |
+
TYPE: vertex_feature
|
| 53 |
+
NUM_VERTICES: 5002
|
| 54 |
+
FEATURE_DIM: 256
|
| 55 |
+
FEATURES_TRAINABLE: False
|
| 56 |
+
IS_TRAINABLE: True
|
| 57 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl"
|
| 58 |
+
"elephant_5002":
|
| 59 |
+
TYPE: vertex_feature
|
| 60 |
+
NUM_VERTICES: 5002
|
| 61 |
+
FEATURE_DIM: 256
|
| 62 |
+
FEATURES_TRAINABLE: False
|
| 63 |
+
IS_TRAINABLE: True
|
| 64 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl"
|
| 65 |
+
"cow_5002":
|
| 66 |
+
TYPE: vertex_feature
|
| 67 |
+
NUM_VERTICES: 5002
|
| 68 |
+
FEATURE_DIM: 256
|
| 69 |
+
FEATURES_TRAINABLE: False
|
| 70 |
+
IS_TRAINABLE: True
|
| 71 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl"
|
| 72 |
+
"bear_4936":
|
| 73 |
+
TYPE: vertex_feature
|
| 74 |
+
NUM_VERTICES: 4936
|
| 75 |
+
FEATURE_DIM: 256
|
| 76 |
+
FEATURES_TRAINABLE: False
|
| 77 |
+
IS_TRAINABLE: True
|
| 78 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"
|
| 79 |
+
DATASETS:
|
| 80 |
+
TRAIN:
|
| 81 |
+
- "densepose_lvis_v1_ds1_train_v1"
|
| 82 |
+
TEST:
|
| 83 |
+
- "densepose_lvis_v1_ds1_val_v1"
|
| 84 |
+
WHITELISTED_CATEGORIES:
|
| 85 |
+
"densepose_lvis_v1_ds1_train_v1":
|
| 86 |
+
- 943 # sheep
|
| 87 |
+
- 1202 # zebra
|
| 88 |
+
- 569 # horse
|
| 89 |
+
- 496 # giraffe
|
| 90 |
+
- 422 # elephant
|
| 91 |
+
- 80 # cow
|
| 92 |
+
- 76 # bear
|
| 93 |
+
- 225 # cat
|
| 94 |
+
- 378 # dog
|
| 95 |
+
"densepose_lvis_v1_ds1_val_v1":
|
| 96 |
+
- 943 # sheep
|
| 97 |
+
- 1202 # zebra
|
| 98 |
+
- 569 # horse
|
| 99 |
+
- 496 # giraffe
|
| 100 |
+
- 422 # elephant
|
| 101 |
+
- 80 # cow
|
| 102 |
+
- 76 # bear
|
| 103 |
+
- 225 # cat
|
| 104 |
+
- 378 # dog
|
| 105 |
+
CATEGORY_MAPS:
|
| 106 |
+
"densepose_lvis_v1_ds1_train_v1":
|
| 107 |
+
"1202": 943 # zebra -> sheep
|
| 108 |
+
"569": 943 # horse -> sheep
|
| 109 |
+
"496": 943 # giraffe -> sheep
|
| 110 |
+
"422": 943 # elephant -> sheep
|
| 111 |
+
"80": 943 # cow -> sheep
|
| 112 |
+
"76": 943 # bear -> sheep
|
| 113 |
+
"225": 943 # cat -> sheep
|
| 114 |
+
"378": 943 # dog -> sheep
|
| 115 |
+
"densepose_lvis_v1_ds1_val_v1":
|
| 116 |
+
"1202": 943 # zebra -> sheep
|
| 117 |
+
"569": 943 # horse -> sheep
|
| 118 |
+
"496": 943 # giraffe -> sheep
|
| 119 |
+
"422": 943 # elephant -> sheep
|
| 120 |
+
"80": 943 # cow -> sheep
|
| 121 |
+
"76": 943 # bear -> sheep
|
| 122 |
+
"225": 943 # cat -> sheep
|
| 123 |
+
"378": 943 # dog -> sheep
|
| 124 |
+
CLASS_TO_MESH_NAME_MAPPING:
|
| 125 |
+
# Note: different classes are mapped to a single class
|
| 126 |
+
# mesh is chosen based on GT data, so this is just some
|
| 127 |
+
# value which has no particular meaning
|
| 128 |
+
"0": "sheep_5004"
|
| 129 |
+
SOLVER:
|
| 130 |
+
MAX_ITER: 4000
|
| 131 |
+
STEPS: (3000, 3500)
|
| 132 |
+
DENSEPOSE_EVALUATION:
|
| 133 |
+
EVALUATE_MESH_ALIGNMENT: True
|
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_16k.yaml
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k/270668502/model_final_21b1d2.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_HEADS:
|
| 7 |
+
NUM_CLASSES: 9
|
| 8 |
+
ROI_DENSEPOSE_HEAD:
|
| 9 |
+
NAME: "DensePoseV1ConvXHead"
|
| 10 |
+
COARSE_SEGM_TRAINED_BY_MASKS: True
|
| 11 |
+
CSE:
|
| 12 |
+
EMBED_LOSS_NAME: "SoftEmbeddingLoss"
|
| 13 |
+
EMBEDDING_DIST_GAUSS_SIGMA: 0.1
|
| 14 |
+
GEODESIC_DIST_GAUSS_SIGMA: 0.1
|
| 15 |
+
EMBEDDERS:
|
| 16 |
+
"cat_7466":
|
| 17 |
+
TYPE: vertex_feature
|
| 18 |
+
NUM_VERTICES: 7466
|
| 19 |
+
FEATURE_DIM: 256
|
| 20 |
+
FEATURES_TRAINABLE: False
|
| 21 |
+
IS_TRAINABLE: True
|
| 22 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl"
|
| 23 |
+
"dog_7466":
|
| 24 |
+
TYPE: vertex_feature
|
| 25 |
+
NUM_VERTICES: 7466
|
| 26 |
+
FEATURE_DIM: 256
|
| 27 |
+
FEATURES_TRAINABLE: False
|
| 28 |
+
IS_TRAINABLE: True
|
| 29 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl"
|
| 30 |
+
"sheep_5004":
|
| 31 |
+
TYPE: vertex_feature
|
| 32 |
+
NUM_VERTICES: 5004
|
| 33 |
+
FEATURE_DIM: 256
|
| 34 |
+
FEATURES_TRAINABLE: False
|
| 35 |
+
IS_TRAINABLE: True
|
| 36 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl"
|
| 37 |
+
"horse_5004":
|
| 38 |
+
TYPE: vertex_feature
|
| 39 |
+
NUM_VERTICES: 5004
|
| 40 |
+
FEATURE_DIM: 256
|
| 41 |
+
FEATURES_TRAINABLE: False
|
| 42 |
+
IS_TRAINABLE: True
|
| 43 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl"
|
| 44 |
+
"zebra_5002":
|
| 45 |
+
TYPE: vertex_feature
|
| 46 |
+
NUM_VERTICES: 5002
|
| 47 |
+
FEATURE_DIM: 256
|
| 48 |
+
FEATURES_TRAINABLE: False
|
| 49 |
+
IS_TRAINABLE: True
|
| 50 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl"
|
| 51 |
+
"giraffe_5002":
|
| 52 |
+
TYPE: vertex_feature
|
| 53 |
+
NUM_VERTICES: 5002
|
| 54 |
+
FEATURE_DIM: 256
|
| 55 |
+
FEATURES_TRAINABLE: False
|
| 56 |
+
IS_TRAINABLE: True
|
| 57 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl"
|
| 58 |
+
"elephant_5002":
|
| 59 |
+
TYPE: vertex_feature
|
| 60 |
+
NUM_VERTICES: 5002
|
| 61 |
+
FEATURE_DIM: 256
|
| 62 |
+
FEATURES_TRAINABLE: False
|
| 63 |
+
IS_TRAINABLE: True
|
| 64 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl"
|
| 65 |
+
"cow_5002":
|
| 66 |
+
TYPE: vertex_feature
|
| 67 |
+
NUM_VERTICES: 5002
|
| 68 |
+
FEATURE_DIM: 256
|
| 69 |
+
FEATURES_TRAINABLE: False
|
| 70 |
+
IS_TRAINABLE: True
|
| 71 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl"
|
| 72 |
+
"bear_4936":
|
| 73 |
+
TYPE: vertex_feature
|
| 74 |
+
NUM_VERTICES: 4936
|
| 75 |
+
FEATURE_DIM: 256
|
| 76 |
+
FEATURES_TRAINABLE: False
|
| 77 |
+
IS_TRAINABLE: True
|
| 78 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"
|
| 79 |
+
DATASETS:
|
| 80 |
+
TRAIN:
|
| 81 |
+
- "densepose_lvis_v1_ds2_train_v1"
|
| 82 |
+
TEST:
|
| 83 |
+
- "densepose_lvis_v1_ds2_val_v1"
|
| 84 |
+
WHITELISTED_CATEGORIES:
|
| 85 |
+
"densepose_lvis_v1_ds2_train_v1":
|
| 86 |
+
- 943 # sheep
|
| 87 |
+
- 1202 # zebra
|
| 88 |
+
- 569 # horse
|
| 89 |
+
- 496 # giraffe
|
| 90 |
+
- 422 # elephant
|
| 91 |
+
- 80 # cow
|
| 92 |
+
- 76 # bear
|
| 93 |
+
- 225 # cat
|
| 94 |
+
- 378 # dog
|
| 95 |
+
"densepose_lvis_v1_ds2_val_v1":
|
| 96 |
+
- 943 # sheep
|
| 97 |
+
- 1202 # zebra
|
| 98 |
+
- 569 # horse
|
| 99 |
+
- 496 # giraffe
|
| 100 |
+
- 422 # elephant
|
| 101 |
+
- 80 # cow
|
| 102 |
+
- 76 # bear
|
| 103 |
+
- 225 # cat
|
| 104 |
+
- 378 # dog
|
| 105 |
+
CLASS_TO_MESH_NAME_MAPPING:
|
| 106 |
+
"0": "bear_4936"
|
| 107 |
+
"1": "cow_5002"
|
| 108 |
+
"2": "cat_7466"
|
| 109 |
+
"3": "dog_7466"
|
| 110 |
+
"4": "elephant_5002"
|
| 111 |
+
"5": "giraffe_5002"
|
| 112 |
+
"6": "horse_5004"
|
| 113 |
+
"7": "sheep_5004"
|
| 114 |
+
"8": "zebra_5002"
|
| 115 |
+
SOLVER:
|
| 116 |
+
MAX_ITER: 16000
|
| 117 |
+
STEPS: (12000, 14000)
|
| 118 |
+
DENSEPOSE_EVALUATION:
|
| 119 |
+
EVALUATE_MESH_ALIGNMENT: True
|
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_i2m_16k.yaml
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k/270668502/model_final_21b1d2.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_HEADS:
|
| 7 |
+
NUM_CLASSES: 9
|
| 8 |
+
ROI_DENSEPOSE_HEAD:
|
| 9 |
+
NAME: "DensePoseV1ConvXHead"
|
| 10 |
+
COARSE_SEGM_TRAINED_BY_MASKS: True
|
| 11 |
+
CSE:
|
| 12 |
+
EMBED_LOSS_NAME: "SoftEmbeddingLoss"
|
| 13 |
+
EMBEDDING_DIST_GAUSS_SIGMA: 0.1
|
| 14 |
+
GEODESIC_DIST_GAUSS_SIGMA: 0.1
|
| 15 |
+
PIX_TO_SHAPE_CYCLE_LOSS:
|
| 16 |
+
ENABLED: True
|
| 17 |
+
EMBEDDERS:
|
| 18 |
+
"cat_7466":
|
| 19 |
+
TYPE: vertex_feature
|
| 20 |
+
NUM_VERTICES: 7466
|
| 21 |
+
FEATURE_DIM: 256
|
| 22 |
+
FEATURES_TRAINABLE: False
|
| 23 |
+
IS_TRAINABLE: True
|
| 24 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl"
|
| 25 |
+
"dog_7466":
|
| 26 |
+
TYPE: vertex_feature
|
| 27 |
+
NUM_VERTICES: 7466
|
| 28 |
+
FEATURE_DIM: 256
|
| 29 |
+
FEATURES_TRAINABLE: False
|
| 30 |
+
IS_TRAINABLE: True
|
| 31 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl"
|
| 32 |
+
"sheep_5004":
|
| 33 |
+
TYPE: vertex_feature
|
| 34 |
+
NUM_VERTICES: 5004
|
| 35 |
+
FEATURE_DIM: 256
|
| 36 |
+
FEATURES_TRAINABLE: False
|
| 37 |
+
IS_TRAINABLE: True
|
| 38 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl"
|
| 39 |
+
"horse_5004":
|
| 40 |
+
TYPE: vertex_feature
|
| 41 |
+
NUM_VERTICES: 5004
|
| 42 |
+
FEATURE_DIM: 256
|
| 43 |
+
FEATURES_TRAINABLE: False
|
| 44 |
+
IS_TRAINABLE: True
|
| 45 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl"
|
| 46 |
+
"zebra_5002":
|
| 47 |
+
TYPE: vertex_feature
|
| 48 |
+
NUM_VERTICES: 5002
|
| 49 |
+
FEATURE_DIM: 256
|
| 50 |
+
FEATURES_TRAINABLE: False
|
| 51 |
+
IS_TRAINABLE: True
|
| 52 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl"
|
| 53 |
+
"giraffe_5002":
|
| 54 |
+
TYPE: vertex_feature
|
| 55 |
+
NUM_VERTICES: 5002
|
| 56 |
+
FEATURE_DIM: 256
|
| 57 |
+
FEATURES_TRAINABLE: False
|
| 58 |
+
IS_TRAINABLE: True
|
| 59 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl"
|
| 60 |
+
"elephant_5002":
|
| 61 |
+
TYPE: vertex_feature
|
| 62 |
+
NUM_VERTICES: 5002
|
| 63 |
+
FEATURE_DIM: 256
|
| 64 |
+
FEATURES_TRAINABLE: False
|
| 65 |
+
IS_TRAINABLE: True
|
| 66 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl"
|
| 67 |
+
"cow_5002":
|
| 68 |
+
TYPE: vertex_feature
|
| 69 |
+
NUM_VERTICES: 5002
|
| 70 |
+
FEATURE_DIM: 256
|
| 71 |
+
FEATURES_TRAINABLE: False
|
| 72 |
+
IS_TRAINABLE: True
|
| 73 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl"
|
| 74 |
+
"bear_4936":
|
| 75 |
+
TYPE: vertex_feature
|
| 76 |
+
NUM_VERTICES: 4936
|
| 77 |
+
FEATURE_DIM: 256
|
| 78 |
+
FEATURES_TRAINABLE: False
|
| 79 |
+
IS_TRAINABLE: True
|
| 80 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"
|
| 81 |
+
DATASETS:
|
| 82 |
+
TRAIN:
|
| 83 |
+
- "densepose_lvis_v1_ds2_train_v1"
|
| 84 |
+
TEST:
|
| 85 |
+
- "densepose_lvis_v1_ds2_val_v1"
|
| 86 |
+
WHITELISTED_CATEGORIES:
|
| 87 |
+
"densepose_lvis_v1_ds2_train_v1":
|
| 88 |
+
- 943 # sheep
|
| 89 |
+
- 1202 # zebra
|
| 90 |
+
- 569 # horse
|
| 91 |
+
- 496 # giraffe
|
| 92 |
+
- 422 # elephant
|
| 93 |
+
- 80 # cow
|
| 94 |
+
- 76 # bear
|
| 95 |
+
- 225 # cat
|
| 96 |
+
- 378 # dog
|
| 97 |
+
"densepose_lvis_v1_ds2_val_v1":
|
| 98 |
+
- 943 # sheep
|
| 99 |
+
- 1202 # zebra
|
| 100 |
+
- 569 # horse
|
| 101 |
+
- 496 # giraffe
|
| 102 |
+
- 422 # elephant
|
| 103 |
+
- 80 # cow
|
| 104 |
+
- 76 # bear
|
| 105 |
+
- 225 # cat
|
| 106 |
+
- 378 # dog
|
| 107 |
+
CLASS_TO_MESH_NAME_MAPPING:
|
| 108 |
+
"0": "bear_4936"
|
| 109 |
+
"1": "cow_5002"
|
| 110 |
+
"2": "cat_7466"
|
| 111 |
+
"3": "dog_7466"
|
| 112 |
+
"4": "elephant_5002"
|
| 113 |
+
"5": "giraffe_5002"
|
| 114 |
+
"6": "horse_5004"
|
| 115 |
+
"7": "sheep_5004"
|
| 116 |
+
"8": "zebra_5002"
|
| 117 |
+
SOLVER:
|
| 118 |
+
MAX_ITER: 16000
|
| 119 |
+
STEPS: (12000, 14000)
|
| 120 |
+
DENSEPOSE_EVALUATION:
|
| 121 |
+
EVALUATE_MESH_ALIGNMENT: True
|
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_m2m_16k.yaml
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k/267687159/model_final_354e61.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_HEADS:
|
| 7 |
+
NUM_CLASSES: 9
|
| 8 |
+
ROI_DENSEPOSE_HEAD:
|
| 9 |
+
NAME: "DensePoseV1ConvXHead"
|
| 10 |
+
COARSE_SEGM_TRAINED_BY_MASKS: True
|
| 11 |
+
CSE:
|
| 12 |
+
EMBED_LOSS_NAME: "SoftEmbeddingLoss"
|
| 13 |
+
EMBEDDING_DIST_GAUSS_SIGMA: 0.1
|
| 14 |
+
GEODESIC_DIST_GAUSS_SIGMA: 0.1
|
| 15 |
+
SHAPE_TO_SHAPE_CYCLE_LOSS:
|
| 16 |
+
ENABLED: True
|
| 17 |
+
EMBEDDERS:
|
| 18 |
+
"cat_7466":
|
| 19 |
+
TYPE: vertex_feature
|
| 20 |
+
NUM_VERTICES: 7466
|
| 21 |
+
FEATURE_DIM: 256
|
| 22 |
+
FEATURES_TRAINABLE: False
|
| 23 |
+
IS_TRAINABLE: True
|
| 24 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl"
|
| 25 |
+
"dog_7466":
|
| 26 |
+
TYPE: vertex_feature
|
| 27 |
+
NUM_VERTICES: 7466
|
| 28 |
+
FEATURE_DIM: 256
|
| 29 |
+
FEATURES_TRAINABLE: False
|
| 30 |
+
IS_TRAINABLE: True
|
| 31 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl"
|
| 32 |
+
"sheep_5004":
|
| 33 |
+
TYPE: vertex_feature
|
| 34 |
+
NUM_VERTICES: 5004
|
| 35 |
+
FEATURE_DIM: 256
|
| 36 |
+
FEATURES_TRAINABLE: False
|
| 37 |
+
IS_TRAINABLE: True
|
| 38 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl"
|
| 39 |
+
"horse_5004":
|
| 40 |
+
TYPE: vertex_feature
|
| 41 |
+
NUM_VERTICES: 5004
|
| 42 |
+
FEATURE_DIM: 256
|
| 43 |
+
FEATURES_TRAINABLE: False
|
| 44 |
+
IS_TRAINABLE: True
|
| 45 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl"
|
| 46 |
+
"zebra_5002":
|
| 47 |
+
TYPE: vertex_feature
|
| 48 |
+
NUM_VERTICES: 5002
|
| 49 |
+
FEATURE_DIM: 256
|
| 50 |
+
FEATURES_TRAINABLE: False
|
| 51 |
+
IS_TRAINABLE: True
|
| 52 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl"
|
| 53 |
+
"giraffe_5002":
|
| 54 |
+
TYPE: vertex_feature
|
| 55 |
+
NUM_VERTICES: 5002
|
| 56 |
+
FEATURE_DIM: 256
|
| 57 |
+
FEATURES_TRAINABLE: False
|
| 58 |
+
IS_TRAINABLE: True
|
| 59 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl"
|
| 60 |
+
"elephant_5002":
|
| 61 |
+
TYPE: vertex_feature
|
| 62 |
+
NUM_VERTICES: 5002
|
| 63 |
+
FEATURE_DIM: 256
|
| 64 |
+
FEATURES_TRAINABLE: False
|
| 65 |
+
IS_TRAINABLE: True
|
| 66 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl"
|
| 67 |
+
"cow_5002":
|
| 68 |
+
TYPE: vertex_feature
|
| 69 |
+
NUM_VERTICES: 5002
|
| 70 |
+
FEATURE_DIM: 256
|
| 71 |
+
FEATURES_TRAINABLE: False
|
| 72 |
+
IS_TRAINABLE: True
|
| 73 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl"
|
| 74 |
+
"bear_4936":
|
| 75 |
+
TYPE: vertex_feature
|
| 76 |
+
NUM_VERTICES: 4936
|
| 77 |
+
FEATURE_DIM: 256
|
| 78 |
+
FEATURES_TRAINABLE: False
|
| 79 |
+
IS_TRAINABLE: True
|
| 80 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"
|
| 81 |
+
"smpl_27554":
|
| 82 |
+
TYPE: vertex_feature
|
| 83 |
+
NUM_VERTICES: 27554
|
| 84 |
+
FEATURE_DIM: 256
|
| 85 |
+
FEATURES_TRAINABLE: False
|
| 86 |
+
IS_TRAINABLE: True
|
| 87 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_smpl_27554_256.pkl"
|
| 88 |
+
DATASETS:
|
| 89 |
+
TRAIN:
|
| 90 |
+
- "densepose_lvis_v1_ds2_train_v1"
|
| 91 |
+
TEST:
|
| 92 |
+
- "densepose_lvis_v1_ds2_val_v1"
|
| 93 |
+
WHITELISTED_CATEGORIES:
|
| 94 |
+
"densepose_lvis_v1_ds2_train_v1":
|
| 95 |
+
- 943 # sheep
|
| 96 |
+
- 1202 # zebra
|
| 97 |
+
- 569 # horse
|
| 98 |
+
- 496 # giraffe
|
| 99 |
+
- 422 # elephant
|
| 100 |
+
- 80 # cow
|
| 101 |
+
- 76 # bear
|
| 102 |
+
- 225 # cat
|
| 103 |
+
- 378 # dog
|
| 104 |
+
"densepose_lvis_v1_ds2_val_v1":
|
| 105 |
+
- 943 # sheep
|
| 106 |
+
- 1202 # zebra
|
| 107 |
+
- 569 # horse
|
| 108 |
+
- 496 # giraffe
|
| 109 |
+
- 422 # elephant
|
| 110 |
+
- 80 # cow
|
| 111 |
+
- 76 # bear
|
| 112 |
+
- 225 # cat
|
| 113 |
+
- 378 # dog
|
| 114 |
+
CLASS_TO_MESH_NAME_MAPPING:
|
| 115 |
+
"0": "bear_4936"
|
| 116 |
+
"1": "cow_5002"
|
| 117 |
+
"2": "cat_7466"
|
| 118 |
+
"3": "dog_7466"
|
| 119 |
+
"4": "elephant_5002"
|
| 120 |
+
"5": "giraffe_5002"
|
| 121 |
+
"6": "horse_5004"
|
| 122 |
+
"7": "sheep_5004"
|
| 123 |
+
"8": "zebra_5002"
|
| 124 |
+
SOLVER:
|
| 125 |
+
MAX_ITER: 16000
|
| 126 |
+
STEPS: (12000, 14000)
|
| 127 |
+
DENSEPOSE_EVALUATION:
|
| 128 |
+
EVALUATE_MESH_ALIGNMENT: True
|
| 129 |
+
MESH_ALIGNMENT_MESH_NAMES:
|
| 130 |
+
- bear_4936
|
| 131 |
+
- cow_5002
|
| 132 |
+
- cat_7466
|
| 133 |
+
- dog_7466
|
| 134 |
+
- elephant_5002
|
| 135 |
+
- giraffe_5002
|
| 136 |
+
- horse_5004
|
| 137 |
+
- sheep_5004
|
| 138 |
+
- zebra_5002
|
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_16k.yaml
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_HEADS:
|
| 7 |
+
NUM_CLASSES: 9
|
| 8 |
+
ROI_DENSEPOSE_HEAD:
|
| 9 |
+
NAME: "DensePoseV1ConvXHead"
|
| 10 |
+
COARSE_SEGM_TRAINED_BY_MASKS: True
|
| 11 |
+
CSE:
|
| 12 |
+
EMBED_LOSS_NAME: "SoftEmbeddingLoss"
|
| 13 |
+
EMBEDDING_DIST_GAUSS_SIGMA: 0.1
|
| 14 |
+
GEODESIC_DIST_GAUSS_SIGMA: 0.1
|
| 15 |
+
EMBEDDERS:
|
| 16 |
+
"cat_7466":
|
| 17 |
+
TYPE: vertex_feature
|
| 18 |
+
NUM_VERTICES: 7466
|
| 19 |
+
FEATURE_DIM: 256
|
| 20 |
+
FEATURES_TRAINABLE: False
|
| 21 |
+
IS_TRAINABLE: True
|
| 22 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl"
|
| 23 |
+
"dog_7466":
|
| 24 |
+
TYPE: vertex_feature
|
| 25 |
+
NUM_VERTICES: 7466
|
| 26 |
+
FEATURE_DIM: 256
|
| 27 |
+
FEATURES_TRAINABLE: False
|
| 28 |
+
IS_TRAINABLE: True
|
| 29 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl"
|
| 30 |
+
"sheep_5004":
|
| 31 |
+
TYPE: vertex_feature
|
| 32 |
+
NUM_VERTICES: 5004
|
| 33 |
+
FEATURE_DIM: 256
|
| 34 |
+
FEATURES_TRAINABLE: False
|
| 35 |
+
IS_TRAINABLE: True
|
| 36 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl"
|
| 37 |
+
"horse_5004":
|
| 38 |
+
TYPE: vertex_feature
|
| 39 |
+
NUM_VERTICES: 5004
|
| 40 |
+
FEATURE_DIM: 256
|
| 41 |
+
FEATURES_TRAINABLE: False
|
| 42 |
+
IS_TRAINABLE: True
|
| 43 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl"
|
| 44 |
+
"zebra_5002":
|
| 45 |
+
TYPE: vertex_feature
|
| 46 |
+
NUM_VERTICES: 5002
|
| 47 |
+
FEATURE_DIM: 256
|
| 48 |
+
FEATURES_TRAINABLE: False
|
| 49 |
+
IS_TRAINABLE: True
|
| 50 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl"
|
| 51 |
+
"giraffe_5002":
|
| 52 |
+
TYPE: vertex_feature
|
| 53 |
+
NUM_VERTICES: 5002
|
| 54 |
+
FEATURE_DIM: 256
|
| 55 |
+
FEATURES_TRAINABLE: False
|
| 56 |
+
IS_TRAINABLE: True
|
| 57 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl"
|
| 58 |
+
"elephant_5002":
|
| 59 |
+
TYPE: vertex_feature
|
| 60 |
+
NUM_VERTICES: 5002
|
| 61 |
+
FEATURE_DIM: 256
|
| 62 |
+
FEATURES_TRAINABLE: False
|
| 63 |
+
IS_TRAINABLE: True
|
| 64 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl"
|
| 65 |
+
"cow_5002":
|
| 66 |
+
TYPE: vertex_feature
|
| 67 |
+
NUM_VERTICES: 5002
|
| 68 |
+
FEATURE_DIM: 256
|
| 69 |
+
FEATURES_TRAINABLE: False
|
| 70 |
+
IS_TRAINABLE: True
|
| 71 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl"
|
| 72 |
+
"bear_4936":
|
| 73 |
+
TYPE: vertex_feature
|
| 74 |
+
NUM_VERTICES: 4936
|
| 75 |
+
FEATURE_DIM: 256
|
| 76 |
+
FEATURES_TRAINABLE: False
|
| 77 |
+
IS_TRAINABLE: True
|
| 78 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"
|
| 79 |
+
DATASETS:
|
| 80 |
+
TRAIN:
|
| 81 |
+
- "densepose_lvis_v1_ds2_train_v1"
|
| 82 |
+
TEST:
|
| 83 |
+
- "densepose_lvis_v1_ds2_val_v1"
|
| 84 |
+
WHITELISTED_CATEGORIES:
|
| 85 |
+
"densepose_lvis_v1_ds2_train_v1":
|
| 86 |
+
- 943 # sheep
|
| 87 |
+
- 1202 # zebra
|
| 88 |
+
- 569 # horse
|
| 89 |
+
- 496 # giraffe
|
| 90 |
+
- 422 # elephant
|
| 91 |
+
- 80 # cow
|
| 92 |
+
- 76 # bear
|
| 93 |
+
- 225 # cat
|
| 94 |
+
- 378 # dog
|
| 95 |
+
"densepose_lvis_v1_ds2_val_v1":
|
| 96 |
+
- 943 # sheep
|
| 97 |
+
- 1202 # zebra
|
| 98 |
+
- 569 # horse
|
| 99 |
+
- 496 # giraffe
|
| 100 |
+
- 422 # elephant
|
| 101 |
+
- 80 # cow
|
| 102 |
+
- 76 # bear
|
| 103 |
+
- 225 # cat
|
| 104 |
+
- 378 # dog
|
| 105 |
+
CLASS_TO_MESH_NAME_MAPPING:
|
| 106 |
+
"0": "bear_4936"
|
| 107 |
+
"1": "cow_5002"
|
| 108 |
+
"2": "cat_7466"
|
| 109 |
+
"3": "dog_7466"
|
| 110 |
+
"4": "elephant_5002"
|
| 111 |
+
"5": "giraffe_5002"
|
| 112 |
+
"6": "horse_5004"
|
| 113 |
+
"7": "sheep_5004"
|
| 114 |
+
"8": "zebra_5002"
|
| 115 |
+
SOLVER:
|
| 116 |
+
MAX_ITER: 16000
|
| 117 |
+
STEPS: (12000, 14000)
|
| 118 |
+
DENSEPOSE_EVALUATION:
|
| 119 |
+
EVALUATE_MESH_ALIGNMENT: True
|
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_4k.yaml
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_HEADS:
|
| 7 |
+
NUM_CLASSES: 9
|
| 8 |
+
ROI_DENSEPOSE_HEAD:
|
| 9 |
+
NAME: "DensePoseV1ConvXHead"
|
| 10 |
+
COARSE_SEGM_TRAINED_BY_MASKS: True
|
| 11 |
+
CSE:
|
| 12 |
+
EMBED_LOSS_NAME: "SoftEmbeddingLoss"
|
| 13 |
+
EMBEDDING_DIST_GAUSS_SIGMA: 0.1
|
| 14 |
+
GEODESIC_DIST_GAUSS_SIGMA: 0.1
|
| 15 |
+
EMBEDDERS:
|
| 16 |
+
"cat_5001":
|
| 17 |
+
TYPE: vertex_feature
|
| 18 |
+
NUM_VERTICES: 5001
|
| 19 |
+
FEATURE_DIM: 256
|
| 20 |
+
FEATURES_TRAINABLE: False
|
| 21 |
+
IS_TRAINABLE: True
|
| 22 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_5001_256.pkl"
|
| 23 |
+
"dog_5002":
|
| 24 |
+
TYPE: vertex_feature
|
| 25 |
+
NUM_VERTICES: 5002
|
| 26 |
+
FEATURE_DIM: 256
|
| 27 |
+
FEATURES_TRAINABLE: False
|
| 28 |
+
IS_TRAINABLE: True
|
| 29 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_5002_256.pkl"
|
| 30 |
+
"sheep_5004":
|
| 31 |
+
TYPE: vertex_feature
|
| 32 |
+
NUM_VERTICES: 5004
|
| 33 |
+
FEATURE_DIM: 256
|
| 34 |
+
FEATURES_TRAINABLE: False
|
| 35 |
+
IS_TRAINABLE: True
|
| 36 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl"
|
| 37 |
+
"horse_5004":
|
| 38 |
+
TYPE: vertex_feature
|
| 39 |
+
NUM_VERTICES: 5004
|
| 40 |
+
FEATURE_DIM: 256
|
| 41 |
+
FEATURES_TRAINABLE: False
|
| 42 |
+
IS_TRAINABLE: True
|
| 43 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl"
|
| 44 |
+
"zebra_5002":
|
| 45 |
+
TYPE: vertex_feature
|
| 46 |
+
NUM_VERTICES: 5002
|
| 47 |
+
FEATURE_DIM: 256
|
| 48 |
+
FEATURES_TRAINABLE: False
|
| 49 |
+
IS_TRAINABLE: True
|
| 50 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl"
|
| 51 |
+
"giraffe_5002":
|
| 52 |
+
TYPE: vertex_feature
|
| 53 |
+
NUM_VERTICES: 5002
|
| 54 |
+
FEATURE_DIM: 256
|
| 55 |
+
FEATURES_TRAINABLE: False
|
| 56 |
+
IS_TRAINABLE: True
|
| 57 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl"
|
| 58 |
+
"elephant_5002":
|
| 59 |
+
TYPE: vertex_feature
|
| 60 |
+
NUM_VERTICES: 5002
|
| 61 |
+
FEATURE_DIM: 256
|
| 62 |
+
FEATURES_TRAINABLE: False
|
| 63 |
+
IS_TRAINABLE: True
|
| 64 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl"
|
| 65 |
+
"cow_5002":
|
| 66 |
+
TYPE: vertex_feature
|
| 67 |
+
NUM_VERTICES: 5002
|
| 68 |
+
FEATURE_DIM: 256
|
| 69 |
+
FEATURES_TRAINABLE: False
|
| 70 |
+
IS_TRAINABLE: True
|
| 71 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl"
|
| 72 |
+
"bear_4936":
|
| 73 |
+
TYPE: vertex_feature
|
| 74 |
+
NUM_VERTICES: 4936
|
| 75 |
+
FEATURE_DIM: 256
|
| 76 |
+
FEATURES_TRAINABLE: False
|
| 77 |
+
IS_TRAINABLE: True
|
| 78 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"
|
| 79 |
+
DATASETS:
|
| 80 |
+
TRAIN:
|
| 81 |
+
- "densepose_lvis_v1_ds1_train_v1"
|
| 82 |
+
TEST:
|
| 83 |
+
- "densepose_lvis_v1_ds1_val_v1"
|
| 84 |
+
WHITELISTED_CATEGORIES:
|
| 85 |
+
"densepose_lvis_v1_ds1_train_v1":
|
| 86 |
+
- 943 # sheep
|
| 87 |
+
- 1202 # zebra
|
| 88 |
+
- 569 # horse
|
| 89 |
+
- 496 # giraffe
|
| 90 |
+
- 422 # elephant
|
| 91 |
+
- 80 # cow
|
| 92 |
+
- 76 # bear
|
| 93 |
+
- 225 # cat
|
| 94 |
+
- 378 # dog
|
| 95 |
+
"densepose_lvis_v1_ds1_val_v1":
|
| 96 |
+
- 943 # sheep
|
| 97 |
+
- 1202 # zebra
|
| 98 |
+
- 569 # horse
|
| 99 |
+
- 496 # giraffe
|
| 100 |
+
- 422 # elephant
|
| 101 |
+
- 80 # cow
|
| 102 |
+
- 76 # bear
|
| 103 |
+
- 225 # cat
|
| 104 |
+
- 378 # dog
|
| 105 |
+
CLASS_TO_MESH_NAME_MAPPING:
|
| 106 |
+
"0": "bear_4936"
|
| 107 |
+
"1": "cow_5002"
|
| 108 |
+
"2": "cat_5001"
|
| 109 |
+
"3": "dog_5002"
|
| 110 |
+
"4": "elephant_5002"
|
| 111 |
+
"5": "giraffe_5002"
|
| 112 |
+
"6": "horse_5004"
|
| 113 |
+
"7": "sheep_5004"
|
| 114 |
+
"8": "zebra_5002"
|
| 115 |
+
SOLVER:
|
| 116 |
+
MAX_ITER: 4000
|
| 117 |
+
STEPS: (3000, 3500)
|
| 118 |
+
DENSEPOSE_EVALUATION:
|
| 119 |
+
EVALUATE_MESH_ALIGNMENT: True
|
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k.yaml
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_HEADS:
|
| 7 |
+
NUM_CLASSES: 9
|
| 8 |
+
ROI_DENSEPOSE_HEAD:
|
| 9 |
+
NAME: "DensePoseV1ConvXHead"
|
| 10 |
+
COARSE_SEGM_TRAINED_BY_MASKS: True
|
| 11 |
+
CSE:
|
| 12 |
+
EMBED_LOSS_NAME: "SoftEmbeddingLoss"
|
| 13 |
+
EMBED_LOSS_WEIGHT: 0.0
|
| 14 |
+
EMBEDDING_DIST_GAUSS_SIGMA: 0.1
|
| 15 |
+
GEODESIC_DIST_GAUSS_SIGMA: 0.1
|
| 16 |
+
EMBEDDERS:
|
| 17 |
+
"cat_7466":
|
| 18 |
+
TYPE: vertex_feature
|
| 19 |
+
NUM_VERTICES: 7466
|
| 20 |
+
FEATURE_DIM: 256
|
| 21 |
+
FEATURES_TRAINABLE: False
|
| 22 |
+
IS_TRAINABLE: True
|
| 23 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl"
|
| 24 |
+
"dog_7466":
|
| 25 |
+
TYPE: vertex_feature
|
| 26 |
+
NUM_VERTICES: 7466
|
| 27 |
+
FEATURE_DIM: 256
|
| 28 |
+
FEATURES_TRAINABLE: False
|
| 29 |
+
IS_TRAINABLE: True
|
| 30 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl"
|
| 31 |
+
"sheep_5004":
|
| 32 |
+
TYPE: vertex_feature
|
| 33 |
+
NUM_VERTICES: 5004
|
| 34 |
+
FEATURE_DIM: 256
|
| 35 |
+
FEATURES_TRAINABLE: False
|
| 36 |
+
IS_TRAINABLE: True
|
| 37 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl"
|
| 38 |
+
"horse_5004":
|
| 39 |
+
TYPE: vertex_feature
|
| 40 |
+
NUM_VERTICES: 5004
|
| 41 |
+
FEATURE_DIM: 256
|
| 42 |
+
FEATURES_TRAINABLE: False
|
| 43 |
+
IS_TRAINABLE: True
|
| 44 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl"
|
| 45 |
+
"zebra_5002":
|
| 46 |
+
TYPE: vertex_feature
|
| 47 |
+
NUM_VERTICES: 5002
|
| 48 |
+
FEATURE_DIM: 256
|
| 49 |
+
FEATURES_TRAINABLE: False
|
| 50 |
+
IS_TRAINABLE: True
|
| 51 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl"
|
| 52 |
+
"giraffe_5002":
|
| 53 |
+
TYPE: vertex_feature
|
| 54 |
+
NUM_VERTICES: 5002
|
| 55 |
+
FEATURE_DIM: 256
|
| 56 |
+
FEATURES_TRAINABLE: False
|
| 57 |
+
IS_TRAINABLE: True
|
| 58 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl"
|
| 59 |
+
"elephant_5002":
|
| 60 |
+
TYPE: vertex_feature
|
| 61 |
+
NUM_VERTICES: 5002
|
| 62 |
+
FEATURE_DIM: 256
|
| 63 |
+
FEATURES_TRAINABLE: False
|
| 64 |
+
IS_TRAINABLE: True
|
| 65 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl"
|
| 66 |
+
"cow_5002":
|
| 67 |
+
TYPE: vertex_feature
|
| 68 |
+
NUM_VERTICES: 5002
|
| 69 |
+
FEATURE_DIM: 256
|
| 70 |
+
FEATURES_TRAINABLE: False
|
| 71 |
+
IS_TRAINABLE: True
|
| 72 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl"
|
| 73 |
+
"bear_4936":
|
| 74 |
+
TYPE: vertex_feature
|
| 75 |
+
NUM_VERTICES: 4936
|
| 76 |
+
FEATURE_DIM: 256
|
| 77 |
+
FEATURES_TRAINABLE: False
|
| 78 |
+
IS_TRAINABLE: True
|
| 79 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"
|
| 80 |
+
DATASETS:
|
| 81 |
+
TRAIN:
|
| 82 |
+
- "densepose_lvis_v1_ds2_train_v1"
|
| 83 |
+
TEST:
|
| 84 |
+
- "densepose_lvis_v1_ds2_val_v1"
|
| 85 |
+
WHITELISTED_CATEGORIES:
|
| 86 |
+
"densepose_lvis_v1_ds2_train_v1":
|
| 87 |
+
- 943 # sheep
|
| 88 |
+
- 1202 # zebra
|
| 89 |
+
- 569 # horse
|
| 90 |
+
- 496 # giraffe
|
| 91 |
+
- 422 # elephant
|
| 92 |
+
- 80 # cow
|
| 93 |
+
- 76 # bear
|
| 94 |
+
- 225 # cat
|
| 95 |
+
- 378 # dog
|
| 96 |
+
"densepose_lvis_v1_ds2_val_v1":
|
| 97 |
+
- 943 # sheep
|
| 98 |
+
- 1202 # zebra
|
| 99 |
+
- 569 # horse
|
| 100 |
+
- 496 # giraffe
|
| 101 |
+
- 422 # elephant
|
| 102 |
+
- 80 # cow
|
| 103 |
+
- 76 # bear
|
| 104 |
+
- 225 # cat
|
| 105 |
+
- 378 # dog
|
| 106 |
+
CLASS_TO_MESH_NAME_MAPPING:
|
| 107 |
+
"0": "bear_4936"
|
| 108 |
+
"1": "cow_5002"
|
| 109 |
+
"2": "cat_7466"
|
| 110 |
+
"3": "dog_7466"
|
| 111 |
+
"4": "elephant_5002"
|
| 112 |
+
"5": "giraffe_5002"
|
| 113 |
+
"6": "horse_5004"
|
| 114 |
+
"7": "sheep_5004"
|
| 115 |
+
"8": "zebra_5002"
|
| 116 |
+
SOLVER:
|
| 117 |
+
MAX_ITER: 24000
|
| 118 |
+
STEPS: (20000, 22000)
|
configs/cse/densepose_rcnn_R_50_FPN_soft_chimps_finetune_4k.yaml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseV1ConvXHead"
|
| 8 |
+
CSE:
|
| 9 |
+
EMBED_LOSS_NAME: "SoftEmbeddingLoss"
|
| 10 |
+
EMBEDDING_DIST_GAUSS_SIGMA: 0.1
|
| 11 |
+
GEODESIC_DIST_GAUSS_SIGMA: 0.1
|
| 12 |
+
EMBEDDERS:
|
| 13 |
+
"chimp_5029":
|
| 14 |
+
TYPE: vertex_feature
|
| 15 |
+
NUM_VERTICES: 5029
|
| 16 |
+
FEATURE_DIM: 256
|
| 17 |
+
FEATURES_TRAINABLE: False
|
| 18 |
+
IS_TRAINABLE: True
|
| 19 |
+
INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_chimp_5029_256.pkl"
|
| 20 |
+
DATASETS:
|
| 21 |
+
TRAIN:
|
| 22 |
+
- "densepose_chimps_cse_train"
|
| 23 |
+
TEST:
|
| 24 |
+
- "densepose_chimps_cse_val"
|
| 25 |
+
CLASS_TO_MESH_NAME_MAPPING:
|
| 26 |
+
"0": "chimp_5029"
|
| 27 |
+
SOLVER:
|
| 28 |
+
MAX_ITER: 4000
|
| 29 |
+
STEPS: (3000, 3500)
|
configs/cse/densepose_rcnn_R_50_FPN_soft_s1x.yaml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"
|
| 2 |
+
MODEL:
|
| 3 |
+
WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl"
|
| 4 |
+
RESNETS:
|
| 5 |
+
DEPTH: 50
|
| 6 |
+
ROI_DENSEPOSE_HEAD:
|
| 7 |
+
NAME: "DensePoseV1ConvXHead"
|
| 8 |
+
CSE:
|
| 9 |
+
EMBED_LOSS_NAME: "SoftEmbeddingLoss"
|
| 10 |
+
SOLVER:
|
| 11 |
+
MAX_ITER: 130000
|
| 12 |
+
STEPS: (100000, 120000)
|
configs/densepose_rcnn_R_101_FPN_DL_WC1M_s1x.yaml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
SEGM_CONFIDENCE:
|
| 12 |
+
ENABLED: True
|
| 13 |
+
POINT_REGRESSION_WEIGHTS: 0.0005
|
| 14 |
+
SOLVER:
|
| 15 |
+
CLIP_GRADIENTS:
|
| 16 |
+
ENABLED: True
|
| 17 |
+
MAX_ITER: 130000
|
| 18 |
+
STEPS: (100000, 120000)
|
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)
|
configs/densepose_rcnn_R_101_FPN_DL_WC2M_s1x.yaml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
SEGM_CONFIDENCE:
|
| 12 |
+
ENABLED: True
|
| 13 |
+
POINT_REGRESSION_WEIGHTS: 0.0005
|
| 14 |
+
SOLVER:
|
| 15 |
+
CLIP_GRADIENTS:
|
| 16 |
+
ENABLED: True
|
| 17 |
+
MAX_ITER: 130000
|
| 18 |
+
STEPS: (100000, 120000)
|
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)
|
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)
|
configs/densepose_rcnn_R_101_FPN_WC1M_s1x.yaml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
SEGM_CONFIDENCE:
|
| 11 |
+
ENABLED: True
|
| 12 |
+
POINT_REGRESSION_WEIGHTS: 0.0005
|
| 13 |
+
SOLVER:
|
| 14 |
+
CLIP_GRADIENTS:
|
| 15 |
+
ENABLED: True
|
| 16 |
+
MAX_ITER: 130000
|
| 17 |
+
STEPS: (100000, 120000)
|
| 18 |
+
WARMUP_FACTOR: 0.025
|
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
|
configs/densepose_rcnn_R_101_FPN_WC2M_s1x.yaml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
SEGM_CONFIDENCE:
|
| 11 |
+
ENABLED: True
|
| 12 |
+
POINT_REGRESSION_WEIGHTS: 0.0005
|
| 13 |
+
SOLVER:
|
| 14 |
+
CLIP_GRADIENTS:
|
| 15 |
+
ENABLED: True
|
| 16 |
+
MAX_ITER: 130000
|
| 17 |
+
STEPS: (100000, 120000)
|
| 18 |
+
WARMUP_FACTOR: 0.025
|
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
|
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)
|
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)
|
configs/densepose_rcnn_R_50_FPN_DL_WC1M_s1x.yaml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
SEGM_CONFIDENCE:
|
| 12 |
+
ENABLED: True
|
| 13 |
+
POINT_REGRESSION_WEIGHTS: 0.0005
|
| 14 |
+
SOLVER:
|
| 15 |
+
CLIP_GRADIENTS:
|
| 16 |
+
ENABLED: True
|
| 17 |
+
MAX_ITER: 130000
|
| 18 |
+
STEPS: (100000, 120000)
|
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)
|
configs/densepose_rcnn_R_50_FPN_DL_WC2M_s1x.yaml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
SEGM_CONFIDENCE:
|
| 12 |
+
ENABLED: True
|
| 13 |
+
POINT_REGRESSION_WEIGHTS: 0.0005
|
| 14 |
+
SOLVER:
|
| 15 |
+
CLIP_GRADIENTS:
|
| 16 |
+
ENABLED: True
|
| 17 |
+
MAX_ITER: 130000
|
| 18 |
+
STEPS: (100000, 120000)
|