Open ybracke opened 7 months ago
[ ] Change train_model.py and generate.py:
train_model.py
generate.py
device = torch.device(CONFIGS["gpu"] if torch.cuda.is_available() else "cpu")
gpu_index = CONFIGS.get("gpu")
device = torch.device(gpu_index if gpu_index != None and torch.cuda.is_available() else "cpu")
[ ] Update README section for GPU
[ ] Change
train_model.py
andgenerate.py
:device = torch.device(CONFIGS["gpu"] if torch.cuda.is_available() else "cpu")
gpu_index = CONFIGS.get("gpu")
device = torch.device(gpu_index if gpu_index != None and torch.cuda.is_available() else "cpu")
[ ] Update README section for GPU