add BG_actor6 processing

This commit is contained in:
sen.liang committed 2022-07-14 19:19:33 +08:00
1 parent a7cd20b689
commit faeb2332b8
15 files changed
+1853 -95

No files matched your search

@@ -13,10 +13,13 @@ from decalib.datasets.datasets2 import ObamaData
from decalib.utils import util
from decalib.utils.config import cfg as deca_cfg
def main(args):
# device = args.device
device = "cuda:5"
device = "cuda:0"
# run DECA
deca_cfg.model.use_tex = args.useTex
deca = DECA(config = deca_cfg, device=device)
@@ -64,9 +67,12 @@ def main(args):
nframe_real = len(list(ipath_frame.glob("*.jpg")))
if nframe_real != nframes:
if nframe_real + 10 < nframes:
print(f"\n ERROR: nframe_real ={nframe_real} / nframe_info ={nframes}")
continue
else:
nframes = nframe_real
# check if finish
nkpt2d = len(list(ipath_kpt2d.glob("*.txt")))