Skip to content

Commit

Permalink
try to figure out issue with gh actions (#85)
Browse files Browse the repository at this point in the history
fix a bunch of issues to make test go green
  • Loading branch information
lucidrains authored Jun 17, 2024
1 parent 4141823 commit 019b5f5
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 @@ -13,8 +13,8 @@

from einops import rearrange, reduce

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

from torchtyping import TensorType

Expand All @@ -38,7 +38,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 @@ -157,7 +157,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 @@ -261,7 +261,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 @@ -23,10 +23,10 @@
'accelerate>=0.25.0',
'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 019b5f5

Please sign in to comment.