FunmiKesa / JLA

This repository accompanies the paper https://arxiv.org/abs/2108.10543.
MIT License
13 stars 3 forks source link

Reproduction problem #7

Open Leo63963 opened 1 year ago

Leo63963 commented 1 year ago

Hi @FunmiKesa Thanks for your great work. I tried to reproduce your work, and found an error when I tried to train the network

raise InvalidGitRepositoryError(epath) git.exc.InvalidGitRespositoryError: /home/MOT/JLA/src

It looks like a Git problem. I update my Git and still doesn't work. Can you please tell me how to solve this? Thanks.

FunmiKesa commented 1 year ago

@Leo63963 What command did you run that resulted in this error?

Leo63963 commented 1 year ago

@FunmiKesa Thanks for your reply. I tried to reproduce your work. I follow the instructions, clone the code, create the JLA environment, install PyTorch, and download training data and pre-trained models, which are almost the same in FairMOT. Then I tried to train on the mix datasets (crowdhuman pre-trained model) and evaluate the performance following the command you provided as follow: sh experiments/mot17_half_ft_ch_jla.sh and this error came.

Looks the error happened in: repo = git.Repo(search_parent_directories=True)

Do you have any idea how to slove this? Thanks.

FunmiKesa commented 1 year ago

It could be a version issue. Try replacing that line with

repo = git.Repo(os.getcwd(), search_parent_directories=True)

You can also check the answers here https://stackoverflow.com/questions/22081209/find-the-root-of-the-git-repository-where-the-file-lives

Leo63963 commented 1 year ago

@FunmiKesa Thank you so much for your reply. Unfortunately, it seems to replace that line with the following code doesn't work:

_repo = git.Repo(os.getcwd(), search_parentdirectories=True)

I still got the same error as before.

However, if I just remove the following codes: https://github.com/FunmiKesa/JLA/blob/68880423f5e559e6e020079e7e82b0bb64cad882/src/lib/opts.py#L386 https://github.com/FunmiKesa/JLA/blob/68880423f5e559e6e020079e7e82b0bb64cad882/src/lib/opts.py#L387 https://github.com/FunmiKesa/JLA/blob/68880423f5e559e6e020079e7e82b0bb64cad882/src/lib/opts.py#L388

The training code is running without any errors.

Do you think I can modify the code just like this?

Thanks.