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

TwoImageData #6

Open
FuyuWang opened this issue Nov 9, 2017 · 6 comments
Open

TwoImageData #6

FuyuWang opened this issue Nov 9, 2017 · 6 comments

Comments

@FuyuWang
Copy link

FuyuWang commented Nov 9, 2017

Could you please tell me what "TwoImageData" layer is used for, I can't find the code.
Thanks!

@jinde-liu
Copy link

The closed session part has the same question you asked.

@aharley
Copy link
Owner

aharley commented Nov 10, 2017

You can swap TwoImageData with ImageSegData in the prototxt. See the "res" example to see how to use ImageSegData.
I didn't mean to close the first issue before actually fixing the prototxt. I'll leave this one open until I really fix.

@FuyuWang
Copy link
Author

Thanks for your reply, but I encountered a problem:
When I train vgg network using VOC2012, the loss cannot converge and output is always zero. So the network does not learn from the datasets, how to solve this problem?

@jinde-liu
Copy link

I have the same problem, which init caffemodel did you use? I have also found that with batch size: 1, the loss vibrate lot. It seems that the net can not convergent with batch size: 1

@FuyuWang
Copy link
Author

I think it is the large network that results to hard training. I use deeplab init model.

@jinde-liu
Copy link

I have found the problem is that when you change TwoImageData to ImageSegData, you need to add labe_type: PIXEL/NONE to image_data_param and also top: "data_dim" to layer. I have added a silence layer to ignore information form data_dim. But adding a silence layer may not be necessary.

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

3 participants