File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
invokeai/backend/image_util/depth_anything Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
logger = InvokeAILogger .get_logger (config = config )
15
15
16
16
DEPTH_ANYTHING_MODELS = {
17
- "large" : "https://huggingface.co/depth-anything/ Depth-Anything-V2-Large /resolve/main/depth_anything_v2_vitl .pth?download=true" ,
18
- "base" : "https://huggingface.co/depth-anything/ Depth-Anything-V2-Base /resolve/main/depth_anything_v2_vitb .pth?download=true" ,
17
+ "large" : "https://huggingface.co/spaces/LiheYoung/ Depth-Anything/resolve/main/checkpoints/depth_anything_vitl14 .pth?download=true" ,
18
+ "base" : "https://huggingface.co/spaces/LiheYoung/ Depth-Anything/resolve/main/checkpoints/depth_anything_vitb14 .pth?download=true" ,
19
19
"small" : "https://huggingface.co/depth-anything/Depth-Anything-V2-Small/resolve/main/depth_anything_v2_vits.pth?download=true" ,
20
20
}
21
21
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 9
9
import torch .nn .functional as F
10
10
from torchvision .transforms import Compose
11
11
12
+ from invokeai .backend .image_util .depth_anything .utils .blocks import FeatureFusionBlock , _make_scratch
13
+ from invokeai .backend .image_util .depth_anything .utils .transform import NormalizeImage , PrepareForNet , Resize
12
14
from invokeai .backend .image_util .depth_anything .v2 .dinov2 import DINOv2
13
- from invokeai .backend .image_util .depth_anything .v2 .utils .blocks import FeatureFusionBlock , _make_scratch
14
- from invokeai .backend .image_util .depth_anything .v2 .utils .transform import NormalizeImage , PrepareForNet , Resize
15
15
16
16
17
17
def _make_fusion_block (features , use_bn , size = None ):
You can’t perform that action at this time.
0 commit comments