-
Notifications
You must be signed in to change notification settings - Fork 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
Add MovingMNIST dataset #7042
Add MovingMNIST dataset #7042
Conversation
Signed-off-by: tsugumi-sys <tidemark0105@gmail.com>
Signed-off-by: tsugumi-sys <tidemark0105@gmail.com>
Signed-off-by: tsugumi-sys <tidemark0105@gmail.com>
Signed-off-by: tsugumi-sys <tidemark0105@gmail.com>
Signed-off-by: tsugumi-sys <tidemark0105@gmail.com>
Signed-off-by: tsugumi-sys <tidemark0105@gmail.com>
Hi @tsugumi-sys! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
@pmeier |
@tsugumi-sys Both failures are unrelated. |
Signed-off-by: tsugumi-sys <tidemark0105@gmail.com>
Signed-off-by: tsugumi-sys <tidemark0105@gmail.com>
Signed-off-by: tsugumi-sys <tidemark0105@gmail.com>
Signed-off-by: tsugumi-sys <tidemark0105@gmail.com>
@pmeier
I think Split in this class is not a good way because we need to load the whole data to get whether train data or test data. |
Signed-off-by: tsugumi-sys <tidemark0105@gmail.com>
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 think Split in this class is not a good way because we need to load the whole data to get whether train data or test data.
Not sure I understand. You are already loading the complete file, so what is difference? Plus, we are talking about ~800MB here which is not terribly large.
My suggestion is to have two parameters: split: Optional[str] = None
and split_ratio: int = 10
.
- For
split=None
, we return the fulldata
without any split on our side. Meaning, we ignoresplit_ratio
. - For
split="train"
, we returndata[:split_ratio]
. - For
split="test"
, we returndata[split_ratio:]
.
Here data
is a single video in the dataset, i.e. (T, C, H, W)
. With this the user by default gets the unsupervised data by default, but has convenient access to the splits defined by the authors.
In addition, the user can set the split_ratio
to their liking. IMO that is enough for the first round.
Generating new data is somewhat unrelated to MovingMNIST
since they don't do anything special other than bouncing data in a larger image. Tensorflow has this functionality, but in a general way. If someone needs it, we can always add that later.
Thoughts?
@pmeier |
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 @tsugumi-sys! Implementation looks correct. I have a couple of inline comments to make it more compatible with the datasets that we already have.
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 for being patient @tsugumi-sys! Mostly minor nits left.
Just as a heads-up for someone else reading this thread: the timestamps on the commits by @tsugumi-sys are wrong and this is why they are shown in this weird order in GH. For example #7042 (review) was done by me on Dec 25, 2022. eacd778 was added in response to that, but is stamped with |
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 @tsugumi-sys! Only some minor test cleanup left, but otherwise this is good to merge if relevant CI is green. Don't worry too much about failing jobs for now, since there seem to be some unrelated failures. I'll look through them and ping you in case something needs to be fixed here.
@pmeier |
And my commit timestamp was wrong because the system datetime of my WSL2 (Ubuntu) was wrong (I dont figure out why this happened). Sorry:( |
None of the CI failures are related. Thanks @tsugumi-sys for the patience and good work! |
Summary: * add moving mnist dataset Signed-off-by: tsugumi-sys <tidemark0105@gmail.com> * remove unused modules Signed-off-by: tsugumi-sys <tidemark0105@gmail.com> * modify docstring Signed-off-by: tsugumi-sys <tidemark0105@gmail.com> * modify docstring and docs Signed-off-by: tsugumi-sys <tidemark0105@gmail.com> * add split and split ratio kwargs Signed-off-by: tsugumi-sys <tidemark0105@gmail.com> * fix checking split argument Signed-off-by: tsugumi-sys <tidemark0105@gmail.com> * remove unused package * delete lines Signed-off-by: tsugumi-sys <tidemark0105@gmail.com> * fix filename property Signed-off-by: tsugumi-sys <tidemark0105@gmail.com> * fix reviews Signed-off-by: tsugumi-sys <tidemark0105@gmail.com> * modify docstrings Signed-off-by: tsugumi-sys <tidemark0105@gmail.com> * add split tests and etc Signed-off-by: tsugumi-sys <tidemark0105@gmail.com> * fix tests Signed-off-by: tsugumi-sys <tidemark0105@gmail.com> Signed-off-by: tsugumi-sys <tidemark0105@gmail.com> Reviewed By: NicolasHug Differential Revision: D42414488 fbshipit-source-id: c001178b992bf033a5ca4fc75ee041f7ead948f3
Signed-off-by: tsugumi-sys tidemark0105@gmail.com
Implement this class applying this review here.
closes #6981
cc @pmeier