Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- methodology.png +3 -0
- 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
|
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 |
-
|
|
|
|
|
|
|
|
|
|
| 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,
|