Skip to content

Commit

Permalink
just pin linear attention version
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Aug 23, 2024
1 parent d3e0486 commit 5649dfb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
12 changes: 5 additions & 7 deletions meshgpt_pytorch/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
from einops import rearrange, reduce

from beartype.typing import Tuple, List, Callable, Dict
from meshgpt_pytorch.typing import typecheck

from torchtyping import TensorType
from meshgpt_pytorch.typing import typecheck, Float, Int

from pytorch_custom_utils.utils import pad_or_slice_to

Expand All @@ -30,8 +28,8 @@ def identity(t):

# constants

Vertices = TensorType['nv', 3, float] # 3 coordinates
Faces = TensorType['nf', 3, int] # 3 vertices
Vertices = Float['nv 3'] # 3 coordinates
Faces = Float['nf 3'] # 3 vertices

# decorator for auto-caching texts -> text embeds

Expand Down Expand Up @@ -297,11 +295,11 @@ def __getitem__(self, idx):
# tensor helper functions

def derive_face_edges_from_faces(
faces: TensorType['b', 'nf', 3, int],
faces: Int['b nf 3'],
pad_id = -1,
neighbor_if_share_one_vertex = False,
include_self = True
) -> TensorType['b', 'e', 2, int]:
) -> Int['b e 2']:

is_one_face, device = faces.ndim == 2, faces.device

Expand Down
2 changes: 1 addition & 1 deletion meshgpt_pytorch/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.5.12'
__version__ = '1.5.15'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
'pytorch-custom-utils>=0.0.9',
'rotary-embedding-torch>=0.6.4',
'sentencepiece',
'taylor-series-linear-attention>=0.1.6',
'taylor-series-linear-attention==0.1.11',
'torch>=2.1',
'torch_geometric',
'tqdm',
Expand Down

0 comments on commit 5649dfb

Please sign in to comment.