YulianSa commited on
Commit
26e52a5
·
1 Parent(s): da66f48
Files changed (1) hide show
  1. infer_api.py +2 -3
infer_api.py CHANGED
@@ -761,7 +761,7 @@ class InferSlrmAPI:
761
 
762
  return mesh_fpath
763
 
764
-
765
  class InferMultiviewAPI:
766
  def __init__(self, config):
767
  parser = argparse.ArgumentParser()
@@ -795,8 +795,6 @@ class InferMultiviewAPI:
795
  im = self.image_transforms(im)
796
  return im
797
 
798
-
799
- @spaces.GPU
800
  def gen(self, img, seed, num_levels):
801
  set_seed(seed)
802
  data = {}
@@ -814,6 +812,7 @@ class InferMultiviewAPI:
814
 
815
 
816
  class InferCanonicalAPI:
 
817
  def __init__(self, config):
818
  self.config = config
819
  self.device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
 
761
 
762
  return mesh_fpath
763
 
764
+ @spaces.GPU
765
  class InferMultiviewAPI:
766
  def __init__(self, config):
767
  parser = argparse.ArgumentParser()
 
795
  im = self.image_transforms(im)
796
  return im
797
 
 
 
798
  def gen(self, img, seed, num_levels):
799
  set_seed(seed)
800
  data = {}
 
812
 
813
 
814
  class InferCanonicalAPI:
815
+ @spaces.GPU
816
  def __init__(self, config):
817
  self.config = config
818
  self.device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")