Nadine Rueegg commited on
Commit
d6d61df
β€’
1 Parent(s): 3a79da3
Files changed (1) hide show
  1. gradio_demo/barc_demo_v3.py +8 -2
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
 
@@ -33,6 +33,12 @@ from combined_model.model_shape_v7 import ModelImageTo3d_withshape_withproj
33
 
34
  from configs.barc_cfg_defaults import get_cfg_global_updated
35
 
 
 
 
 
 
 
36
 
37
 
38
  def get_prediction(model, img_path_or_img, confidence=0.5):
 
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
 
 
33
 
34
  from configs.barc_cfg_defaults import get_cfg_global_updated
35
 
36
+ print(
37
+ "torch: ", torch.__version__,
38
+ "\ntorchvision: ", torchvision.__version__,
39
+ )
40
+ print("EnV", os.environ)
41
+
42
 
43
 
44
  def get_prediction(model, img_path_or_img, confidence=0.5):