Skip to content

Commit

Permalink
fix data processing bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
DuNGEOnmassster committed Dec 24, 2024
1 parent 42814d9 commit 21a87f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data_preprocess/step1_get_bbox_pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from huggingface_hub import hf_hub_download
from tqdm import tqdm
from ultralytics import YOLO
from util.download_weights import download_file
from util.download_weights_data import download_file


def parse_args():
Expand Down
2 changes: 1 addition & 1 deletion data_preprocess/step4_get_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,6 @@ def main(json_folder, video_folder, output_path, sam2_checkpoint, model_cfg):
print("Model not found, downloading from Hugging Face and Github...")
hf_hub_download(repo_id="facebook/sam2.1-hiera-large", filename="sam2.1_hiera_large.pt", local_dir=args.sam2_checkpoint_path)
else:
print(f"Model already exists in {args.model_path}, skipping download.")
print(f"Model already exists in {args.sam2_checkpoint_path}, skipping download.")

main(args.json_folder, args.video_folder, args.output_path, sam2_checkpoint, args.model_cfg)

0 comments on commit 21a87f6

Please sign in to comment.