KTH-Action-Recognition icon indicating copy to clipboard operation
KTH-Action-Recognition copied to clipboard

KTH dataset with Keras

Open sadiq-mc opened this issue 6 years ago • 0 comments

Hi,

This is not actually an issue.

I could successfully run datautils.py of the main folder and could generate pickle files corresponding to train, test and validation data for CNN block frame and CNN block frame flow.

I just wanted to know if i want to use keras to train my model how will i load the train,test and val data corresponding to flows if i want train my optical flows(temporal stream)

that is, after loading as below

train_set = BlockFrameFlowDataset(directory, "train") dev_set = BlockFrameFlowDataset(directory, "dev") train_set.zero_center(train_set.mean) dev_set.zero_center(train_set.mean)

train_files, test_files, train_targets, test_targets = train_test_split(......) ??

Any help is highly appreciated.

Thank you

sadiq-mc avatar Mar 04 '18 03:03 sadiq-mc