File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
from typing import Any , Dict , Optional
17
17
18
18
import wandb as wb
19
- from lightning .pytorch import seed_everything
20
19
from lightning .pytorch .callbacks import EarlyStopping
21
20
from lightning .pytorch .loggers import WandbLogger
22
21
@@ -64,7 +63,6 @@ def __init__(
64
63
project_name : Optional [str ] = None ,
65
64
wandb_dir : Optional [str ] = conf .WANDBPATH ,
66
65
):
67
- seed_everything (conf .GLOBALSEED , workers = True )
68
66
self ._wb_run = wb .init (project = project_name , dir = wandb_dir )
69
67
self .pipeline_work = PipelineWorker (LitDataModule )
70
68
self .training_work = TrainerWorker (
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ def __init__(
31
31
logger : Optional [Logger ] = None ,
32
32
profiler : Optional [Profiler ] = None ,
33
33
callbacks : Optional [List ] = [],
34
+ set_seed : bool = True ,
34
35
** trainer_init_kwargs : Dict [str , Any ]
35
36
) -> None :
36
37
super ().__init__ (
@@ -40,7 +41,8 @@ def __init__(
40
41
** trainer_init_kwargs
41
42
)
42
43
# SET SEED
43
- seed_everything (conf .GLOBALSEED , workers = True )
44
+ if set_seed :
45
+ seed_everything (conf .GLOBALSEED , workers = True )
44
46
# SET DATALOADER
45
47
self .datamodule = LitDataModule ()
46
48
# SET MODEL
You can’t perform that action at this time.
0 commit comments