RefiNet
RefiNet copied to clipboard
Baracca testing
Hi I'm trying to run the test on the pre-trained using the Baracca dataset when pickle file is loaded using np.load, its still a dictionary and its in that line of code within the Baracca.py file that tries to use a numpy array attribute on a dictionary.
Similarly, further down, in the code the iteration of the copy of skeleton dictionary, seemed like it is a numpy array. My question is does it successfully run for your testing using the Baracca dataset?
I have the same issue
Hi @dagle593 @Ralbot , apologies for the issues you encountered. The code was based on an old internal version of the Baracca dataset instead of using the published format.
Could you please try to run the test again using the branch stefanopini/baracca_fix (PR #5 ). If it solves the issues for you, I will merge that into the master branch and close this issue.
Hi @stefanopini, I am currently trying to run the test on the pre-trained model using the Baracca dataset. I have tried it using the Baracca fix branch and am not encountering the error with the dictionary. However, I receive the following IndexError:
Traceback (most recent call last):
File "/media/ubi-lab-desktop/disk6s2/RefiNet/src/main.py", line 64, in
which leads me to believe that there is an error in the way I have specified the test configuration. This is what my baracca/vitruvian/test.json file looks like:
{ "name": "BodyPose Refinement Base", "dataset": "Baracca", "side": "side", "task": "Pose Estimation", "project_dir": ".../downloads/weights", "train_dir": ".../Baracca", "save_img": true, "offset": true, "epochs": 100, "data": { "type": "base", "kpts_type": "3D", "patch_dim": 40, "from_gt": false, "kpts_path_test": "path/to/baseline_keypoints/kpts_test.pkl", "batch_size": 64, "input_size": [15, 3], "output_size": [15, 3], "image_size": [240, 320], "num_keypoints": 15, "result_dir": "./result" }, "metrics": { "sigmas": 0.107, "gt_type": "plain", "kpts_type": "3D", "dist_thresh": 100 }, "data_aug": { "mu": 0, "sigma": 50, "factor": 10 }, "checkpoints": { "best": true, "save_name": "base", "save_dir": "./checkpoints/vitruvian/baracca", "save_iters": 30, "tb_path": "train_log/baracca" }, "solver": { "type": "Adam", "workers": 4, "weight_decay": 0.0001, "decay_steps": [50, 75], "base_lr": 0.001 }, "network":{ "alpha": 0.1, "beta": 1, "gamma": 1, "linear_size": 1024, "residual": true, "dropout" : true, "batch_norm": true, "activation": "relu" } }
Could you please give me some guidance or provide a sample test.json for the Baracca test case?
Thank you in advance.