Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to get *.npy files where are in the wrap_mat fold? #22

Open
LiangGaoUser opened this issue Jun 3, 2022 · 2 comments
Open

how to get *.npy files where are in the wrap_mat fold? #22

LiangGaoUser opened this issue Jun 3, 2022 · 2 comments

Comments

@LiangGaoUser
Copy link

  1. the *.npy files(like MOT17-01.npy) in the wrap_mat fold are used in the training process. Is there any file to create these npy files?
    image
  2. Are tools/generate_detections.py and tools/generate_gtnpy.py two files to create detection.npy and gt.npy ?
@LiangGaoUser LiangGaoUser mentioned this issue Jun 3, 2022
Closed
@jiaweihe1996
Copy link
Owner

  1. Please refer to the code

    GMTracker/gmtracker_app.py

    Lines 208 to 214 in 2a6cc63

    if not osp.exists(os.path.join("warp_mat", "%s.npy" %seq_info["sequence_name"])):
    if not osp.exists("./warp_mat"):
    os.system('mkdir ./warp_mat')
    warp_matrix = np.array(WarpMatrix(seq_info).mat)
    output_filename = os.path.join("warp_mat", "%s.npy" %seq_info["sequence_name"])
    np.save(
    output_filename, warp_matrix, allow_pickle=False)
  2. Yes. You can use the code from deep person reid to save pkl files and generate npy files. You can refer to the modified deep person reid code from this link (code: 4s4z).

@zyiyid
Copy link

zyiyid commented Jan 15, 2023

  1. wrap_mat 折叠中的 *.npy 文件(如 MOT17-01.npy)用于训练过程。是否有任何文件可以创建这些 npy 文件?
    图片
  2. tools/generate_detections.py 和 tools/generate_gtnpy.py 两个文件来创建 detection.npy 和 gt.npy 吗?

Have you solved this problem? How do I generate a pkl file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants