-
Notifications
You must be signed in to change notification settings - Fork 426
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
Training #5
Comments
after that, you will have a usual Keras model, which you can train using fit, or fit_generator
|
Can you give some advice on how to train on a new image datasets?I want to finetune with the pretrained model (cityscapes). |
I try to initial the model by |
@kli017 interface changed a little bit. Look at the new one in README |
@bonlime Thanks! The new one in README has a parameter named 'weighs' , however in the model.py the parameter is 'weights'. I tried both of them but still get error deeplab_model = Deeplabv3((960,1440,3), classes=4, weighs = None, OS=16) |
Sorry, it was typo. Correct version is "weights", you should have problems with it |
Hello, I also tried 'weights' with both None and 'pascal_voc'. But still got TypeError... |
@kli017 Try using the arguments in the following format:
This worked for me |
@kli017 the reason why you get TypeError is because you pass input_shape as first argument without explicitly naming it. all parameters you pass into this model have to be named |
@bonlime What is the memory requirements to train with the standard input and batch size? The full trainabile end to end (encoder+decoder) model seems quite big to fit in memory. |
Could make sense to load and freeze low-level only weights? https://github.com/tensorflow/models/blob/master/research/deeplab/g3doc/model_zoo.md#model-details-2 |
@bhack you're right, the model is really big. On my 1080ti it is possible to train only with a batch size of 6 images. |
@bhack, the link you shared is the tensorflow-based weights, how can I load it in the keras model, please advise. Thanks |
You need to extend extract_weights.py and load_weights.py in this repository. |
Do I still have to fit after load_weights? or I can directly fit model after model=Deeplabv3()? |
@Taylor-Rose you don't need to do that anymore. Now weights are loaded if you pass "weights" argument |
@bonlime I did some code like this: |
@bonlime Are the |
@bonlime See also this long topic keras-team/keras#9965 |
@bhack sorry for the long answer. Both moving mean and variance are recovered correctly. |
How long can I finish training? |
Have u guys trained new datasets and fine tuned successfully?plz tell me,I wanna try...... |
Hello everyone! Can someone give me an advice, please? I want to try the model on a binary segmentation, shall I add a sigmoid activation to the last model output? |
@ChengxiHAN @margokhokhlova Did you read issue #56? Yes sigmoid activation on the last layer. I have fine-tuned successfully, but freezing BN-layers while finetuning might cause problems. |
@pluniak Thank you! Reading it. |
Hollow.Have you successfully run this model?I got an errror :AttributeError: 'ModelCheckpoint' object has no attribute 'on_train_batch_begin' |
@Cris-Qu Yes it works perfectly at the moment |
@ChengxiHAN It works fine once we train with the custom dataset. The accuracy was fair enough |
How do I train on a custom dataset?
The text was updated successfully, but these errors were encountered: