-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Fix random fog #1981
Fix random fog #1981
Conversation
Reviewer's Guide by SourceryThis pull request addresses an issue with random fog generation in the Albumentations library. The changes improve the robustness of the fog effect by adjusting the fog radius calculation, ensuring compatibility with different image types, and refactoring the random state handling. Updated class diagram for fog augmentation functionsclassDiagram
class Functional {
+add_fog(img, intensity, alpha_coef, particle_positions, random_state)
}
class Transforms {
+apply(img, particle_positions, intensity, random_state)
+get_params_dependent_on_data(params, data)
+get_transform_init_args_names()
}
Functional <|-- Transforms
note for Functional "Updated fog radius calculation and random state handling"
note for Transforms "Refactored random state handling"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @ternaus - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Fixes: #1952
Summary by Sourcery
Fix the random fog effect by adjusting the fog radius and color calculations and enhance the randomness control by using a random state object instead of a random seed.
Bug Fixes:
Enhancements: