Skip to content
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

关于怎么给图片添加噪声的问题 #47

Closed
lanhoulllllllllll opened this issue Oct 20, 2023 · 2 comments
Closed

关于怎么给图片添加噪声的问题 #47

lanhoulllllllllll opened this issue Oct 20, 2023 · 2 comments

Comments

@lanhoulllllllllll
Copy link

image
作者您好,如果要给图片添加噪声,是只要把self.noise改为ture就行了嘛,关于Noise_level该怎么设置呢,

@Algolzw
Copy link
Collaborator

Algolzw commented Oct 20, 2023

你好,添加噪声的话只需要这样修改option file:

degradation:
  random_kernel: True
  ksize: 21
  code_length: 10
  sig_min: 0.2
  sig_max: 4.0
  rate_iso: 1.0
  random_disturb: false
  noise: True
  # noise_high: 0.0588 # level 15: 15 / 255.
  noise_high: 0.1176 # level 30: 30 / 255.

@lanhoulllllllllll
Copy link
Author

好的,谢谢您的解答!

@Algolzw Algolzw closed this as completed Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants