OBA-Research commited on
Commit
85dcdc5
·
verified ·
1 Parent(s): 68ec25f

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. methodology.png +3 -0
  3. vaas/inference/pipeline.py +5 -3
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ methodology.png filter=lfs diff=lfs merge=lfs -text
methodology.png ADDED

Git LFS Details

  • SHA256: 062fa8e676e2579ba2f5a90e75c87ce45ceef669e6bf0b9c7323bad3d0c5e72a
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
vaas/inference/pipeline.py CHANGED
@@ -1,9 +1,10 @@
1
  import os
2
  from typing import Dict, Union
3
-
4
- import torch
5
  from PIL import Image
6
- import torchvision.transforms as T
 
 
 
7
 
8
  from vaas.fx.fx_model import FxViT
9
  from vaas.px.px_model import PatchConsistencySegformer
@@ -19,6 +20,7 @@ hf_logging.set_verbosity_error()
19
  from huggingface_hub import hf_hub_download
20
 
21
 
 
22
  class VAASPipeline:
23
  def __init__(
24
  self,
 
1
  import os
2
  from typing import Dict, Union
 
 
3
  from PIL import Image
4
+
5
+ from vaas.utils.helpers import require_torch_or_exit
6
+ torch, T = require_torch_or_exit()
7
+
8
 
9
  from vaas.fx.fx_model import FxViT
10
  from vaas.px.px_model import PatchConsistencySegformer
 
20
  from huggingface_hub import hf_hub_download
21
 
22
 
23
+
24
  class VAASPipeline:
25
  def __init__(
26
  self,