Skip to content

Commit e1d9969

Browse files
committed
Fix deprecated Timm import: timm.models.layers -> timm.layers
1 parent 858c021 commit e1d9969

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

animals/models/model_animals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import torch
1414
import torch.nn as nn
1515
from einops import rearrange
16-
from timm.models.layers import DropPath
16+
from timm.layers import DropPath
1717

1818
from fmpose3d.animals.models.graph_frames import Graph
1919

fmpose3d/animals/models/model_animal3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import torch
1414
import torch.nn as nn
1515
from einops import rearrange
16-
from timm.models.layers import DropPath
16+
from timm.layers import DropPath
1717

1818
from fmpose3d.animals.models.graph_frames import Graph
1919
from fmpose3d.models.base_model import BaseModel, register_model

fmpose3d/models/fmpose3d/model_GAMLP.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from fmpose3d.models.base_model import BaseModel, register_model
1616
from functools import partial
1717
from einops import rearrange
18-
from timm.models.layers import DropPath
18+
from timm.layers import DropPath
1919

2020
class TimeEmbedding(nn.Module):
2121
def __init__(self, dim: int, hidden_dim: int = 64):

0 commit comments

Comments
 (0)