Skip to content

Commit

Permalink
Merge pull request #8 from metrics-lab/main
Browse files Browse the repository at this point in the history
updates codebase
  • Loading branch information
SD3004 authored Jun 19, 2024
2 parents 6f85ab4 + 76c4a1f commit 6c68410
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
utils/__pycache__/*
outputs/*
models/MSG3D/__pycache__/*
logs/*
models/__pycache__/*
data/*
*test*
7 changes: 2 additions & 5 deletions config/SiT/training/hparams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ training:
LR: 0.00001
bs: 256
bs_val: 1
epochs: 30
epochs: 100
gpu: 0
l1loss: False
testing: False
Expand Down Expand Up @@ -78,7 +78,4 @@ sub_ico_1:

sub_ico_2:
num_patches: 320
num_vertices: 153



num_vertices: 153
2 changes: 1 addition & 1 deletion models/sit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from einops import repeat
from einops.layers.torch import Rearrange

from vit_pytorch.vit import Transformer, Attention, FeedForward, PreNorm
from vit_pytorch.vit import Transformer

class SiT(nn.Module):
def __init__(self, *,
Expand Down
6 changes: 0 additions & 6 deletions tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,8 @@
import numpy as np
import pandas as pd

from torch.optim.lr_scheduler import StepLR
from torch.optim.lr_scheduler import ReduceLROnPlateau


from models.sit import SiT

from warmup_scheduler import GradualWarmupScheduler

from utils.utils import load_weights_imagenet

from torch.utils.tensorboard import SummaryWriter
Expand Down

0 comments on commit 6c68410

Please sign in to comment.