tad-IROS2019 icon indicating copy to clipboard operation
tad-IROS2019 copied to clipboard

Model was trained, how to run anomaly detection on custom video file?

Open mwy001 opened this issue 1 year ago • 16 comments

Have followed the steps to train the model on the HEVI features and ego-motion files provided by the author. Now I have:

  • fol_epoch_091_loss_0.0113.pt
  • ego_pred_epoch_091_loss_0.0180.pt

Then I need to run anomaly detection on a custom video file downloaded from the internet. How to do this?

Currently my understanding is to follow the below steps to process the video: Detection: MaskRCNN Tracking: DeepSort Dense optical flow: FlowNet2.0 Ego motion: ORBSLAM2

Then refer the code in run_fol_for_AD.py & run_AD.py for the anomaly detection?

Thanks.

mwy001 avatar Apr 25 '23 03:04 mwy001

Have followed the steps to train the model on the HEVI features and ego-motion files provided by the author. Now I have:

  • fol_epoch_091_loss_0.0113.pt
  • ego_pred_epoch_091_loss_0.0180.pt

Then I need to run anomaly detection on a custom video file downloaded from the internet. How to do this?

Currently my understanding is to follow the below steps to process the video: Detection: MaskRCNN Tracking: DeepSort Dense optical flow: FlowNet2.0 Ego motion: ORBSLAM2

Then refer the code in run_fol_for_AD.py & run_AD.py for the anomaly detection?

Thanks.

Have you run anomaly detection on your custom video file? Can you please tell me how to generate features (specially ego_motion using orbslam_2)for your video file?

thank you

Hardik7674 avatar May 15 '23 08:05 Hardik7674

Have followed the steps to train the model on the HEVI features and ego-motion files provided by the author. Now I have:

  • fol_epoch_091_loss_0.0113.pt
  • ego_pred_epoch_091_loss_0.0180.pt

Then I need to run anomaly detection on a custom video file downloaded from the internet. How to do this? Currently my understanding is to follow the below steps to process the video: Detection: MaskRCNN Tracking: DeepSort Dense optical flow: FlowNet2.0 Ego motion: ORBSLAM2 Then refer the code in run_fol_for_AD.py & run_AD.py for the anomaly detection? Thanks.

Have you run anomaly detection on your custom video file? Can you please tell me how to generate features (specially ego_motion using orbslam_2)for your video file?

thank you

No, not yet

mwy001 avatar May 17 '23 02:05 mwy001

hi, I am a student from china, can you please share the HEV-I dataset with me? Thank you very much!

sbjshxbxijs avatar May 20 '23 13:05 sbjshxbxijs

Have followed the steps to train the model on the HEVI features and ego-motion files provided by the author. Now I have:

* fol_epoch_091_loss_0.0113.pt

* ego_pred_epoch_091_loss_0.0180.pt

Then I need to run anomaly detection on a custom video file downloaded from the internet. How to do this?

Currently my understanding is to follow the below steps to process the video: Detection: MaskRCNN Tracking: DeepSort Dense optical flow: FlowNet2.0 Ego motion: ORBSLAM2

Then refer the code in run_fol_for_AD.py & run_AD.py for the anomaly detection?

Thanks.

hi, I am a student from china, can you please share the HEV-I dataset with me? Thank you very much! My email address is [email protected]

sbjshxbxijs avatar May 20 '23 13:05 sbjshxbxijs

Hi @sbjshxbxijs you don't need to have the raw HEVI dataset to train your model. Just download the feature files in the README and extract them out (they become train and val), then edit 'data_root' in 'fol_ego_train.yaml' to where those train and val are stored. Run the train scripts and you will get similar result. For more infomation, check out issue #1 :) Hope this help.

trThanhnguyen avatar May 20 '23 14:05 trThanhnguyen

I don't have RGB picture(the frames), in other word I don't have access to the HEVI dataset. If I only download the feature, I don't think I will get the result.

sbjshxbxijs avatar May 22 '23 13:05 sbjshxbxijs

@sbjshxbxijs Are you sure? Have you try it? I did train successfully with just those files and got similar loss value as this issue's starter.

trThanhnguyen avatar May 22 '23 16:05 trThanhnguyen

Did you only use the festure files but not the HEVI dataset during training?

sbjshxbxijs avatar May 23 '23 03:05 sbjshxbxijs

Hello can you help me with the checkpoints directory because when I run the proejct it gives the error of no checkpoint directory.

awais019 avatar May 30 '23 13:05 awais019

Hi @Awais-019, You only need to make a new directory in the current working directory that is matched with the configuration in the fol_ego_train.yaml file, for me it is checkpoint_dir: "checkpoints/fol_ego_checkpoints". It is the directory that the checkpoint will be stored, so your job is to prepare it first.

trThanhnguyen avatar May 30 '23 14:05 trThanhnguyen

Thanks but what about best ego model it also gives error.

awais019 avatar May 30 '23 14:05 awais019

Kindly take a look at this error as well raise ValueError("num_samples should be a positive integer " ValueError: num_samples should be a positive integer value, but got num_samples=0

awais019 avatar May 30 '23 14:05 awais019

Check it is giving this error FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints/ego_pred_checkpoints/epoch_080_loss_0.001.pt'

awais019 avatar May 30 '23 14:05 awais019

hi, I am a student from china, can you please share the HEV-I dataset with me? Thank you very much!

Hi I don't have the authority to share the raw videos with you. However I have uploaded the train and validation features I extracted from the HEV-I paper : https://github.com/MoonBlvd/tad-IROS2019#hev-i-dataset

These should be enough to train a FOL model.

MoonBlvd avatar May 31 '23 03:05 MoonBlvd

@Awais-019 I think you didn't put the data in the directory that your code is looking at. I saw @sbjshxbxijs posted a similar issue.

MoonBlvd avatar May 31 '23 03:05 MoonBlvd

Check it is giving this error FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints/ego_pred_checkpoints/epoch_080_loss_0.001.pt'

did you run train_pred_ego.py first? You won't have those checkpoints if you haven't ran ego motion training.

MoonBlvd avatar May 31 '23 03:05 MoonBlvd