neverix commited on
Commit
cd5957e
1 Parent(s): fb4636f

A new hope

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. requirements.txt +4 -3
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  from tqdm.auto import trange
2
  from PIL import Image
3
  import gradio as gr
@@ -7,7 +9,6 @@ import trimesh
7
  import scipy
8
  import torch
9
  import cv2
10
- import os
11
 
12
 
13
  class MidasDepth(object):
@@ -107,7 +108,6 @@ def render(mesh, mat):
107
 
108
 
109
  def main():
110
- os.environ["PYOPENGL_PLATFORM"] = "egl"
111
  from pyvirtualdisplay import Display
112
  disp = Display()
113
  disp.start()
1
+ import os
2
+ os.environ["PYOPENGL_PLATFORM"] = "egl"
3
  from tqdm.auto import trange
4
  from PIL import Image
5
  import gradio as gr
9
  import scipy
10
  import torch
11
  import cv2
 
12
 
13
 
14
  class MidasDepth(object):
108
 
109
 
110
  def main():
 
111
  from pyvirtualdisplay import Display
112
  disp = Display()
113
  disp.start()
requirements.txt CHANGED
@@ -1,10 +1,11 @@
1
- -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py38_cu113_pyt1110/download.html
2
- pytorch3d==0.6.2
3
  transformers==4.10.3
4
  torch==1.11.0
5
  pyrender
6
  torchvision==0.12.0
7
  timm==0.6.5
8
  opencv-python==4.4.0.44
9
- # git+https://github.com/mmatl/pyopengl.git
 
10
  pyvirtualdisplay
1
+ # -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py38_cu113_pyt1110/download.html
2
+ # pytorch3d==0.6.2
3
  transformers==4.10.3
4
  torch==1.11.0
5
  pyrender
6
  torchvision==0.12.0
7
  timm==0.6.5
8
  opencv-python==4.4.0.44
9
+ git+https://github.com/mmatl/pyopengl.git
10
+ git+https://github.com/mmatl/pyglet.git
11
  pyvirtualdisplay