lemonaddie commited on
Commit
4e4a450
1 Parent(s): 87269e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -403,11 +403,19 @@ def run_demo_server(pipe):
403
 
404
  def main():
405
 
406
- from diffusers import DiffusionPipeline
407
- pipeline = DiffusionPipeline.from_pretrained("lemonaddie/Geowizard")
 
 
 
 
 
 
408
 
409
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
410
 
 
 
411
  pipe = pipeline.from_pretrained(CHECKPOINT)
412
  try:
413
  import xformers
 
403
 
404
  def main():
405
 
406
+ REPO_URL = "https://github.com/lemonaddie/geowizard.git"
407
+ CHECKPOINT = "lemonaddie/Geowizard"
408
+
409
+ repo = git.Repo.clone_from(REPO_URL)
410
+ sys.path.append(os.path.join(os.getcwd()))
411
+
412
+ from models.depth_normal_pipeline_clip_cfg import DepthNormalEstimationPipeline
413
+ pipeline = DepthNormalEstimationPipeline.from_pretrained("lemonaddie/Geowizard")
414
 
415
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
416
 
417
+ print(1)
418
+
419
  pipe = pipeline.from_pretrained(CHECKPOINT)
420
  try:
421
  import xformers