Spaces:
Running
Running
discard GPU usage
Browse files
src/pixrender/learning/utils.py
CHANGED
@@ -92,7 +92,7 @@ def save_model(model, points, normals, colors, output_path):
|
|
92 |
|
93 |
|
94 |
def load_model(path):
|
95 |
-
model_dic = torch.load(path)
|
96 |
model_state_dict = model_dic["model"]
|
97 |
points = model_dic["point_cloud"]
|
98 |
normals = model_dic["normals"]
|
|
|
92 |
|
93 |
|
94 |
def load_model(path):
|
95 |
+
model_dic = torch.load(path, map_location=torch.device("cpu"))
|
96 |
model_state_dict = model_dic["model"]
|
97 |
points = model_dic["point_cloud"]
|
98 |
normals = model_dic["normals"]
|