Skip to content

Commit 019b5f5

Browse files
authored
try to figure out issue with gh actions (#85)
fix a bunch of issues to make test go green
1 parent 4141823 commit 019b5f5

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
python -m pip install torch==2.3.0 --index-url https://download.pytorch.org/whl/cpu
29+
python -m pip install torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cpu
3030
python -m pip install scipy
3131
- name: Test with pytest
3232
run: |

meshgpt_pytorch/data.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
from einops import rearrange, reduce
1515

16-
from beartype import beartype
1716
from beartype.typing import Tuple, List, Callable, Dict
17+
from meshgpt_pytorch.typing import typecheck
1818

1919
from torchtyping import TensorType
2020

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

41-
@beartype
41+
@typecheck
4242
def cache_text_embeds_for_dataset(
4343
embed_texts_fn: Callable[[List[str]], Tensor],
4444
max_text_len: int,
@@ -157,7 +157,7 @@ def __getitem__(self, idx):
157157
# you would decorate your Dataset class with this function
158158
# and then change your `data_kwargs = ["vertices", "faces", "face_edges"]`
159159

160-
@beartype
160+
@typecheck
161161
def cache_face_edges_for_dataset(
162162
max_edges_len: int,
163163
cache_path: str = './face_edges_cache',
@@ -261,7 +261,7 @@ def __getitem__(self, idx):
261261
# dataset
262262

263263
class DatasetFromTransforms(Dataset):
264-
@beartype
264+
@typecheck
265265
def __init__(
266266
self,
267267
folder: str,

meshgpt_pytorch/trainer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from pathlib import Path
24
from functools import partial
35
from packaging import version

meshgpt_pytorch/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.4.0'
1+
__version__ = '1.4.1'

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
'accelerate>=0.25.0',
2424
'beartype',
2525
"huggingface_hub>=0.21.4",
26-
'classifier-free-guidance-pytorch>=0.6.2',
27-
'einops>=0.7.0',
28-
'einx[torch]>=0.1.3',
29-
'ema-pytorch>=0.5.0',
26+
'classifier-free-guidance-pytorch>=0.6.7',
27+
'einops>=0.8.0',
28+
'einx[torch]>=0.3.0',
29+
'ema-pytorch>=0.5.1',
3030
'environs',
3131
'gateloop-transformer>=0.2.2',
3232
'jaxtyping',

0 commit comments

Comments
 (0)