mirror of
https://github.com/KwaiVGI/LivePortrait.git
synced 2025-03-15 05:52:58 +00:00
chore: updare the animals model version
This commit is contained in:
parent
632da7486d
commit
2105657f74
@ -1,6 +1,7 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
for human
|
||||
The entrance of humans
|
||||
"""
|
||||
|
||||
import os
|
||||
|
@ -1,6 +1,7 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
for animal
|
||||
The entrance of animal
|
||||
"""
|
||||
|
||||
import os
|
||||
|
@ -26,10 +26,11 @@ class InferenceConfig(PrintableConfig):
|
||||
checkpoint_S: str = make_abs_path('../../pretrained_weights/liveportrait/retargeting_models/stitching_retargeting_module.pth') # path to checkpoint to S and R_eyes, R_lip
|
||||
|
||||
# ANIMAL MODEL CONFIG, NOT EXPORTED PARAMS
|
||||
checkpoint_F_animal: str = make_abs_path('../../pretrained_weights/liveportrait_animals/base_models/appearance_feature_extractor.pth') # path to checkpoint of F
|
||||
checkpoint_M_animal: str = make_abs_path('../../pretrained_weights/liveportrait_animals/base_models/motion_extractor.pth') # path to checkpoint pf M
|
||||
checkpoint_G_animal: str = make_abs_path('../../pretrained_weights/liveportrait_animals/base_models/spade_generator.pth') # path to checkpoint of G
|
||||
checkpoint_W_animal: str = make_abs_path('../../pretrained_weights/liveportrait_animals/base_models/warping_module.pth') # path to checkpoint of W
|
||||
version_animals = "_v1.1" # set it to "" for the previous version
|
||||
checkpoint_F_animal: str = make_abs_path(f'../../pretrained_weights/liveportrait_animals/base_models{version_animals}/appearance_feature_extractor.pth') # path to checkpoint of F
|
||||
checkpoint_M_animal: str = make_abs_path(f'../../pretrained_weights/liveportrait_animals/base_models{version_animals}/motion_extractor.pth') # path to checkpoint pf M
|
||||
checkpoint_G_animal: str = make_abs_path(f'../../pretrained_weights/liveportrait_animals/base_models{version_animals}/spade_generator.pth') # path to checkpoint of G
|
||||
checkpoint_W_animal: str = make_abs_path(f'../../pretrained_weights/liveportrait_animals/base_models{version_animals}/warping_module.pth') # path to checkpoint of W
|
||||
checkpoint_S_animal: str = make_abs_path('../../pretrained_weights/liveportrait/retargeting_models/stitching_retargeting_module.pth') # path to checkpoint to S and R_eyes, R_lip, NOTE: use human temporarily!
|
||||
|
||||
# EXPORTED PARAMS
|
||||
|
@ -60,7 +60,7 @@ class XPoseRunner(object):
|
||||
|
||||
def get_unipose_output(self, image, instance_text_prompt, keypoint_text_prompt, box_threshold, IoU_threshold):
|
||||
instance_list = instance_text_prompt.split(',')
|
||||
|
||||
|
||||
if len(keypoint_text_prompt) == 9:
|
||||
# torch.Size([1, 512]) torch.Size([9, 512])
|
||||
ins_text_embeddings, kpt_text_embeddings = self.ins_text_embeddings_9, self.kpt_text_embeddings_9
|
||||
|
Loading…
Reference in New Issue
Block a user