-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About the accuracy #25
Comments
Hi~ I have the same issue. On training set, the accuracy is 89@Top1, 98@Top5. But on test set, it is 42@Top1, 68@Top5. The parameters: I have debug for weeks.... Can you help me? The full code/parameter/instruction are located in this repo: https://github.com/jinyu121/video_experiment |
hi,@jinyu121 , maybe you can have a try with my parameters, especially the base LR and Droupout( 0.8). Besides, i think the test data augmentation should not do RandomHorizontalFlip. |
Hi, @bbp94 , could you share your parameters about |
UPDATE: With pre-trained model, I can get 89.8@Top1, 98.26@Top5. |
@jinyu121 Some of my parameters:
Could you tell me whether your result 89.8@Top1 is on test set? If it was, could you please share your parameters? |
{
"net": {
"name": "p3d",
"input_size": 160
},
"data": {
"train": {
"annotation": "data/ucf101-train.json", // Which is converted from trainlist01.txt by my video2frame tool
"dataset": "data/ucf101-train",
"n_frames": 16,
"n_clips": 1,
"flip": 0.5,
"drop_last_iter": true
},
"val": {
"annotation": "data/ucf101-test.json", // which is converted from test01.txt by the video2frame tool
"dataset": "data/ucf101-test",
"n_frames": 16,
"n_clips": 20
},
"num_workers": 32
},
"train": {
"pre_train": "data/p3d_rgb_199.checkpoint.pth.tar",
"batch_size": 64,
"epoch": 100,
"learning_rate": 0.001,
"decay": {
"step": 40,
"scale": 0.1
},
"momentum": 0.9,
"weight_decay": 0.00001,
"dropout": 0.5,
"show_freq": 20
},
"val": {
"batch_size": 1,
"show_freq": 100,
"val_freq": 10,
"feature_mean": false // Which means we average the result after cls layer. If true, average the feature before the cls layer
}
} Under this setting, I got 89.8@Top1, 98.26@Top5 on testlist01.txt. |
@jinyu121 Thank you for your help. But I can not achieve your result with your parameters, only got 82.7@Top1.
The repo you have provided is invalid,could you please provide new one? or provide your training log? |
Due to some personal code are added, I have to make it personal. Sorry for that. The frames are resized into 182x242 using the video2frame tool. train_transform = transforms.Compose([
NumpyToFloat(), # From 0-255 to 0-1
NumpyRandomCrop(self.cfg.net.input_size), # 160x160
NumpyRandomFlip(-2, self.cfg.data.train.flip), # Random horizontal flip. -1 means vertical.
NumpyImageNetNorm(), # in RGB order
NumpyToTensor(is_copy=True)
])
val_transform = transforms.Compose([
NumpyToFloat(),
NumpyCenterCrop(self.cfg.net.input_size),
NumpyImageNetNorm(),
NumpyToTensor(is_copy=True)
]) There are NO TRICKS in these transformers. Log... Well, I didn't log them in files, just tensorboard record. Good luck! |
@jinyu121 Sorry for disturb you again. I used the default |
@jinyu121 , can you give me the data transforms file ? |
Hi,I used your code to train the P3D199 on UCF101,with the pretrained weight you supported. My experiment top-1 result is 81%, which is far from the paper 93%, could you support the details about your training? Mine:
Batch size:32
Learning rate: 0.001, divided by 10 each 10 epoch
training data transformation:RandomResizeCrop(160), RandomHorizontalFlip(0.5), Totensor(), Normalize()
val data transformation: Resize(182,242), CenterCrop(160), Totensor(), Normalize()
Looking forward to your reply
The text was updated successfully, but these errors were encountered: