Skip to content

Commit

Permalink
Update miniscene2behavior.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zhong-al authored Dec 21, 2024
1 parent 232f85b commit 7e6cdc7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kabr_tools/miniscene2behavior.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ def create_model(config_path: str, checkpoint_path: str, gpu_num: int) -> tuple[
assert checkpoint_path is not None
assert gpu_num >= 0

# load config
cfg = load_config(config_path)
cfg.NUM_GPUS = gpu_num

# set random seed
random.seed(cfg.RNG_SEED)
np.random.seed(cfg.RNG_SEED)
Expand Down

0 comments on commit 7e6cdc7

Please sign in to comment.