Changed Collision Check

This commit is contained in:
Steffen Illium
2023-11-23 11:07:16 +01:00
parent b68f9e1911
commit 142bbb2c0c
4 changed files with 30 additions and 14 deletions

View File

@ -1,7 +1,6 @@
from pathlib import Path
import numpy as np
import torch
import yaml
@ -74,6 +73,7 @@ class Checkpointer(object):
def save_experiment(self, name: str, model):
cpt_path = self.path / f'checkpoint_{self.__current_checkpoint}'
cpt_path.mkdir(exist_ok=True, parents=True)
import torch
torch.save(model.state_dict(), cpt_path / f'{name}.pt')
def step(self, to_save):