-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
func_seed
added
#201
func_seed
added
#201
Conversation
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.
@sadrasabouri Thanks for your efforts 💯
Could you please add a code example about this new feature to README.md
?
samila/genimage.py
Outdated
""" | ||
random.seed(func_seed) |
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.
python random.seed(None)
is equal to No seed
mode.
But, I suggest that the function should be called only when it is not None.
if func_seed is not None:
random.seed(func_seed)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #201 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 635 637 +2
Branches 94 95 +1
=========================================
+ Hits 635 637 +2 ☔ View full report in Codecov by Sentry. |
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.
🚀
Reference Issues/PRs
#192
What does this implement/fix? Explain your changes.
func_seed
parameter added toGenerativeImage.__init__
method