insanecoder69 commited on
Commit
7f157e1
·
verified ·
1 Parent(s): cca1fcb

Update scripts/demo.py

Browse files
Files changed (1) hide show
  1. scripts/demo.py +2 -2
scripts/demo.py CHANGED
@@ -1,6 +1,6 @@
1
  import os
2
  import sys
3
- os.environ['PYOPENGL_PLATFORM'] = 'egl'
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.gpu)
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)