Skip to content

Commit

Permalink
submission(ailorg#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukesukeryuryu committed Jul 17, 2024
1 parent 64ad7a0 commit a9d3d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion configs/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
batch_size: 256
epochs: 5
epochs: 20
lr: 0.001

device: cuda:0
Expand Down
7 changes: 1 addition & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@
from tqdm import tqdm

from src.datasets import ThingsMEGDataset
from src.models_finetuning import BasicConvClassifier
from src.ResNet50 import BasicConvClassifier
from src.utils import set_seed

#GPUが認識されるか確認
print("GPU is available:", torch.cuda.is_available())

#前処理の関数を定義
# def ICA(X: torch.Tensor) -> torch.Tensor:


@hydra.main(version_base=None, config_path="configs", config_name="config")
def run(args: DictConfig):
Expand Down Expand Up @@ -52,7 +49,6 @@ def run(args: DictConfig):
train_set.num_classes, train_set.seq_len, train_set.num_channels
).to(args.device)

# model =

# ------------------
# Optimizer
Expand Down Expand Up @@ -123,6 +119,5 @@ def run(args: DictConfig):
np.save(os.path.join(logdir, "submission"), preds)
cprint(f"Submission {preds.shape} saved at {logdir}", "cyan")

#コマンドから実行した場合に実行
if __name__ == "__main__":
run()

0 comments on commit a9d3d37

Please sign in to comment.