mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-24 14:33:20 +00:00
[hotfix] fix sd vit import error (#5420)
* fix import error * Update dpt_depth.py --------- Co-authored-by: binmakeswell <binmakeswell@gmail.com>
This commit is contained in:
parent
070df689e6
commit
e304e4db35
@ -2,7 +2,8 @@ import torch
|
|||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|
||||||
from .base_model import BaseModel
|
from .base_model import BaseModel
|
||||||
from .blocks import FeatureFusionBlock_custom, Interpolate, _make_encoder, forward_vit
|
from .blocks import FeatureFusionBlock_custom, Interpolate, _make_encoder
|
||||||
|
from .vit import forward_vit
|
||||||
|
|
||||||
|
|
||||||
def _make_fusion_block(features, use_bn):
|
def _make_fusion_block(features, use_bn):
|
||||||
|
Loading…
Reference in New Issue
Block a user