set_random_seed
Random seed setup method.
It sets up the random seeds for the RPN model prior to model training and testing.
Specifically, this method will set up the random seeds and related configurations of multiple packages, including * numpy * random * torch * torch.cuda * torch.cudnn * torch.mps
Parameters:
Name | Type | Description | Default |
---|---|---|---|
random_seed |
int
|
The random seed to be setup. |
0
|
Returns:
Type | Description |
---|---|
None
|
This method doesn't have any return values. |