-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Always create CAFFE:RNG for prefetch thread to simplify logic #558
Conversation
For some reason I don't understand yet the test_data_layer.bin now fails. |
It seems a problem related to setting the seed in the test. |
Tests failed:
|
The test cases are trying to test the combinations of cropping, scaling and mirroring. It is almost impossible to debug all the entangled interactions. The bad smells of the intricate test cases suggest that it is urgent to refactor the data layers. |
|
@sguada, @shelhamer, @jeffdonahue, the bug is due to that the DataLayer::phase_ was never explicitly initialized or set. The ImageDataLayer is not tested as thoroughly but has the same bug. The WindowDataLayer doesn't have the phase_ field. Please help fix them. |
Just to inform, the branch of sguada was functional to overcome the following error:
If you have clues pointing to prefetch_rng_ issue, it is doable to use this branch. However, I have no idea if it produces another errors. @sguada, Have you used it in your projects? |
To avoid untested cases in the
Data_layer
,Image_Data_Layer
andWindow_Data_Layer
always create the random number generator.This should fix #553 #508 and should help in the Data source redesign @Yangqing