abedidev / ResNet-TCN

40 stars 12 forks source link

TCN parameters #6

Closed patnaik42 closed 2 years ago

patnaik42 commented 2 years ago

Hi,

In addition to above mentioned weighted sampling, I have tried with the below parameters as mentioned in the paper to get 63.9 accuracy with DAiSEE dataset. But training itself is not converging and training accuracy doesn't go beyond 0.5 even till 100 epochs. Can you please confirm if I am missing setting any other parameters?

L = 50 # Number of frames at down sampled rate Batch-size = 5

ResTCN module parameters:

self.spatial_feat_dim = 512 self.num_classes = 4 self.nhid = 128 self.levels = 8 self.kernel_size = 7 self.dropout = .25

patnaik42 commented 2 years ago

Hi,

In addition to above mentioned weighted sampling, I have tried with the below parameters as mentioned in the paper to get 63.9 accuracy with DAiSEE dataset. But training itself is not converging and training accuracy doesn't go beyond 0.5 even till 100 epochs. Can you please confirm if I am missing setting any other parameters?

L = 50 # Number of frames at down sampled rate Batch-size = 5

ResTCN module parameters:

self.spatial_feat_dim = 512 self.num_classes = 4 self.nhid = 128 self.levels = 8 self.kernel_size = 7 self.dropout = .25

Other information is that, with L = 16, the training converges and I am able to get up to 0.99 training accuracy. Any value of L > 25, training doesn't converge. Please help me finding what is wrong.

abedidev commented 2 years ago

Consider the following points in your implementation: Continuing with L = 16 Train the model with all the samples from the training and validation sets, During training, use WeightedRandomSampler in the dataloader to include samples of all classes in all the batches (try larger batch sizes, e.g. 16). Monitor test accuracy after each training epoch.

patnaik42 commented 2 years ago

Thank you for the response. I will try your suggestion and check.

qq1332427275 commented 11 months ago

Hi, have you successfully reproduced the 63.9% accuracy in your paper?

Thank you for the response. I will try your suggestion and check.

qq1332427275 commented 11 months ago

@patnaik42 Hi, have you successfully reproduced the 63.9% accuracy ?