Spaces:
Sleeping
Sleeping
Update scripts/demo.py
Browse files- scripts/demo.py +2 -2
scripts/demo.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import os
|
| 2 |
import sys
|
| 3 |
-
os.environ['PYOPENGL_PLATFORM'] = '
|
| 4 |
os.environ['CUDA_VISIBLE_DEVICES'] = 'cpu'
|
| 5 |
sys.path.append(os.getcwd())
|
| 6 |
|
|
@@ -250,7 +250,7 @@ def infer(g_body, g_face, smplx_model, rendertool, config, args):
|
|
| 250 |
def main():
|
| 251 |
parser = parse_args()
|
| 252 |
args = parser.parse_args()
|
| 253 |
-
device = torch.device(args.
|
| 254 |
torch.cuda.set_device(device)
|
| 255 |
|
| 256 |
config = load_JsonConfig(args.config_file)
|
|
|
|
| 1 |
import os
|
| 2 |
import sys
|
| 3 |
+
os.environ['PYOPENGL_PLATFORM'] = 'osmesa'
|
| 4 |
os.environ['CUDA_VISIBLE_DEVICES'] = 'cpu'
|
| 5 |
sys.path.append(os.getcwd())
|
| 6 |
|
|
|
|
| 250 |
def main():
|
| 251 |
parser = parse_args()
|
| 252 |
args = parser.parse_args()
|
| 253 |
+
device = torch.device(args.cpu)
|
| 254 |
torch.cuda.set_device(device)
|
| 255 |
|
| 256 |
config = load_JsonConfig(args.config_file)
|