haodongli commited on
Commit
606ab59
1 Parent(s): fd7dcd3

Update gradio_demo.py

Browse files
Files changed (1) hide show
  1. gradio_demo.py +8 -3
gradio_demo.py CHANGED
@@ -1,8 +1,13 @@
1
  import gradio as gr
2
  import numpy as np
3
- # from train import *
4
- import torch
5
- print(torch.cuda.is_available())
 
 
 
 
 
6
 
7
  example_inputs = [[
8
  "A DSLR photo of a Rugged, vintage-inspired hiking boots with a weathered leather finish, best quality, 4K, HD.",
 
1
  import gradio as gr
2
  import numpy as np
3
+ import os
4
+ from train import *
5
+
6
+ # https://github.com/pytorch/extension-cpp/issues/71
7
+ if value = os.environ.get('TORCH_CUDA_ARCH_LIST') != "3.5;5.0;6.0;6.1;7.0;7.5;8.0;8.6+PTX":
8
+ os.environ["TORCH_CUDA_ARCH_LIST"] = "3.5;5.0;6.0;6.1;7.0;7.5;8.0;8.6+PTX"
9
+ os.system("python -m pip install git+https://github.com/YixunLiang/simple-knn.git")
10
+ os.system("python -m pip install git+https://github.com/YixunLiang/diff-gaussian-rasterization.git")
11
 
12
  example_inputs = [[
13
  "A DSLR photo of a Rugged, vintage-inspired hiking boots with a weathered leather finish, best quality, 4K, HD.",