Skip to content

Commit

Permalink
Merge branch 'lucidrains:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusLoppe authored Jun 17, 2024
2 parents d166f2f + 019b5f5 commit 2e45e7b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install torch==2.3.0 --index-url https://download.pytorch.org/whl/cpu
python -m pip install torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cpu
python -m pip install scipy
- name: Test with pytest
run: |
Expand Down
8 changes: 4 additions & 4 deletions meshgpt_pytorch/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from einops import rearrange, reduce
from torch import nn, Tensor

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

from torchtyping import TensorType

Expand All @@ -39,7 +39,7 @@ def identity(t):
# you would decorate your Dataset class with this
# and then change your `data_kwargs = ["text_embeds", "vertices", "faces"]`

@beartype
@typecheck
def cache_text_embeds_for_dataset(
embed_texts_fn: Callable[[List[str]], Tensor],
max_text_len: int,
Expand Down Expand Up @@ -158,7 +158,7 @@ def __getitem__(self, idx):
# you would decorate your Dataset class with this function
# and then change your `data_kwargs = ["vertices", "faces", "face_edges"]`

@beartype
@typecheck
def cache_face_edges_for_dataset(
max_edges_len: int,
cache_path: str = './face_edges_cache',
Expand Down Expand Up @@ -262,7 +262,7 @@ def __getitem__(self, idx):
# dataset

class DatasetFromTransforms(Dataset):
@beartype
@typecheck
def __init__(
self,
folder: str,
Expand Down
2 changes: 2 additions & 0 deletions meshgpt_pytorch/trainer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from pathlib import Path
from functools import partial
from packaging import version
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.4.0'
__version__ = '1.4.1'
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
'huggingface_hub>=0.21.4',
'beartype',
"huggingface_hub>=0.21.4",
'classifier-free-guidance-pytorch>=0.6.2',
'einops>=0.7.0',
'einx[torch]>=0.1.3',
'ema-pytorch>=0.5.0',
'classifier-free-guidance-pytorch>=0.6.7',
'einops>=0.8.0',
'einx[torch]>=0.3.0',
'ema-pytorch>=0.5.1',
'environs',
'gateloop-transformer>=0.2.2',
'jaxtyping',
Expand Down

0 comments on commit 2e45e7b

Please sign in to comment.