Nadine Rueegg commited on
Commit
b225901
β€’
1 Parent(s): d6d61df
gradio_demo/barc_demo_v3.py CHANGED
@@ -4,8 +4,8 @@ import os
4
  os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
5
  os.environ["CUDA_VISIBLE_DEVICES"]="0"
6
  try:
7
- os.system("pip install --upgrade torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html")
8
- # os.system("pip install --upgrade torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/cu101/torch_stable.html")
9
  except Exception as e:
10
  print(e)
11
 
 
4
  os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
5
  os.environ["CUDA_VISIBLE_DEVICES"]="0"
6
  try:
7
+ # os.system("pip install --upgrade torch==1.11.0+cu113 torchvision==0.12.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html")
8
+ os.system("pip install --upgrade torch==1.6.0+cu101 torchvision==0.7.0+cu101 -f https://download.pytorch.org/whl/cu101/torch_stable.html")
9
  except Exception as e:
10
  print(e)
11
 
src/configs/barc_cfg_defaults.py CHANGED
@@ -8,7 +8,7 @@ abs_barc_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..
8
 
9
  _C = CN()
10
  _C.barc_dir = abs_barc_dir
11
- _C.device = 'cuda'
12
 
13
  ## path settings
14
  _C.paths = CN()
 
8
 
9
  _C = CN()
10
  _C.barc_dir = abs_barc_dir
11
+ _C.device = 'cpu' # 'cuda'
12
 
13
  ## path settings
14
  _C.paths = CN()