IDM-VTON commited on
Commit ยท
938e515
1
Parent(s): 6b036e0
update IDM-VTON Demo
Browse filesThis view is limited to 50 files because it contains too many changes. ย See raw diff
Files changed (50)
- app.pyAdded+274
- apply_net.pyAdded+359
- ckpt/densepose/model_final_162be9.pklAdded+3
- ckpt/humanparsing/parsing_atr.onnxAdded+3
- ckpt/humanparsing/parsing_lip.onnxAdded+3
- ckpt/openpose/.DS_StoreAdded
- ckpt/openpose/ckpts/body_pose_model.pthAdded+3
- configs/Base-DensePose-RCNN-FPN.yamlAdded+48
- configs/HRNet/densepose_rcnn_HRFPN_HRNet_w32_s1x.yamlAdded+16
- configs/HRNet/densepose_rcnn_HRFPN_HRNet_w40_s1x.yamlAdded+23
- configs/HRNet/densepose_rcnn_HRFPN_HRNet_w48_s1x.yamlAdded+23
- configs/cse/Base-DensePose-RCNN-FPN-Human.yamlAdded+20
- configs/cse/Base-DensePose-RCNN-FPN.yamlAdded+60
- configs/cse/densepose_rcnn_R_101_FPN_DL_s1x.yamlAdded+12
- configs/cse/densepose_rcnn_R_101_FPN_DL_soft_s1x.yamlAdded+12
- configs/cse/densepose_rcnn_R_101_FPN_s1x.yamlAdded+12
- configs/cse/densepose_rcnn_R_101_FPN_soft_s1x.yamlAdded+12
- configs/cse/densepose_rcnn_R_50_FPN_DL_s1x.yamlAdded+12
- configs/cse/densepose_rcnn_R_50_FPN_DL_soft_s1x.yamlAdded+12
- configs/cse/densepose_rcnn_R_50_FPN_s1x.yamlAdded+12
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_16k.yamlAdded+133
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_4k.yamlAdded+133
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_16k.yamlAdded+119
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_i2m_16k.yamlAdded+121
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_m2m_16k.yamlAdded+138
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_16k.yamlAdded+119
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_4k.yamlAdded+119
- configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k.yamlAdded+118
- configs/cse/densepose_rcnn_R_50_FPN_soft_chimps_finetune_4k.yamlAdded+29
- configs/cse/densepose_rcnn_R_50_FPN_soft_s1x.yamlAdded+12
- configs/densepose_rcnn_R_101_FPN_DL_WC1M_s1x.yamlAdded+18
- configs/densepose_rcnn_R_101_FPN_DL_WC1_s1x.yamlAdded+16
- configs/densepose_rcnn_R_101_FPN_DL_WC2M_s1x.yamlAdded+18
- configs/densepose_rcnn_R_101_FPN_DL_WC2_s1x.yamlAdded+16
- configs/densepose_rcnn_R_101_FPN_DL_s1x.yamlAdded+10
- configs/densepose_rcnn_R_101_FPN_WC1M_s1x.yamlAdded+18
- configs/densepose_rcnn_R_101_FPN_WC1_s1x.yamlAdded+16
- configs/densepose_rcnn_R_101_FPN_WC2M_s1x.yamlAdded+18
- configs/densepose_rcnn_R_101_FPN_WC2_s1x.yamlAdded+16
- configs/densepose_rcnn_R_101_FPN_s1x.yamlAdded+8
- configs/densepose_rcnn_R_101_FPN_s1x_legacy.yamlAdded+17
- configs/densepose_rcnn_R_50_FPN_DL_WC1M_s1x.yamlAdded+18
- configs/densepose_rcnn_R_50_FPN_DL_WC1_s1x.yamlAdded+16
- configs/densepose_rcnn_R_50_FPN_DL_WC2M_s1x.yamlAdded+18
- configs/densepose_rcnn_R_50_FPN_DL_WC2_s1x.yamlAdded+16
- configs/densepose_rcnn_R_50_FPN_DL_s1x.yamlAdded+10
- configs/densepose_rcnn_R_50_FPN_WC1M_s1x.yamlAdded+20
- configs/densepose_rcnn_R_50_FPN_WC1_s1x.yamlAdded+16
- configs/densepose_rcnn_R_50_FPN_WC2M_s1x.yamlAdded+18
- configs/densepose_rcnn_R_50_FPN_WC2_s1x.yamlAdded+16
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274import gradio as grfrom PIL import Imagefrom src.tryon_pipeline import StableDiffusionXLInpaintPipeline as TryonPipelinefrom src.unet_hacked_garmnet import UNet2DConditionModel as UNet2DConditionModel_reffrom src.unet_hacked_tryon import UNet2DConditionModelfrom transformers import ( CLIPImageProcessor, CLIPVisionModelWithProjection, CLIPTextModel, CLIPTextModelWithProjection,)from diffusers import DDPMScheduler,AutoencoderKLfrom typing import List
import torchimport osfrom transformers import AutoTokenizerimport spacesimport numpy as npfrom utils_mask import get_mask_locationfrom torchvision import transformsimport apply_netfrom preprocess.humanparsing.run_parsing import Parsingfrom preprocess.openpose.run_openpose import OpenPosefrom detectron2.data.detection_utils import convert_PIL_to_numpy,_apply_exif_orientation
def pil_to_binary_mask(pil_image, threshold=0): np_image = np.array(pil_image) grayscale_image = Image.fromarray(np_image).convert("L") binary_mask = np.array(grayscale_image) > threshold mask = np.zeros(binary_mask.shape, dtype=np.uint8) for i in range(binary_mask.shape[0]): for j in range(binary_mask.shape[1]): if binary_mask[i,j] == True : mask[i,j] = 1 mask = (mask*255).astype(np.uint8) output_mask = Image.fromarray(mask) return output_mask
base_path = 'yisol/IDM-VTON'example_path = os.path.join(os.path.dirname(__file__), 'example')
unet = UNet2DConditionModel.from_pretrained( base_path, subfolder="unet", torch_dtype=torch.float16,)unet.requires_grad_(False)tokenizer_one = AutoTokenizer.from_pretrained( base_path, subfolder="tokenizer", revision=None, use_fast=False,)tokenizer_two = AutoTokenizer.from_pretrained( base_path, subfolder="tokenizer_2", revision=None, use_fast=False,)noise_scheduler = DDPMScheduler.from_pretrained(base_path, subfolder="scheduler")
text_encoder_one = CLIPTextModel.from_pretrained( base_path, subfolder="text_encoder", torch_dtype=torch.float16,)text_encoder_two = CLIPTextModelWithProjection.from_pretrained( base_path, subfolder="text_encoder_2", torch_dtype=torch.float16,)image_encoder = CLIPVisionModelWithProjection.from_pretrained( base_path, subfolder="image_encoder", torch_dtype=torch.float16, )vae = AutoencoderKL.from_pretrained(base_path, subfolder="vae", torch_dtype=torch.float16,)
# "stabilityai/stable-diffusion-xl-base-1.0",UNet_Encoder = UNet2DConditionModel_ref.from_pretrained( base_path, subfolder="unet_encoder", torch_dtype=torch.float16,)
parsing_model = Parsing(0)openpose_model = OpenPose(0)
UNet_Encoder.requires_grad_(False)image_encoder.requires_grad_(False)vae.requires_grad_(False)unet.requires_grad_(False)text_encoder_one.requires_grad_(False)text_encoder_two.requires_grad_(False)tensor_transfrom = transforms.Compose( [ transforms.ToTensor(), transforms.Normalize([0.5], [0.5]), ] )
pipe = TryonPipeline.from_pretrained( base_path, unet=unet, vae=vae, feature_extractor= CLIPImageProcessor(), text_encoder = text_encoder_one, text_encoder_2 = text_encoder_two, tokenizer = tokenizer_one, tokenizer_2 = tokenizer_two, scheduler = noise_scheduler, image_encoder=image_encoder, torch_dtype=torch.float16,)pipe.unet_encoder = UNet_Encoder
@spaces.GPUdef start_tryon(dict,garm_img,garment_des,is_checked,denoise_steps,seed): device = "cuda" openpose_model.preprocessor.body_estimation.model.to(device) pipe.to(device) pipe.unet_encoder.to(device)
garm_img= garm_img.convert("RGB").resize((768,1024)) human_img = dict["background"].resize((768,1024)).convert("RGB") if is_checked: keypoints = openpose_model(human_img.resize((384,512))) model_parse, _ = parsing_model(human_img.resize((384,512))) mask, mask_gray = get_mask_location('hd', "upper_body", model_parse, keypoints) mask = mask.resize((768,1024)) else: mask = pil_to_binary_mask(dict['layers'][0].convert("RGB").resize((768, 1024))) mask = transforms.ToTensor()(mask) mask = mask.unsqueeze(0)
human_img_arg = _apply_exif_orientation(human_img.resize((384,512))) human_img_arg = convert_PIL_to_numpy(human_img_arg, format="BGR")
args = apply_net.create_argument_parser().parse_args(('show', './configs/densepose_rcnn_R_50_FPN_s1x.yaml', './ckpt/densepose/model_final_162be9.pkl', 'dp_segm', '-v', '--opts', 'MODEL.DEVICE', 'cuda')) # verbosity = getattr(args, "verbosity", None) pose_img = args.func(args,human_img_arg) pose_img = pose_img[:,:,::-1] pose_img = Image.fromarray(pose_img).resize((768,1024)) with torch.no_grad(): # Extract the images with torch.cuda.amp.autocast(): with torch.no_grad(): prompt = "model is wearing " + garment_des negative_prompt = "monochrome, lowres, bad anatomy, worst quality, low quality" with torch.inference_mode(): ( prompt_embeds, negative_prompt_embeds, pooled_prompt_embeds, negative_pooled_prompt_embeds, ) = pipe.encode_prompt( prompt, num_images_per_prompt=1, do_classifier_free_guidance=True, negative_prompt=negative_prompt, ) prompt = "a photo of " + garment_des negative_prompt = "monochrome, lowres, bad anatomy, worst quality, low quality" if not isinstance(prompt, List): prompt = [prompt] * 1 if not isinstance(negative_prompt, List): negative_prompt = [negative_prompt] * 1 with torch.inference_mode(): ( prompt_embeds_c, _, _, _, ) = pipe.encode_prompt( prompt, num_images_per_prompt=1, do_classifier_free_guidance=False, negative_prompt=negative_prompt, ) pose_img = tensor_transfrom(pose_img).unsqueeze(0).to(device,torch.float16) garm_tensor = tensor_transfrom(garm_img).unsqueeze(0).to(device,torch.float16) generator = torch.Generator(device).manual_seed(seed) if seed is not None else None images = pipe( prompt_embeds=prompt_embeds.to(device,torch.float16), negative_prompt_embeds=negative_prompt_embeds.to(device,torch.float16), pooled_prompt_embeds=pooled_prompt_embeds.to(device,torch.float16), negative_pooled_prompt_embeds=negative_pooled_prompt_embeds.to(device,torch.float16), num_inference_steps=denoise_steps, generator=generator, strength = 1.0, pose_img = pose_img.to(device,torch.float16), text_embeds_cloth=prompt_embeds_c.to(device,torch.float16), cloth = garm_tensor.to(device,torch.float16), mask_image=mask, image=human_img, height=1024, width=768, ip_adapter_image = garm_img.resize((768,1024)), guidance_scale=2.0, )[0] return images[0]
garm_list = os.listdir(os.path.join(example_path,"cloth"))garm_list_path = [os.path.join(example_path,"cloth",garm) for garm in garm_list]
human_list = os.listdir(os.path.join(example_path,"human"))human_list_path = [os.path.join(example_path,"human",human) for human in human_list]
human_ex_list = []for ex_human in human_list_path: ex_dict= {} ex_dict['background'] = ex_human ex_dict['layers'] = None ex_dict['composite'] = None human_ex_list.append(ex_dict)
##default human
image_blocks = gr.Blocks().queue()with image_blocks as demo: with gr.Row(): with gr.Column(): imgs = gr.ImageMask(sources='upload', type="pil", label='Human. Mask with pen or use auto-masking', interactive=True) with gr.Row(): is_checked = gr.Checkbox(label="Yes", info="Use auto-generated mask") example = gr.Examples( inputs=imgs, examples_per_page=8, examples=human_ex_list )
with gr.Column(): garm_img = gr.Image(label="Garment", sources='upload', type="pil") with gr.Row(elem_id="prompt-container"): with gr.Row(): prompt = gr.Textbox(placeholder="Description of garment ex) Short Sleeve Round Neck T-shirts", show_label=False, elem_id="prompt") example = gr.Examples( inputs=garm_img, examples_per_page=8, examples=garm_list_path) with gr.Column(): # image_out = gr.Image(label="Output", elem_id="output-img", height=400) image_out = gr.Image(label="Output", elem_id="output-img",show_share_button=False)
with gr.Column(): try_button = gr.Button(value="Try-on") with gr.Accordion(label="Advanced Settings", open=False): with gr.Row(): denoise_steps = gr.Number(label="Denoising Steps", minimum=20, maximum=40, value=30, step=1) seed = gr.Number(label="Seed", minimum=-1, maximum=2147483647, step=1, value=42)
try_button.click(fn=start_tryon, inputs=[imgs, garm_img, prompt, is_checked, denoise_steps, seed], outputs=[image_out], api_name='tryon')
image_blocks.launch()
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359#!/usr/bin/env python3# Copyright (c) Facebook, Inc. and its affiliates.
import argparseimport globimport loggingimport osimport sysfrom typing import Any, ClassVar, Dict, Listimport torch
from detectron2.config import CfgNode, get_cfgfrom detectron2.data.detection_utils import read_imagefrom detectron2.engine.defaults import DefaultPredictorfrom detectron2.structures.instances import Instancesfrom detectron2.utils.logger import setup_logger
from densepose import add_densepose_configfrom densepose.structures import DensePoseChartPredictorOutput, DensePoseEmbeddingPredictorOutputfrom densepose.utils.logger import verbosity_to_levelfrom densepose.vis.base import CompoundVisualizerfrom densepose.vis.bounding_box import ScoredBoundingBoxVisualizerfrom densepose.vis.densepose_outputs_vertex import ( DensePoseOutputsTextureVisualizer, DensePoseOutputsVertexVisualizer, get_texture_atlases,)from densepose.vis.densepose_results import ( DensePoseResultsContourVisualizer, DensePoseResultsFineSegmentationVisualizer, DensePoseResultsUVisualizer, DensePoseResultsVVisualizer,)from densepose.vis.densepose_results_textures import ( DensePoseResultsVisualizerWithTexture, get_texture_atlas,)from densepose.vis.extractor import ( CompoundExtractor, DensePoseOutputsExtractor, DensePoseResultExtractor, create_extractor,)
DOC = """Apply Net - a tool to print / visualize DensePose results"""
LOGGER_NAME = "apply_net"logger = logging.getLogger(LOGGER_NAME)
_ACTION_REGISTRY: Dict[str, "Action"] = {}
class Action: @classmethod def add_arguments(cls: type, parser: argparse.ArgumentParser): parser.add_argument( "-v", "--verbosity", action="count", help="Verbose mode. Multiple -v options increase the verbosity.", )
def register_action(cls: type): """ Decorator for action classes to automate action registration """ global _ACTION_REGISTRY _ACTION_REGISTRY[cls.COMMAND] = cls return cls
class InferenceAction(Action): @classmethod def add_arguments(cls: type, parser: argparse.ArgumentParser): super(InferenceAction, cls).add_arguments(parser) parser.add_argument("cfg", metavar="<config>", help="Config file") parser.add_argument("model", metavar="<model>", help="Model file") parser.add_argument( "--opts", help="Modify config options using the command-line 'KEY VALUE' pairs", default=[], nargs=argparse.REMAINDER, )
@classmethod def execute(cls: type, args: argparse.Namespace, human_img): logger.info(f"Loading config from {args.cfg}") opts = [] cfg = cls.setup_config(args.cfg, args.model, args, opts) logger.info(f"Loading model from {args.model}") predictor = DefaultPredictor(cfg) # logger.info(f"Loading data from {args.input}") # file_list = cls._get_input_file_list(args.input) # if len(file_list) == 0: # logger.warning(f"No input images for {args.input}") # return context = cls.create_context(args, cfg) # for file_name in file_list: # img = read_image(file_name, format="BGR") # predictor expects BGR image. with torch.no_grad(): outputs = predictor(human_img)["instances"] out_pose = cls.execute_on_outputs(context, {"image": human_img}, outputs) cls.postexecute(context) return out_pose
@classmethod def setup_config( cls: type, config_fpath: str, model_fpath: str, args: argparse.Namespace, opts: List[str] ): cfg = get_cfg() add_densepose_config(cfg) cfg.merge_from_file(config_fpath) cfg.merge_from_list(args.opts) if opts: cfg.merge_from_list(opts) cfg.MODEL.WEIGHTS = model_fpath cfg.freeze() return cfg
@classmethod def _get_input_file_list(cls: type, input_spec: str): if os.path.isdir(input_spec): file_list = [ os.path.join(input_spec, fname) for fname in os.listdir(input_spec) if os.path.isfile(os.path.join(input_spec, fname)) ] elif os.path.isfile(input_spec): file_list = [input_spec] else: file_list = glob.glob(input_spec) return file_list
@register_actionclass DumpAction(InferenceAction): """ Dump action that outputs results to a pickle file """
COMMAND: ClassVar[str] = "dump"
@classmethod def add_parser(cls: type, subparsers: argparse._SubParsersAction): parser = subparsers.add_parser(cls.COMMAND, help="Dump model outputs to a file.") cls.add_arguments(parser) parser.set_defaults(func=cls.execute)
@classmethod def add_arguments(cls: type, parser: argparse.ArgumentParser): super(DumpAction, cls).add_arguments(parser) parser.add_argument( "--output", metavar="<dump_file>", default="results.pkl", help="File name to save dump to", )
@classmethod def execute_on_outputs( cls: type, context: Dict[str, Any], entry: Dict[str, Any], outputs: Instances ): image_fpath = entry["file_name"] logger.info(f"Processing {image_fpath}") result = {"file_name": image_fpath} if outputs.has("scores"): result["scores"] = outputs.get("scores").cpu() if outputs.has("pred_boxes"): result["pred_boxes_XYXY"] = outputs.get("pred_boxes").tensor.cpu() if outputs.has("pred_densepose"): if isinstance(outputs.pred_densepose, DensePoseChartPredictorOutput): extractor = DensePoseResultExtractor() elif isinstance(outputs.pred_densepose, DensePoseEmbeddingPredictorOutput): extractor = DensePoseOutputsExtractor() result["pred_densepose"] = extractor(outputs)[0] context["results"].append(result)
@classmethod def create_context(cls: type, args: argparse.Namespace, cfg: CfgNode): context = {"results": [], "out_fname": args.output} return context
@classmethod def postexecute(cls: type, context: Dict[str, Any]): out_fname = context["out_fname"] out_dir = os.path.dirname(out_fname) if len(out_dir) > 0 and not os.path.exists(out_dir): os.makedirs(out_dir) with open(out_fname, "wb") as hFile: torch.save(context["results"], hFile) logger.info(f"Output saved to {out_fname}")
@register_actionclass ShowAction(InferenceAction): """ Show action that visualizes selected entries on an image """
COMMAND: ClassVar[str] = "show" VISUALIZERS: ClassVar[Dict[str, object]] = { "dp_contour": DensePoseResultsContourVisualizer, "dp_segm": DensePoseResultsFineSegmentationVisualizer, "dp_u": DensePoseResultsUVisualizer, "dp_v": DensePoseResultsVVisualizer, "dp_iuv_texture": DensePoseResultsVisualizerWithTexture, "dp_cse_texture": DensePoseOutputsTextureVisualizer, "dp_vertex": DensePoseOutputsVertexVisualizer, "bbox": ScoredBoundingBoxVisualizer, }
@classmethod def add_parser(cls: type, subparsers: argparse._SubParsersAction): parser = subparsers.add_parser(cls.COMMAND, help="Visualize selected entries") cls.add_arguments(parser) parser.set_defaults(func=cls.execute)
@classmethod def add_arguments(cls: type, parser: argparse.ArgumentParser): super(ShowAction, cls).add_arguments(parser) parser.add_argument( "visualizations", metavar="<visualizations>", help="Comma separated list of visualizations, possible values: " "[{}]".format(",".join(sorted(cls.VISUALIZERS.keys()))), ) parser.add_argument( "--min_score", metavar="<score>", default=0.8, type=float, help="Minimum detection score to visualize", ) parser.add_argument( "--nms_thresh", metavar="<threshold>", default=None, type=float, help="NMS threshold" ) parser.add_argument( "--texture_atlas", metavar="<texture_atlas>", default=None, help="Texture atlas file (for IUV texture transfer)", ) parser.add_argument( "--texture_atlases_map", metavar="<texture_atlases_map>", default=None, help="JSON string of a dict containing texture atlas files for each mesh", ) parser.add_argument( "--output", metavar="<image_file>", default="outputres.png", help="File name to save output to", )
@classmethod def setup_config( cls: type, config_fpath: str, model_fpath: str, args: argparse.Namespace, opts: List[str] ): opts.append("MODEL.ROI_HEADS.SCORE_THRESH_TEST") opts.append(str(args.min_score)) if args.nms_thresh is not None: opts.append("MODEL.ROI_HEADS.NMS_THRESH_TEST") opts.append(str(args.nms_thresh)) cfg = super(ShowAction, cls).setup_config(config_fpath, model_fpath, args, opts) return cfg
@classmethod def execute_on_outputs( cls: type, context: Dict[str, Any], entry: Dict[str, Any], outputs: Instances ): import cv2 import numpy as np visualizer = context["visualizer"] extractor = context["extractor"] # image_fpath = entry["file_name"] # logger.info(f"Processing {image_fpath}") image = cv2.cvtColor(entry["image"], cv2.COLOR_BGR2GRAY) image = np.tile(image[:, :, np.newaxis], [1, 1, 3]) data = extractor(outputs) image_vis = visualizer.visualize(image, data)
return image_vis entry_idx = context["entry_idx"] + 1 out_fname = './image-densepose/' + image_fpath.split('/')[-1] out_dir = './image-densepose' out_dir = os.path.dirname(out_fname) if len(out_dir) > 0 and not os.path.exists(out_dir): os.makedirs(out_dir) cv2.imwrite(out_fname, image_vis) logger.info(f"Output saved to {out_fname}") context["entry_idx"] += 1
@classmethod def postexecute(cls: type, context: Dict[str, Any]): pass# python ./apply_net.py show ./configs/densepose_rcnn_R_50_FPN_s1x.yaml https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl /home/alin0222/DressCode/upper_body/images dp_segm -v --opts MODEL.DEVICE cpu
@classmethod def _get_out_fname(cls: type, entry_idx: int, fname_base: str): base, ext = os.path.splitext(fname_base) return base + ".{0:04d}".format(entry_idx) + ext
@classmethod def create_context(cls: type, args: argparse.Namespace, cfg: CfgNode) -> Dict[str, Any]: vis_specs = args.visualizations.split(",") visualizers = [] extractors = [] for vis_spec in vis_specs: texture_atlas = get_texture_atlas(args.texture_atlas) texture_atlases_dict = get_texture_atlases(args.texture_atlases_map) vis = cls.VISUALIZERS[vis_spec]( cfg=cfg, texture_atlas=texture_atlas, texture_atlases_dict=texture_atlases_dict, ) visualizers.append(vis) extractor = create_extractor(vis) extractors.append(extractor) visualizer = CompoundVisualizer(visualizers) extractor = CompoundExtractor(extractors) context = { "extractor": extractor, "visualizer": visualizer, "out_fname": args.output, "entry_idx": 0, } return context
def create_argument_parser() -> argparse.ArgumentParser: parser = argparse.ArgumentParser( description=DOC, formatter_class=lambda prog: argparse.HelpFormatter(prog, max_help_position=120), ) parser.set_defaults(func=lambda _: parser.print_help(sys.stdout)) subparsers = parser.add_subparsers(title="Actions") for _, action in _ACTION_REGISTRY.items(): action.add_parser(subparsers) return parser
def main(): parser = create_argument_parser() args = parser.parse_args() verbosity = getattr(args, "verbosity", None) global logger logger = setup_logger(name=LOGGER_NAME) logger.setLevel(verbosity_to_level(verbosity)) args.func(args)
if __name__ == "__main__": main()
# python ./apply_net.py show ./configs/densepose_rcnn_R_50_FPN_s1x.yaml https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl /home/alin0222/Dresscode/dresses/humanonly dp_segm -v --opts MODEL.DEVICE cuda123version https://git-lfs.github.com/spec/v1oid sha256:b8a7382001b16e453bad95ca9dbc68ae8f2b839b304cf90eaf5c27fbdb4dae91size 255757821123version https://git-lfs.github.com/spec/v1oid sha256:04c7d1d070d0e0ae943d86b18cb5aaaea9e278d97462e9cfb270cbbe4cd977f4size 266859305123version https://git-lfs.github.com/spec/v1oid sha256:8436e1dae96e2601c373d1ace29c8f0978b16357d9038c17a8ba756cca376dbcsize 266863411123version https://git-lfs.github.com/spec/v1oid sha256:25a948c16078b0f08e236bda51a385d855ef4c153598947c28c0d47ed94bb746size 209267595123456789101112131415161718192021222324252627282930313233343536373839404142434445464748VERSION: 2MODEL: META_ARCHITECTURE: "GeneralizedRCNN" BACKBONE: NAME: "build_resnet_fpn_backbone" RESNETS: OUT_FEATURES: ["res2", "res3", "res4", "res5"] FPN: IN_FEATURES: ["res2", "res3", "res4", "res5"] ANCHOR_GENERATOR: SIZES: [[32], [64], [128], [256], [512]] # One size for each in feature map ASPECT_RATIOS: [[0.5, 1.0, 2.0]] # Three aspect ratios (same for all in feature maps) RPN: IN_FEATURES: ["p2", "p3", "p4", "p5", "p6"] PRE_NMS_TOPK_TRAIN: 2000 # Per FPN level PRE_NMS_TOPK_TEST: 1000 # Per FPN level # Detectron1 uses 2000 proposals per-batch, # (See "modeling/rpn/rpn_outputs.py" for details of this legacy issue) # which is approximately 1000 proposals per-image since the default batch size for FPN is 2. POST_NMS_TOPK_TRAIN: 1000 POST_NMS_TOPK_TEST: 1000
DENSEPOSE_ON: True ROI_HEADS: NAME: "DensePoseROIHeads" IN_FEATURES: ["p2", "p3", "p4", "p5"] NUM_CLASSES: 1 ROI_BOX_HEAD: NAME: "FastRCNNConvFCHead" NUM_FC: 2 POOLER_RESOLUTION: 7 POOLER_SAMPLING_RATIO: 2 POOLER_TYPE: "ROIAlign" ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" POOLER_TYPE: "ROIAlign" NUM_COARSE_SEGM_CHANNELS: 2DATASETS: TRAIN: ("densepose_coco_2014_train", "densepose_coco_2014_valminusminival") TEST: ("densepose_coco_2014_minival",)SOLVER: IMS_PER_BATCH: 16 BASE_LR: 0.01 STEPS: (60000, 80000) MAX_ITER: 90000 WARMUP_FACTOR: 0.1INPUT: MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800)12345678910111213141516_BASE_: "../Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "https://1drv.ms/u/s!Aus8VCZ_C_33dYBMemi9xOUFR0w" BACKBONE: NAME: "build_hrfpn_backbone" RPN: IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5'] ROI_HEADS: IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5']SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000) CLIP_GRADIENTS: ENABLED: True CLIP_TYPE: "norm" BASE_LR: 0.031234567891011121314151617181920212223_BASE_: "../Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "https://1drv.ms/u/s!Aus8VCZ_C_33ck0gvo5jfoWBOPo" BACKBONE: NAME: "build_hrfpn_backbone" RPN: IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5'] ROI_HEADS: IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5'] HRNET: STAGE2: NUM_CHANNELS: [40, 80] STAGE3: NUM_CHANNELS: [40, 80, 160] STAGE4: NUM_CHANNELS: [40, 80, 160, 320]SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000) CLIP_GRADIENTS: ENABLED: True CLIP_TYPE: "norm" BASE_LR: 0.031234567891011121314151617181920212223_BASE_: "../Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "https://1drv.ms/u/s!Aus8VCZ_C_33dKvqI6pBZlifgJk" BACKBONE: NAME: "build_hrfpn_backbone" RPN: IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5'] ROI_HEADS: IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5'] HRNET: STAGE2: NUM_CHANNELS: [48, 96] STAGE3: NUM_CHANNELS: [48, 96, 192] STAGE4: NUM_CHANNELS: [48, 96, 192, 384]SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000) CLIP_GRADIENTS: ENABLED: True CLIP_TYPE: "norm" BASE_LR: 0.031234567891011121314151617181920_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: ROI_DENSEPOSE_HEAD: CSE: EMBEDDERS: "smpl_27554": TYPE: vertex_feature NUM_VERTICES: 27554 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_smpl_27554_256.pkl"DATASETS: TRAIN: - "densepose_coco_2014_train_cse" - "densepose_coco_2014_valminusminival_cse" TEST: - "densepose_coco_2014_minival_cse" CLASS_TO_MESH_NAME_MAPPING: "0": "smpl_27554"123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960VERSION: 2MODEL: META_ARCHITECTURE: "GeneralizedRCNN" BACKBONE: NAME: "build_resnet_fpn_backbone" RESNETS: OUT_FEATURES: ["res2", "res3", "res4", "res5"] FPN: IN_FEATURES: ["res2", "res3", "res4", "res5"] ANCHOR_GENERATOR: SIZES: [[32], [64], [128], [256], [512]] # One size for each in feature map ASPECT_RATIOS: [[0.5, 1.0, 2.0]] # Three aspect ratios (same for all in feature maps) RPN: IN_FEATURES: ["p2", "p3", "p4", "p5", "p6"] PRE_NMS_TOPK_TRAIN: 2000 # Per FPN level PRE_NMS_TOPK_TEST: 1000 # Per FPN level # Detectron1 uses 2000 proposals per-batch, # (See "modeling/rpn/rpn_outputs.py" for details of this legacy issue) # which is approximately 1000 proposals per-image since the default batch size for FPN is 2. POST_NMS_TOPK_TRAIN: 1000 POST_NMS_TOPK_TEST: 1000
DENSEPOSE_ON: True ROI_HEADS: NAME: "DensePoseROIHeads" IN_FEATURES: ["p2", "p3", "p4", "p5"] NUM_CLASSES: 1 ROI_BOX_HEAD: NAME: "FastRCNNConvFCHead" NUM_FC: 2 POOLER_RESOLUTION: 7 POOLER_SAMPLING_RATIO: 2 POOLER_TYPE: "ROIAlign" ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" POOLER_TYPE: "ROIAlign" NUM_COARSE_SEGM_CHANNELS: 2 PREDICTOR_NAME: "DensePoseEmbeddingPredictor" LOSS_NAME: "DensePoseCseLoss" CSE: # embedding loss, possible values: # - "EmbeddingLoss" # - "SoftEmbeddingLoss" EMBED_LOSS_NAME: "EmbeddingLoss"SOLVER: IMS_PER_BATCH: 16 BASE_LR: 0.01 STEPS: (60000, 80000) MAX_ITER: 90000 WARMUP_FACTOR: 0.1 CLIP_GRADIENTS: CLIP_TYPE: norm CLIP_VALUE: 1.0 ENABLED: true NORM_TYPE: 2.0INPUT: MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800)DENSEPOSE_EVALUATION: TYPE: cse STORAGE: file123456789101112_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead" CSE: EMBED_LOSS_NAME: "EmbeddingLoss"SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000)123456789101112_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead" CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss"SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000)123456789101112_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" CSE: EMBED_LOSS_NAME: "EmbeddingLoss"SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000)123456789101112_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss"SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000)123456789101112_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead" CSE: EMBED_LOSS_NAME: "EmbeddingLoss"SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000)123456789101112_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead" CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss"SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000)123456789101112_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" CSE: EMBED_LOSS_NAME: "EmbeddingLoss"SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl" RESNETS: DEPTH: 50 ROI_HEADS: NUM_CLASSES: 1 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" COARSE_SEGM_TRAINED_BY_MASKS: True CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss" EMBEDDING_DIST_GAUSS_SIGMA: 0.1 GEODESIC_DIST_GAUSS_SIGMA: 0.1 EMBEDDERS: "cat_7466": TYPE: vertex_feature NUM_VERTICES: 7466 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl" "dog_7466": TYPE: vertex_feature NUM_VERTICES: 7466 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl" "sheep_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" "horse_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" "zebra_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" "giraffe_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" "elephant_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" "cow_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" "bear_4936": TYPE: vertex_feature NUM_VERTICES: 4936 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"DATASETS: TRAIN: - "densepose_lvis_v1_ds2_train_v1" TEST: - "densepose_lvis_v1_ds2_val_v1" WHITELISTED_CATEGORIES: "densepose_lvis_v1_ds2_train_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog "densepose_lvis_v1_ds2_val_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog CATEGORY_MAPS: "densepose_lvis_v1_ds2_train_v1": "1202": 943 # zebra -> sheep "569": 943 # horse -> sheep "496": 943 # giraffe -> sheep "422": 943 # elephant -> sheep "80": 943 # cow -> sheep "76": 943 # bear -> sheep "225": 943 # cat -> sheep "378": 943 # dog -> sheep "densepose_lvis_v1_ds2_val_v1": "1202": 943 # zebra -> sheep "569": 943 # horse -> sheep "496": 943 # giraffe -> sheep "422": 943 # elephant -> sheep "80": 943 # cow -> sheep "76": 943 # bear -> sheep "225": 943 # cat -> sheep "378": 943 # dog -> sheep CLASS_TO_MESH_NAME_MAPPING: # Note: different classes are mapped to a single class # mesh is chosen based on GT data, so this is just some # value which has no particular meaning "0": "sheep_5004"SOLVER: MAX_ITER: 16000 STEPS: (12000, 14000)DENSEPOSE_EVALUATION: EVALUATE_MESH_ALIGNMENT: True123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl" RESNETS: DEPTH: 50 ROI_HEADS: NUM_CLASSES: 1 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" COARSE_SEGM_TRAINED_BY_MASKS: True CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss" EMBEDDING_DIST_GAUSS_SIGMA: 0.1 GEODESIC_DIST_GAUSS_SIGMA: 0.1 EMBEDDERS: "cat_5001": TYPE: vertex_feature NUM_VERTICES: 5001 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_5001_256.pkl" "dog_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_5002_256.pkl" "sheep_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" "horse_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" "zebra_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" "giraffe_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" "elephant_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" "cow_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" "bear_4936": TYPE: vertex_feature NUM_VERTICES: 4936 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"DATASETS: TRAIN: - "densepose_lvis_v1_ds1_train_v1" TEST: - "densepose_lvis_v1_ds1_val_v1" WHITELISTED_CATEGORIES: "densepose_lvis_v1_ds1_train_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog "densepose_lvis_v1_ds1_val_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog CATEGORY_MAPS: "densepose_lvis_v1_ds1_train_v1": "1202": 943 # zebra -> sheep "569": 943 # horse -> sheep "496": 943 # giraffe -> sheep "422": 943 # elephant -> sheep "80": 943 # cow -> sheep "76": 943 # bear -> sheep "225": 943 # cat -> sheep "378": 943 # dog -> sheep "densepose_lvis_v1_ds1_val_v1": "1202": 943 # zebra -> sheep "569": 943 # horse -> sheep "496": 943 # giraffe -> sheep "422": 943 # elephant -> sheep "80": 943 # cow -> sheep "76": 943 # bear -> sheep "225": 943 # cat -> sheep "378": 943 # dog -> sheep CLASS_TO_MESH_NAME_MAPPING: # Note: different classes are mapped to a single class # mesh is chosen based on GT data, so this is just some # value which has no particular meaning "0": "sheep_5004"SOLVER: MAX_ITER: 4000 STEPS: (3000, 3500)DENSEPOSE_EVALUATION: EVALUATE_MESH_ALIGNMENT: True123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k/270668502/model_final_21b1d2.pkl" RESNETS: DEPTH: 50 ROI_HEADS: NUM_CLASSES: 9 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" COARSE_SEGM_TRAINED_BY_MASKS: True CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss" EMBEDDING_DIST_GAUSS_SIGMA: 0.1 GEODESIC_DIST_GAUSS_SIGMA: 0.1 EMBEDDERS: "cat_7466": TYPE: vertex_feature NUM_VERTICES: 7466 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl" "dog_7466": TYPE: vertex_feature NUM_VERTICES: 7466 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl" "sheep_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" "horse_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" "zebra_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" "giraffe_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" "elephant_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" "cow_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" "bear_4936": TYPE: vertex_feature NUM_VERTICES: 4936 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"DATASETS: TRAIN: - "densepose_lvis_v1_ds2_train_v1" TEST: - "densepose_lvis_v1_ds2_val_v1" WHITELISTED_CATEGORIES: "densepose_lvis_v1_ds2_train_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog "densepose_lvis_v1_ds2_val_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog CLASS_TO_MESH_NAME_MAPPING: "0": "bear_4936" "1": "cow_5002" "2": "cat_7466" "3": "dog_7466" "4": "elephant_5002" "5": "giraffe_5002" "6": "horse_5004" "7": "sheep_5004" "8": "zebra_5002"SOLVER: MAX_ITER: 16000 STEPS: (12000, 14000)DENSEPOSE_EVALUATION: EVALUATE_MESH_ALIGNMENT: True123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k/270668502/model_final_21b1d2.pkl" RESNETS: DEPTH: 50 ROI_HEADS: NUM_CLASSES: 9 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" COARSE_SEGM_TRAINED_BY_MASKS: True CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss" EMBEDDING_DIST_GAUSS_SIGMA: 0.1 GEODESIC_DIST_GAUSS_SIGMA: 0.1 PIX_TO_SHAPE_CYCLE_LOSS: ENABLED: True EMBEDDERS: "cat_7466": TYPE: vertex_feature NUM_VERTICES: 7466 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl" "dog_7466": TYPE: vertex_feature NUM_VERTICES: 7466 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl" "sheep_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" "horse_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" "zebra_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" "giraffe_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" "elephant_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" "cow_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" "bear_4936": TYPE: vertex_feature NUM_VERTICES: 4936 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"DATASETS: TRAIN: - "densepose_lvis_v1_ds2_train_v1" TEST: - "densepose_lvis_v1_ds2_val_v1" WHITELISTED_CATEGORIES: "densepose_lvis_v1_ds2_train_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog "densepose_lvis_v1_ds2_val_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog CLASS_TO_MESH_NAME_MAPPING: "0": "bear_4936" "1": "cow_5002" "2": "cat_7466" "3": "dog_7466" "4": "elephant_5002" "5": "giraffe_5002" "6": "horse_5004" "7": "sheep_5004" "8": "zebra_5002"SOLVER: MAX_ITER: 16000 STEPS: (12000, 14000)DENSEPOSE_EVALUATION: EVALUATE_MESH_ALIGNMENT: True123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k/267687159/model_final_354e61.pkl" RESNETS: DEPTH: 50 ROI_HEADS: NUM_CLASSES: 9 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" COARSE_SEGM_TRAINED_BY_MASKS: True CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss" EMBEDDING_DIST_GAUSS_SIGMA: 0.1 GEODESIC_DIST_GAUSS_SIGMA: 0.1 SHAPE_TO_SHAPE_CYCLE_LOSS: ENABLED: True EMBEDDERS: "cat_7466": TYPE: vertex_feature NUM_VERTICES: 7466 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl" "dog_7466": TYPE: vertex_feature NUM_VERTICES: 7466 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl" "sheep_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" "horse_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" "zebra_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" "giraffe_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" "elephant_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" "cow_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" "bear_4936": TYPE: vertex_feature NUM_VERTICES: 4936 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl" "smpl_27554": TYPE: vertex_feature NUM_VERTICES: 27554 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_smpl_27554_256.pkl"DATASETS: TRAIN: - "densepose_lvis_v1_ds2_train_v1" TEST: - "densepose_lvis_v1_ds2_val_v1" WHITELISTED_CATEGORIES: "densepose_lvis_v1_ds2_train_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog "densepose_lvis_v1_ds2_val_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog CLASS_TO_MESH_NAME_MAPPING: "0": "bear_4936" "1": "cow_5002" "2": "cat_7466" "3": "dog_7466" "4": "elephant_5002" "5": "giraffe_5002" "6": "horse_5004" "7": "sheep_5004" "8": "zebra_5002"SOLVER: MAX_ITER: 16000 STEPS: (12000, 14000)DENSEPOSE_EVALUATION: EVALUATE_MESH_ALIGNMENT: True MESH_ALIGNMENT_MESH_NAMES: - bear_4936 - cow_5002 - cat_7466 - dog_7466 - elephant_5002 - giraffe_5002 - horse_5004 - sheep_5004 - zebra_5002123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl" RESNETS: DEPTH: 50 ROI_HEADS: NUM_CLASSES: 9 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" COARSE_SEGM_TRAINED_BY_MASKS: True CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss" EMBEDDING_DIST_GAUSS_SIGMA: 0.1 GEODESIC_DIST_GAUSS_SIGMA: 0.1 EMBEDDERS: "cat_7466": TYPE: vertex_feature NUM_VERTICES: 7466 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl" "dog_7466": TYPE: vertex_feature NUM_VERTICES: 7466 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl" "sheep_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" "horse_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" "zebra_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" "giraffe_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" "elephant_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" "cow_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" "bear_4936": TYPE: vertex_feature NUM_VERTICES: 4936 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"DATASETS: TRAIN: - "densepose_lvis_v1_ds2_train_v1" TEST: - "densepose_lvis_v1_ds2_val_v1" WHITELISTED_CATEGORIES: "densepose_lvis_v1_ds2_train_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog "densepose_lvis_v1_ds2_val_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog CLASS_TO_MESH_NAME_MAPPING: "0": "bear_4936" "1": "cow_5002" "2": "cat_7466" "3": "dog_7466" "4": "elephant_5002" "5": "giraffe_5002" "6": "horse_5004" "7": "sheep_5004" "8": "zebra_5002"SOLVER: MAX_ITER: 16000 STEPS: (12000, 14000)DENSEPOSE_EVALUATION: EVALUATE_MESH_ALIGNMENT: True123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl" RESNETS: DEPTH: 50 ROI_HEADS: NUM_CLASSES: 9 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" COARSE_SEGM_TRAINED_BY_MASKS: True CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss" EMBEDDING_DIST_GAUSS_SIGMA: 0.1 GEODESIC_DIST_GAUSS_SIGMA: 0.1 EMBEDDERS: "cat_5001": TYPE: vertex_feature NUM_VERTICES: 5001 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_5001_256.pkl" "dog_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_5002_256.pkl" "sheep_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" "horse_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" "zebra_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" "giraffe_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" "elephant_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" "cow_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" "bear_4936": TYPE: vertex_feature NUM_VERTICES: 4936 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"DATASETS: TRAIN: - "densepose_lvis_v1_ds1_train_v1" TEST: - "densepose_lvis_v1_ds1_val_v1" WHITELISTED_CATEGORIES: "densepose_lvis_v1_ds1_train_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog "densepose_lvis_v1_ds1_val_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog CLASS_TO_MESH_NAME_MAPPING: "0": "bear_4936" "1": "cow_5002" "2": "cat_5001" "3": "dog_5002" "4": "elephant_5002" "5": "giraffe_5002" "6": "horse_5004" "7": "sheep_5004" "8": "zebra_5002"SOLVER: MAX_ITER: 4000 STEPS: (3000, 3500)DENSEPOSE_EVALUATION: EVALUATE_MESH_ALIGNMENT: True123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl" RESNETS: DEPTH: 50 ROI_HEADS: NUM_CLASSES: 9 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" COARSE_SEGM_TRAINED_BY_MASKS: True CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss" EMBED_LOSS_WEIGHT: 0.0 EMBEDDING_DIST_GAUSS_SIGMA: 0.1 GEODESIC_DIST_GAUSS_SIGMA: 0.1 EMBEDDERS: "cat_7466": TYPE: vertex_feature NUM_VERTICES: 7466 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl" "dog_7466": TYPE: vertex_feature NUM_VERTICES: 7466 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl" "sheep_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" "horse_5004": TYPE: vertex_feature NUM_VERTICES: 5004 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" "zebra_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" "giraffe_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" "elephant_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" "cow_5002": TYPE: vertex_feature NUM_VERTICES: 5002 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" "bear_4936": TYPE: vertex_feature NUM_VERTICES: 4936 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl"DATASETS: TRAIN: - "densepose_lvis_v1_ds2_train_v1" TEST: - "densepose_lvis_v1_ds2_val_v1" WHITELISTED_CATEGORIES: "densepose_lvis_v1_ds2_train_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog "densepose_lvis_v1_ds2_val_v1": - 943 # sheep - 1202 # zebra - 569 # horse - 496 # giraffe - 422 # elephant - 80 # cow - 76 # bear - 225 # cat - 378 # dog CLASS_TO_MESH_NAME_MAPPING: "0": "bear_4936" "1": "cow_5002" "2": "cat_7466" "3": "dog_7466" "4": "elephant_5002" "5": "giraffe_5002" "6": "horse_5004" "7": "sheep_5004" "8": "zebra_5002"SOLVER: MAX_ITER: 24000 STEPS: (20000, 22000)1234567891011121314151617181920212223242526272829_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss" EMBEDDING_DIST_GAUSS_SIGMA: 0.1 GEODESIC_DIST_GAUSS_SIGMA: 0.1 EMBEDDERS: "chimp_5029": TYPE: vertex_feature NUM_VERTICES: 5029 FEATURE_DIM: 256 FEATURES_TRAINABLE: False IS_TRAINABLE: True INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_chimp_5029_256.pkl"DATASETS: TRAIN: - "densepose_chimps_cse_train" TEST: - "densepose_chimps_cse_val" CLASS_TO_MESH_NAME_MAPPING: "0": "chimp_5029"SOLVER: MAX_ITER: 4000 STEPS: (3000, 3500)123456789101112_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: NAME: "DensePoseV1ConvXHead" CSE: EMBED_LOSS_NAME: "SoftEmbeddingLoss"SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000)123456789101112131415161718_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead" UV_CONFIDENCE: ENABLED: True TYPE: "iid_iso" SEGM_CONFIDENCE: ENABLED: True POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000)12345678910111213141516_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead" UV_CONFIDENCE: ENABLED: True TYPE: "iid_iso" POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000)123456789101112131415161718_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead" UV_CONFIDENCE: ENABLED: True TYPE: "indep_aniso" SEGM_CONFIDENCE: ENABLED: True POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000)12345678910111213141516_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead" UV_CONFIDENCE: ENABLED: True TYPE: "indep_aniso" POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000)12345678910_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead"SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000)123456789101112131415161718_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: UV_CONFIDENCE: ENABLED: True TYPE: "iid_iso" SEGM_CONFIDENCE: ENABLED: True POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000) WARMUP_FACTOR: 0.02512345678910111213141516_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: UV_CONFIDENCE: ENABLED: True TYPE: "iid_iso" POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000) WARMUP_FACTOR: 0.025123456789101112131415161718_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: UV_CONFIDENCE: ENABLED: True TYPE: "indep_aniso" SEGM_CONFIDENCE: ENABLED: True POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000) WARMUP_FACTOR: 0.02512345678910111213141516_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: UV_CONFIDENCE: ENABLED: True TYPE: "indep_aniso" POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000) WARMUP_FACTOR: 0.02512345678_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000)1234567891011121314151617_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" RESNETS: DEPTH: 101 ROI_DENSEPOSE_HEAD: NUM_COARSE_SEGM_CHANNELS: 15 POOLER_RESOLUTION: 14 HEATMAP_SIZE: 56 INDEX_WEIGHTS: 2.0 PART_WEIGHTS: 0.3 POINT_REGRESSION_WEIGHTS: 0.1 DECODER_ON: FalseSOLVER: BASE_LR: 0.002 MAX_ITER: 130000 STEPS: (100000, 120000)123456789101112131415161718_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead" UV_CONFIDENCE: ENABLED: True TYPE: "iid_iso" SEGM_CONFIDENCE: ENABLED: True POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000)12345678910111213141516_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead" UV_CONFIDENCE: ENABLED: True TYPE: "iid_iso" POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000)123456789101112131415161718_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead" UV_CONFIDENCE: ENABLED: True TYPE: "indep_aniso" SEGM_CONFIDENCE: ENABLED: True POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000)12345678910111213141516_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead" UV_CONFIDENCE: ENABLED: True TYPE: "indep_aniso" POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000)12345678910_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: NAME: "DensePoseDeepLabHead"SOLVER: MAX_ITER: 130000 STEPS: (100000, 120000)1234567891011121314151617181920_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: UV_CONFIDENCE: ENABLED: True TYPE: "iid_iso" SEGM_CONFIDENCE: ENABLED: True POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True CLIP_TYPE: norm CLIP_VALUE: 100.0 MAX_ITER: 130000 STEPS: (100000, 120000) WARMUP_FACTOR: 0.02512345678910111213141516_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: UV_CONFIDENCE: ENABLED: True TYPE: "iid_iso" POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000) WARMUP_FACTOR: 0.025123456789101112131415161718_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: UV_CONFIDENCE: ENABLED: True TYPE: "indep_aniso" SEGM_CONFIDENCE: ENABLED: True POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000) WARMUP_FACTOR: 0.02512345678910111213141516_BASE_: "Base-DensePose-RCNN-FPN.yaml"MODEL: WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" RESNETS: DEPTH: 50 ROI_DENSEPOSE_HEAD: UV_CONFIDENCE: ENABLED: True TYPE: "indep_aniso" POINT_REGRESSION_WEIGHTS: 0.0005SOLVER: CLIP_GRADIENTS: ENABLED: True MAX_ITER: 130000 STEPS: (100000, 120000) WARMUP_FACTOR: 0.025app.pyAdded+274
apply_net.pyAdded+359
ckpt/densepose/model_final_162be9.pklAdded+3
ckpt/humanparsing/parsing_atr.onnxAdded+3
ckpt/humanparsing/parsing_lip.onnxAdded+3
ckpt/openpose/.DS_StoreAdded
ckpt/openpose/ckpts/body_pose_model.pthAdded+3
configs/Base-DensePose-RCNN-FPN.yamlAdded+48
configs/HRNet/densepose_rcnn_HRFPN_HRNet_w32_s1x.yamlAdded+16
configs/HRNet/densepose_rcnn_HRFPN_HRNet_w40_s1x.yamlAdded+23
configs/HRNet/densepose_rcnn_HRFPN_HRNet_w48_s1x.yamlAdded+23
configs/cse/Base-DensePose-RCNN-FPN-Human.yamlAdded+20
configs/cse/Base-DensePose-RCNN-FPN.yamlAdded+60
configs/cse/densepose_rcnn_R_101_FPN_DL_s1x.yamlAdded+12
configs/cse/densepose_rcnn_R_101_FPN_DL_soft_s1x.yamlAdded+12
configs/cse/densepose_rcnn_R_101_FPN_s1x.yamlAdded+12
configs/cse/densepose_rcnn_R_101_FPN_soft_s1x.yamlAdded+12
configs/cse/densepose_rcnn_R_50_FPN_DL_s1x.yamlAdded+12
configs/cse/densepose_rcnn_R_50_FPN_DL_soft_s1x.yamlAdded+12
configs/cse/densepose_rcnn_R_50_FPN_s1x.yamlAdded+12
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_16k.yamlAdded+133
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_4k.yamlAdded+133
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_16k.yamlAdded+119
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_i2m_16k.yamlAdded+121
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_m2m_16k.yamlAdded+138
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_16k.yamlAdded+119
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_4k.yamlAdded+119
configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k.yamlAdded+118
configs/cse/densepose_rcnn_R_50_FPN_soft_chimps_finetune_4k.yamlAdded+29
configs/cse/densepose_rcnn_R_50_FPN_soft_s1x.yamlAdded+12
configs/densepose_rcnn_R_101_FPN_DL_WC1M_s1x.yamlAdded+18
configs/densepose_rcnn_R_101_FPN_DL_WC1_s1x.yamlAdded+16
configs/densepose_rcnn_R_101_FPN_DL_WC2M_s1x.yamlAdded+18
configs/densepose_rcnn_R_101_FPN_DL_WC2_s1x.yamlAdded+16
configs/densepose_rcnn_R_101_FPN_DL_s1x.yamlAdded+10
configs/densepose_rcnn_R_101_FPN_WC1M_s1x.yamlAdded+18
configs/densepose_rcnn_R_101_FPN_WC1_s1x.yamlAdded+16
configs/densepose_rcnn_R_101_FPN_WC2M_s1x.yamlAdded+18
configs/densepose_rcnn_R_101_FPN_WC2_s1x.yamlAdded+16
configs/densepose_rcnn_R_101_FPN_s1x.yamlAdded+8
configs/densepose_rcnn_R_101_FPN_s1x_legacy.yamlAdded+17
configs/densepose_rcnn_R_50_FPN_DL_WC1M_s1x.yamlAdded+18
configs/densepose_rcnn_R_50_FPN_DL_WC1_s1x.yamlAdded+16
configs/densepose_rcnn_R_50_FPN_DL_WC2M_s1x.yamlAdded+18
configs/densepose_rcnn_R_50_FPN_DL_WC2_s1x.yamlAdded+16
configs/densepose_rcnn_R_50_FPN_DL_s1x.yamlAdded+10
configs/densepose_rcnn_R_50_FPN_WC1M_s1x.yamlAdded+20
configs/densepose_rcnn_R_50_FPN_WC1_s1x.yamlAdded+16
configs/densepose_rcnn_R_50_FPN_WC2M_s1x.yamlAdded+18
configs/densepose_rcnn_R_50_FPN_WC2_s1x.yamlAdded+16