Update ParsingGait (#160)

* Update ParsingGait

* Clear up the confusion

Clear up the confusion about gait3d and gait3d-parsing.

* Update 0.get_started.md

* Add BaseParsingCuttingTransform

* Update gcn.py

* Create gaitbase_gait3d_parsing_btz32x2_fixed.yaml

* Add gait3d_parsing config file

* Update 1.model_zoo.md

Update Gait3D-Parsing checkpoints

* Update 1.model_zoo.md

add configuration

* Update 1.model_zoo.md

center text

---------

Co-authored-by: Junhao Liang <43094337+darkliang@users.noreply.github.com>
This commit is contained in:
Zzier
2023-10-29 21:53:02 +08:00
committed by GitHub
parent 44fb2414f2
commit 609aa0e9aa
17 changed files with 1422 additions and 3 deletions
+17
View File
@@ -25,6 +25,23 @@ class BaseSilTransform():
return x / self.divsor
class BaseParsingCuttingTransform():
def __init__(self, divsor=255.0, cutting=None):
self.divsor = divsor
self.cutting = cutting
def __call__(self, x):
if self.cutting is not None:
cutting = self.cutting
else:
cutting = int(x.shape[-1] // 64) * 10
x = x[..., cutting:-cutting]
if x.max() == 255 or x.max() == 255.:
return x / self.divsor
else:
return x / 1.0
class BaseSilCuttingTransform():
def __init__(self, divsor=255.0, cutting=None):
self.divsor = divsor