Open musicshmily opened 5 years ago
gt_trajectory = np.loadtxt(os.path.join(gt_trajectories_path, gt_trajectory_file_name),
delimiter=',', ndmin=2)
decoder error!
@RomeroBarata please help me with this question
Hi, I'll have a look into that as soon as I have some time this week. Thanks!
Oh, thank you for your prompt reply, this question is caused by i passed the gt_trajectories_path mistaked, and I have fixed it. And i still expect to get more about this module from you. Because i am really interested in your excellent work. thanks once more!
I am sorry i don't know how can i get the reconstructed/predicted trajectories/the generated_frames/ground_truth_array/the generated_array
hello,are you still busy now,
Hi, I'll have a look into that as soon as I have some time this week. Thanks!
hello, are you still busy now, could you please talk more detail about how to get the parameter that make the visualisation model work.
Hi, Sorry for the delay, I'll have a look into that today!
This is the general structure to visualise the predictions (if I remember correctly):
python visualise.py skeletons ./data/HR-ShanghaiTech/testing/frames/01_0014 --ground_truth_trajectories ./data/HR-ShanghaiTech/testing/trajectories/01/01_0014 --draw_ground_truth_trajectories_skeleton --trajectories ./pretrained/CVPR19/ShanghaiTech/combined_model/_mp_Grobust_Lrobust_Orobust_concatdown_/01_2018_11_09_10_55_13/predicted_skeletons/0014 --draw_trajectories_skeleton --write_dir <SPECIFY_A_DIR_TO_WRITE>
The directory ./pretrained/CVPR19/ShanghaiTech/combined_model/_mp_Grobust_Lrobust_Orobust_concatdown_/01_2018_11_09_10_55_13/predicted_skeletons/0014
is created when you evaluate a pre-trained model with the --write_predictions
flag enabled.
Note that you need to have the original frames of the video in the directory ./data/HR-ShanghaiTech/testing/frames/01_0014
这是可视化预测的一般结构(如果我没记错的话):
python visualise.py skeletons ./data/HR-ShanghaiTech/testing/frames/01_0014 --ground_truth_trajectories ./data/HR-ShanghaiTech/testing/trajectories/01/01_0014 --draw_ground_truth_trajectories_skeleton --trajectories ./pretrained/CVPR19/ShanghaiTech/combined_model/_mp_Grobust_Lrobust_Orobust_concatdown_/01_2018_11_09_10_55_13/predicted_skeletons/0014 --draw_trajectories_skeleton --write_dir <SPECIFY_A_DIR_TO_WRITE>
./pretrained/CVPR19/ShanghaiTech/combined_model/_mp_Grobust_Lrobust_Orobust_concatdown_/01_2018_11_09_10_55_13/predicted_skeletons/0014
在评估--write_predictions
启用了标志的预训练模型时,将创建该目录。请注意,您需要在目录中包含视频的原始帧
./data/HR-ShanghaiTech/testing/frames/01_0014
Thank you very much. Your work is really outstanding!The effect of your paper is the best one I have used so far
By the way, how do you extract your optical stream files
Hi @musicshmily,
Sorry for the late reply, I didn't see this message. Please see my answer to https://github.com/RomeroBarata/skeleton_based_anomaly_detection/issues/5
Kind regards, Romero
这是可视化预测的一般结构(如果我没记错的话):
python visualise.py skeletons ./data/HR-ShanghaiTech/testing/frames/01_0014 --ground_truth_trajectories ./data/HR-ShanghaiTech/testing/trajectories/01/01_0014 --draw_ground_truth_trajectories_skeleton --trajectories ./pretrained/CVPR19/ShanghaiTech/combined_model/_mp_Grobust_Lrobust_Orobust_concatdown_/01_2018_11_09_10_55_13/predicted_skeletons/0014 --draw_trajectories_skeleton --write_dir <SPECIFY_A_DIR_TO_WRITE>
./pretrained/CVPR19/ShanghaiTech/combined_model/_mp_Grobust_Lrobust_Orobust_concatdown_/01_2018_11_09_10_55_13/predicted_skeletons/0014
在评估--write_predictions
启用了标志的预训练模型时,将创建该目录。 请注意,您需要在目录中包含视频的原始帧./data/HR-ShanghaiTech/testing/frames/01_0014
Thank you very much. Your work is really outstanding!The effect of your paper is the best one I have used so far
I refer to the path mentioned above, but failed to visualize successfully. Is this path correct?
Maybe try just this instead:
python visualise.py skeletons ./data/HR-ShanghaiTech/testing/frames/01_0014 --ground_truth_trajectories ./data/HR-ShanghaiTech/testing/trajectories/01/01_0014 --draw_ground_truth_trajectories_skeleton --write_dir <SPECIFY_A_DIR_TO_WRITE>
Can you run this command successfully? Note that where you have
python visualise.py skeletons ./data/HR-ShanghaiTech/testing/frames/01_0014 --ground_truth_trajectories ./data/HR-ShanghaiTech/testing/trajectories/01/0014 --draw_ground_truth_trajectories_skeleton --write_dir
@zjjzjj123 @RomeroBarata Hi, I successed run the visualization code by following your commands. Do you know the color meaning in the visualization results? The red means abnomarity or the blue?