Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion py/BiRefNet_legacy/backbones/pvt_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import torch.nn as nn
from functools import partial

from timm.models.layers import DropPath, to_2tuple, trunc_normal_
from timm.layers import DropPath, to_2tuple, trunc_normal_
from timm.models import register_model

import math
Expand Down
2 changes: 1 addition & 1 deletion py/BiRefNet_legacy/backbones/swin_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import torch.nn.functional as F
import torch.utils.checkpoint as checkpoint
import numpy as np
from timm.models.layers import DropPath, to_2tuple, trunc_normal_
from timm.layers import DropPath, to_2tuple, trunc_normal_

from ..config import Config

Expand Down
2 changes: 1 addition & 1 deletion py/BiRefNet_legacy/modules/mlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import torch.nn as nn
from functools import partial

from timm.models.layers import DropPath, to_2tuple, trunc_normal_
from timm.layers import DropPath, to_2tuple, trunc_normal_
from timm.models import register_model

import math
Expand Down
2 changes: 1 addition & 1 deletion py/BiRefNet_v2/models/backbones/pvt_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import torch.nn as nn
from functools import partial

from timm.models.layers import DropPath, to_2tuple, trunc_normal_
from timm.layers import DropPath, to_2tuple, trunc_normal_
from timm.models import register_model

import math
Expand Down
2 changes: 1 addition & 1 deletion py/BiRefNet_v2/models/backbones/swin_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import torch.nn.functional as F
import torch.utils.checkpoint as checkpoint
import numpy as np
from timm.models.layers import DropPath, to_2tuple, trunc_normal_
from timm.layers import DropPath, to_2tuple, trunc_normal_

from ...config import Config

Expand Down
2 changes: 1 addition & 1 deletion py/BiRefNet_v2/models/modules/mlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import torch.nn as nn
from functools import partial

from timm.models.layers import DropPath, to_2tuple, trunc_normal_
from timm.layers import DropPath, to_2tuple, trunc_normal_
from timm.models import register_model

import math
Expand Down
2 changes: 1 addition & 1 deletion py/ben_ultra.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import torch.utils.checkpoint as checkpoint
from einops import rearrange
from PIL import Image, ImageFilter, ImageOps
from timm.models.layers import DropPath, to_2tuple, trunc_normal_
from timm.layers import DropPath, to_2tuple, trunc_normal_
from torchvision import transforms


Expand Down
2 changes: 1 addition & 1 deletion py/evf_sam/model/unilm/beit3/modeling_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import math
import torch
import torch.nn as nn
from timm.models.layers import trunc_normal_ as __call_trunc_normal_
from timm.layers import trunc_normal_ as __call_trunc_normal_

from torchscale.model.BEiT3 import BEiT3
from torchscale.architecture.config import EncoderConfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.checkpoint as checkpoint
from timm.models.layers import DropPath, to_2tuple, trunc_normal_
from timm.layers import DropPath, to_2tuple, trunc_normal_

from local_groundingdino.util.misc import NestedTensor

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import torch
import torch.nn as nn
import torch.nn.functional as F
from timm.models.layers import DropPath
from timm.layers import DropPath


class FeatureResizer(nn.Module):
Expand Down
2 changes: 1 addition & 1 deletion py/sam_hq/modeling/tiny_vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.checkpoint as checkpoint
from timm.models.layers import DropPath as TimmDropPath,\
from timm.layers import DropPath as TimmDropPath,\
to_2tuple, trunc_normal_
from timm.models import register_model
from typing import Tuple
Expand Down