JisongXie / StegaStamp_pytorch

StegaStamp of pytorch version
MIT License
62 stars 21 forks source link

save model #1

Closed fujiaixin09 closed 3 years ago

fujiaixin09 commented 3 years ago

Hello! Is your code incomplete? I didn't find save_ model in your code?

JisongXie commented 3 years ago

Hi,my code needs to be improved. But, you mean my trained model? I don't put it here.

fujiaixin09 commented 3 years ago

I mean, your code doesn't save the model after running, and there are no statements to save in your code. Therefore, is your code incomplete?

JisongXie commented 3 years ago

Yes, it's incomplete. There are no statements to save model in my code. I am busy now, so there is almost no time to update it.

fujiaixin09 commented 3 years ago

That's OK. Thank you very much! I tried to reproduce the "stegastamp" project and train my own model, but I found that my accuracy was less than 0.95, but my super parameters and code were provided by the author, and the configuration of the environment was almost the same as that of the author. Do you know why?

JisongXie commented 3 years ago

is your dataset the same as the author's? is your training accuracy less than 0.95, or your test accuracy?

fujiaixin09 commented 3 years ago

The data set I used was 10W pictures.,like the data set used by the author, my training accuracy was less than 0.95

JisongXie commented 3 years ago

you can use the dataset mentioned in the paper to try, I remember that training accuracy can go up to nearly 0.97.

fujiaixin09 commented 3 years ago

Yes, I use the data set published by the author, but the training accuracy is less than 0.95.Is there any skill in training this network? I put all the super parameters into the training directly.

JisongXie commented 3 years ago

I use the author's tensorflow code to train, it can reach up to 0.97. My pytorch code haven't finished, so it need to be improved. e.g., there is no gradient clip in my code, there is no model saving in my code, etc.

fujiaixin09 commented 3 years ago

Well, thank you very much. But the training accuracy of my reproduction is less than 0.95, and now I can't find the reason.

JisongXie commented 3 years ago

you use your reproduced code to run it? pytorch or tensorflow?

fujiaixin09 commented 3 years ago

The author published the code, tensorflow.I don't know what's wrong

JisongXie commented 3 years ago

is it far below 0.95? if it's near 0.95, maybe it's no problem. maybe you can adjust your learning rate or use learning rate scheduler.

fujiaixin09 commented 3 years ago

My final training accuracy is 0.91, so how can I change the learning rate?

JisongXie commented 3 years ago

of course, try samller learning rate after you reach the accuracy 0.91, to see whether it will go up.

fujiaixin09 commented 3 years ago

OK, I'll try it. Thank you