Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Suggest to add RandomApply in gluon's transforms #17085

Closed
gengyanlei opened this issue Dec 16, 2019 · 4 comments · Fixed by #17242
Closed

Suggest to add RandomApply in gluon's transforms #17085

gengyanlei opened this issue Dec 16, 2019 · 4 comments · Fixed by #17242

Comments

@gengyanlei
Copy link

Description

(A clear and concise description of what the feature is.)

  • If the proposal is about a new model, provide description of what the model is.
  • If the proposal is about an API, provide mock examples if possible.

References

  • list reference and related literature
  • list known implementations
@gengyanlei gengyanlei changed the title Suggest to add RandomApply in transforms Suggest to add RandomApply in gluon's transforms Dec 16, 2019
@szha
Copy link
Member

szha commented Dec 16, 2019

what's the definition of RandomApply?

@wkcn
Copy link
Member

wkcn commented Dec 17, 2019

There are multiple transform methods(lists), and choose one randomly.

@gengyanlei
Copy link
Author

https://pytorch.org/docs/1.1.0/torchvision/transforms.html#transforms-on-pil-image
Apply randomly a list of transformations with a given probability!

@gengyanlei
Copy link
Author

比如color_transform,它会让图像值分布变化,但是我想让网络也学习到原始图像值分布,那么就需要一个概率值,对这个tranform发生概率进行设置!
For example, color_transform will change the distribution of image values, but I want the network to learn the distribution of the original image values, so we need a probability value to set the probability of this tranform occurrence!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants