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

Seed for random functions #192

Closed
sadrasabouri opened this issue Apr 27, 2023 · 0 comments · Fixed by #214
Closed

Seed for random functions #192

sadrasabouri opened this issue Apr 27, 2023 · 0 comments · Fixed by #214
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@sadrasabouri
Copy link
Collaborator

Description

Normally, when you wanted to use the random generative mode, you would need to set a random seed out of the object initialization:

>>> from samila import GenerativeImage
>>> import random
>>> random.seed(0)
>>> g = GenerativeImage()

Instead of this, we can have a parameter that controls the random function generation.

Steps/Code to Reproduce

>>> from samila import GenerativeImage
>>> g = GenerativeImage(func_seed=0)

Operating System

Ubuntu 22.04

Python Version

3.10.6

Samila Version (Use : samila.__version__)

1.1

@sadrasabouri sadrasabouri added the enhancement New feature or request label Apr 27, 2023
@sadrasabouri sadrasabouri self-assigned this Dec 1, 2023
@sadrasabouri sadrasabouri added this to the samila v1.2 milestone Dec 1, 2023
@sepandhaghighi sepandhaghighi linked a pull request Jun 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants