-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fix quality issues #33
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c757dc8
Fix `extraction_shape_train`.
tibuch 243f8bd
Add rotation augmentation.
tibuch 92b011d
Save and load tilt-axis.
tibuch 847d9bf
Fix rot_axes computation.
tibuch 92d2c5f
Fix rotation.
tibuch 414bd5d
Fix augmentation.
tibuch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that this is correct.
In cryoCARE_extract_train the validation fraction is already defined as:
See: https://github.com/juglab/cryoCARE_pip/blob/master/cryocare/scripts/cryoCARE_extract_train_data.py#L28
Given a split of 0.9: With your change 90% of the data would be validation data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here
cryoCARE_pip/cryocare/internals/CryoCAREDataModule.py
Line 239 in 847d9bf
val_cut_off
. Maybe I am confusing it :/There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are totally right :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! Please merge it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't manage to run it yet. Secretly hoping that @rdrighetto finds the time 😇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I tested it and now I get this error:
I tried to fix it by myself without success☹️ . What I did notice is the following:
x
andy
have shape(72, 72, 72, 1)
whenaugment()
is calledk=rot_k[i]
is1
or3
innp.rot90
(i.e. a rotation of 90 or 270 degrees) the resulting array will be of shape(1,72,72)
which it will try to put in an array whose original shape is(72,72,1)
(i.e.x[i]
)As I said, I tried to fix this by getting rid of this 4th dimension within
augment()
and placing it back when returning from that function, but then the code would break somewhere else, so I decided it's better to stop and call the experts 😅Thanks again!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I pushed a hot-fix.
I promise, if it does not work this time I will setup everything on my end and stop coding in the github IDE!