Spaces:
Runtime error
Runtime error
Update BiRefNet.py
Browse files- BiRefNet.py +4 -4
BiRefNet.py
CHANGED
|
@@ -7,10 +7,10 @@ from huggingface_hub import PyTorchModelHubMixin
|
|
| 7 |
|
| 8 |
from config import Config
|
| 9 |
from dataset import class_labels_TR_sorted
|
| 10 |
-
from
|
| 11 |
-
from
|
| 12 |
-
from
|
| 13 |
-
from
|
| 14 |
|
| 15 |
|
| 16 |
def image2patches(image, grid_h=2, grid_w=2, patch_ref=None, transformation='b c (hg h) (wg w) -> (b hg wg) c h w'):
|
|
|
|
| 7 |
|
| 8 |
from config import Config
|
| 9 |
from dataset import class_labels_TR_sorted
|
| 10 |
+
from build_backbone import build_backbone
|
| 11 |
+
from decoder_blocks import BasicDecBlk, ResBlk
|
| 12 |
+
from lateral_blocks import BasicLatBlk
|
| 13 |
+
from aspp import ASPP, ASPPDeformable
|
| 14 |
|
| 15 |
|
| 16 |
def image2patches(image, grid_h=2, grid_w=2, patch_ref=None, transformation='b c (hg h) (wg w) -> (b hg wg) c h w'):
|