new
Browse files
app.py
CHANGED
|
@@ -283,9 +283,9 @@ state_dict = torch.load(model_ckpt_path, map_location='cpu')['state_dict']
|
|
| 283 |
state_dict = {k[14:]: v for k, v in state_dict.items() if k.startswith('lrm_generator.')}
|
| 284 |
model.load_state_dict(state_dict, strict=True)
|
| 285 |
|
| 286 |
-
model = model.to(
|
| 287 |
if IS_FLEXICUBES:
|
| 288 |
-
model.init_flexicubes_geometry(
|
| 289 |
model = model.eval()
|
| 290 |
|
| 291 |
print('Loading Finished!')
|
|
|
|
| 283 |
state_dict = {k[14:]: v for k, v in state_dict.items() if k.startswith('lrm_generator.')}
|
| 284 |
model.load_state_dict(state_dict, strict=True)
|
| 285 |
|
| 286 |
+
model = model.to(device)
|
| 287 |
if IS_FLEXICUBES:
|
| 288 |
+
model.init_flexicubes_geometry(device, fovy=30.0)
|
| 289 |
model = model.eval()
|
| 290 |
|
| 291 |
print('Loading Finished!')
|