Spaces:
Runtime error
Runtime error
kxhit
commited on
Commit
•
be6ccaa
1
Parent(s):
6509a18
debug
Browse files- app.py +2 -2
- gradio_demo/gradio_demo.py +2 -2
app.py
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
import spaces
|
|
|
|
|
2 |
|
3 |
import gradio as gr
|
4 |
import os
|
@@ -8,7 +10,6 @@ import numpy as np
|
|
8 |
import math
|
9 |
import open3d as o3d
|
10 |
from PIL import Image
|
11 |
-
import torch
|
12 |
import torchvision
|
13 |
import trimesh
|
14 |
from skimage.io import imsave
|
@@ -17,7 +18,6 @@ import cv2
|
|
17 |
import matplotlib.pyplot as pl
|
18 |
pl.ion()
|
19 |
|
20 |
-
print("cuda is available: ", torch.cuda.is_available())
|
21 |
CaPE_TYPE = "6DoF"
|
22 |
device = 'cuda' #if torch.cuda.is_available() else 'cpu'
|
23 |
weight_dtype = torch.float16
|
|
|
1 |
import spaces
|
2 |
+
import torch
|
3 |
+
print("cuda is available: ", torch.cuda.is_available())
|
4 |
|
5 |
import gradio as gr
|
6 |
import os
|
|
|
10 |
import math
|
11 |
import open3d as o3d
|
12 |
from PIL import Image
|
|
|
13 |
import torchvision
|
14 |
import trimesh
|
15 |
from skimage.io import imsave
|
|
|
18 |
import matplotlib.pyplot as pl
|
19 |
pl.ion()
|
20 |
|
|
|
21 |
CaPE_TYPE = "6DoF"
|
22 |
device = 'cuda' #if torch.cuda.is_available() else 'cpu'
|
23 |
weight_dtype = torch.float16
|
gradio_demo/gradio_demo.py
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
import spaces
|
|
|
|
|
2 |
|
3 |
import gradio as gr
|
4 |
import os
|
@@ -8,7 +10,6 @@ import numpy as np
|
|
8 |
import math
|
9 |
import open3d as o3d
|
10 |
from PIL import Image
|
11 |
-
import torch
|
12 |
import torchvision
|
13 |
import trimesh
|
14 |
from skimage.io import imsave
|
@@ -17,7 +18,6 @@ import cv2
|
|
17 |
import matplotlib.pyplot as pl
|
18 |
pl.ion()
|
19 |
|
20 |
-
print("cuda is available: ", torch.cuda.is_available())
|
21 |
CaPE_TYPE = "6DoF"
|
22 |
device = 'cuda' #if torch.cuda.is_available() else 'cpu'
|
23 |
weight_dtype = torch.float16
|
|
|
1 |
import spaces
|
2 |
+
import torch
|
3 |
+
print("cuda is available: ", torch.cuda.is_available())
|
4 |
|
5 |
import gradio as gr
|
6 |
import os
|
|
|
10 |
import math
|
11 |
import open3d as o3d
|
12 |
from PIL import Image
|
|
|
13 |
import torchvision
|
14 |
import trimesh
|
15 |
from skimage.io import imsave
|
|
|
18 |
import matplotlib.pyplot as pl
|
19 |
pl.ion()
|
20 |
|
|
|
21 |
CaPE_TYPE = "6DoF"
|
22 |
device = 'cuda' #if torch.cuda.is_available() else 'cpu'
|
23 |
weight_dtype = torch.float16
|