HongFangzhou commited on
Commit
e02b0f5
β€’
1 Parent(s): 1002db9

update requirements

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -1,10 +1,5 @@
1
- import sys
2
- import os
3
-
4
- os.system("git clone https://github.com/3DTopia/3DTopia")
5
- sys.path.append("3DTopia")
6
-
7
  import os
 
8
  import cv2
9
  import time
10
  import json
@@ -20,6 +15,11 @@ from tqdm import tqdm
20
  import imageio.v2 as imageio
21
  import pytorch_lightning as pl
22
  from omegaconf import OmegaConf
 
 
 
 
 
23
 
24
  from ldm.models.diffusion.ddim import DDIMSampler
25
  from ldm.models.diffusion.plms import PLMSSampler
@@ -28,8 +28,6 @@ from ldm.models.diffusion.dpm_solver import DPMSolverSampler
28
  from utility.initialize import instantiate_from_config, get_obj_from_str
29
  from utility.triplane_renderer.eg3d_renderer import sample_from_planes, generate_planes
30
  from utility.triplane_renderer.renderer import get_rays, to8b
31
- from safetensors.torch import load_file
32
- from huggingface_hub import hf_hub_download
33
 
34
  import warnings
35
  warnings.filterwarnings("ignore", category=UserWarning)
 
 
 
 
 
 
 
1
  import os
2
+ import sys
3
  import cv2
4
  import time
5
  import json
 
15
  import imageio.v2 as imageio
16
  import pytorch_lightning as pl
17
  from omegaconf import OmegaConf
18
+ from safetensors.torch import load_file
19
+ from huggingface_hub import hf_hub_download
20
+
21
+ os.system("git clone https://github.com/3DTopia/3DTopia")
22
+ sys.path.append("3DTopia")
23
 
24
  from ldm.models.diffusion.ddim import DDIMSampler
25
  from ldm.models.diffusion.plms import PLMSSampler
 
28
  from utility.initialize import instantiate_from_config, get_obj_from_str
29
  from utility.triplane_renderer.eg3d_renderer import sample_from_planes, generate_planes
30
  from utility.triplane_renderer.renderer import get_rays, to8b
 
 
31
 
32
  import warnings
33
  warnings.filterwarnings("ignore", category=UserWarning)