Skip to content
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

Fine-tune the model #21

Closed
CodeMonkey-GH opened this issue Feb 25, 2017 · 1 comment
Closed

Fine-tune the model #21

CodeMonkey-GH opened this issue Feb 25, 2017 · 1 comment

Comments

@CodeMonkey-GH
Copy link

Hi, I'm trying to use vgg19 on my problem which is a two-class classification, so I want to fine-tune the model on my dataset and I have modified the 'fc8' layer in ''vgg19_trainable.py''(in-size:4096, out-size:2).
I want to set the batch-size to be 32, so should I first read and reshape the 32 images and use 'np.concatenate()' to combine the images, just like the code in the 'test_vgg10.py'? And I think the label-list for each batch is a list type which contains 32 1-hot label(each label is also a list type), am I doing right?

@machrisaa
Copy link
Owner

Hi @CodeMonkey-GH, yes I think you are right. A little trick you may use is that you can replace np.concatenate() by putting those images into a list and that will also work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants