-
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
Crop or Pad transform. #562
Comments
Isn't |
I tried RandomCrop and it threw an error when the desired size was bigger than the source. Is it supposed to be able to pad also? |
Yes, latest version of |
Oh I see in the documentation it is, never mind, maybe the bug was something else then. Maybe there's a way to change the description of this method in the list of transforms so that it mentions padding as well? (Maybe that's the case and I missed it as well). Sorry, just now learning the library. I'll try to be more careful before making issues next time. |
No worries. |
Yes I'll look into it. |
So I also learned that RandomCrop when you set Imagine the image, whatever size, on an infinite canvas. |
The easy fix for this is to over-pad the image in RandomCrop. |
The random crop behavior was fixed by #564. @ryanpeach could you also send a PR improving the documentation? |
Yes sorry, I have limited time for that but next time I work on my project I'll get to it! |
Can be closed via #791. |
closed via #791 |
* [llm] Init draft NVIDIA reference * [LLM] Add exact HPs used to match NVIDIA's convergence curves * [LLM] Add data preprocessing steps and remove dropout * [LLM] fix eval, add ckpt load util, remove unnecessary files * [LLM] Update data preprocessing stage in README * Full validation and google settings * Apply review comments * Anmolgupt/nvidia llm reference update (pytorch#3) * Update Nvidia LLM reference code version Co-authored-by: Anmol Gupta <anmolg@nvidia.com> * fixes to imports (pytorch#5) Co-authored-by: Anmol Gupta <14880251+anmolgupt@users.noreply.github.com> * distributed checkpoint and mlperf logger support (pytorch#6) * readme and mllogger keywords update (pytorch#7) Co-authored-by: Anmol Gupta <anmolg@nvidia.com> * Update fp32_checkpoint_checksum.log * Update README.md * Update README.md * Update README.md * mlperf logger keywords update (pytorch#8) Co-authored-by: Anmol Gupta <anmolg@nvidia.com> * [LLM] Create framework folder * [LLM] Update README to follow reference template * Describe LLM checkpoint format in README (pytorch#9) Describe LLM checkpoint format in README * [LLM] Readme updates, small fixes * readme update and run script eval update (pytorch#10) Co-authored-by: Anmol Gupta <anmolg@nvidia.com> --------- Co-authored-by: Mikołaj Błaż <mblaz@nvidia.com> Co-authored-by: anmolgupt <14880251+anmolgupt@users.noreply.github.com> Co-authored-by: Anmol Gupta <anmolg@nvidia.com> Co-authored-by: mikolajblaz <mikolajblaz@users.noreply.github.com>
So, tensorflow has a transform function called resize_image_with_crop_or_pad. I recently needed this function for my own work. Moreover, it'd be nice to have all of the following:
If I put in a pull request would you be open to these methods?
What are the standards for writing transforms?
The text was updated successfully, but these errors were encountered: