You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for your fantastic work. I am working on training my custom dataset using your codebase. My objects are cattle, so I don't need parsing. I am only planning on working on the key points. I only have four keypoints, but I can't seem to change this in default_config.py because prompt_parts_num and prompt_parts_names are only in the masks section and not in the keypoints section. I would appreciate your guidance on being able to make this change.
Below is my config file, kpr_cattle_train.yaml
# kpr_cattle_train.yaml
# Config to train KPR on your custom cattle dataset with exactly 4 keypoints
# ("head", "shoulder", "back", "tail") and NO masks.
#######################################################################
# Data
#######################################################################
data:
root: "cattle_reid_dataset_KPR"
sources: ['cattle_reid_dataset_KPR']
targets: ['cattle_reid_dataset_KPR']
height: 384
width: 128
norm_mean: [0.5, 0.5, 0.5]
norm_std: [0.5, 0.5, 0.5]
transforms: ['rc', 're']
# 'rc' = random crop
# 're' = random erase
#######################################################################
# Model
#######################################################################
model:
# If you have a pretrained checkpoint for KPR, specify here:
load_weights: ""
load_config: false
name: "kpr"
# KPR-specific settings
kpr:
backbone: "solider_swin_base_patch4_window7_224"
# Keypoints block
keypoints:
enabled: True
kp_dir: "pifpaf_keypoints"
# "prompt_masks" can remain "keypoints_gaussian" if you want heatmap-based prompts
prompt_masks: keypoints_gaussian
prompt_preprocess: none
use_negative_keypoints: False
filter_out_no_skeletons: True
vis_thresh: 0.0
# Mask block DISABLED
masks:
enabled: False
dir: ""
preprocess: "none"
prompt_parts_names: ["head", "shoulder", "back", "tail"]
prompt_parts_num: 4
# Optional: TransReID part
transreid:
cam_num: 4
#######################################################################
# Train
#######################################################################
train:
optim: "adam"
lr: 0.0002
fixbase_epoch: 10
I tried to train it but I couldn't find the swin_base_reid.pth file in the Google Drive that you shared in the repository. Below is my error output
Hello,
Thank you for your fantastic work. I am working on training my custom dataset using your codebase. My objects are cattle, so I don't need parsing. I am only planning on working on the key points. I only have four keypoints, but I can't seem to change this in default_config.py because prompt_parts_num and prompt_parts_names are only in the masks section and not in the keypoints section. I would appreciate your guidance on being able to make this change.
Below is my config file, kpr_cattle_train.yaml
I tried to train it but I couldn't find the swin_base_reid.pth file in the Google Drive that you shared in the repository. Below is my error output
Appreciate your feedback! Thanks!
The text was updated successfully, but these errors were encountered: