Skip to content

Commit

Permalink
Using 4 channels is better
Browse files Browse the repository at this point in the history
  • Loading branch information
ngxbac committed Jul 8, 2019
1 parent cd0a09c commit c6f5c1b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bin/train.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env bash

export CUDA_VISIBLE_DEVICES=2,3
export CUDA_VISIBLE_DEVICES=2
RUN_CONFIG=config.yml


LOGDIR=/raid/bac/kaggle/logs/recursion_cell/test/c123_s1_smooth_nadam_rndsite/se_resnext50_32x4d/
LOGDIR=/raid/bac/kaggle/logs/recursion_cell/test/c1234_s1_smooth_nadam_rndsite/se_resnext50_32x4d/
catalyst-dl run \
--config=./configs/${RUN_CONFIG} \
--logdir=$LOGDIR \
Expand Down
8 changes: 4 additions & 4 deletions configs/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
model_params:
model: cell_senet
model_name: se_resnext50_32x4d
n_channels: 3
n_channels: 4
num_classes: 1108

args:
Expand Down Expand Up @@ -35,7 +35,7 @@ stages:
momentum_range: [0.85, 0.95]

data_params:
batch_size: 64
batch_size: 32
num_workers: 8
drop_last: False

Expand All @@ -44,7 +44,7 @@ stages:
valid_csv: "./csv/valid_0.csv"
root: "/raid/data/kaggle/recursion-cellular-image-classification/"
sites: [1]
channels: [1, 2, 3]
channels: [1, 2, 3, 4]

stage1:

Expand All @@ -57,7 +57,7 @@ stages:
callback: LabelSmoothCriterionCallback
optimizer:
callback: OptimizerCallback
accumulation_steps: 2
accumulation_steps: 4
accuracy:
callback: AccuracyCallback
accuracy_args: [1]
Expand Down
4 changes: 2 additions & 2 deletions src/make_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ def predict_all():
test_csv = '/raid/data/kaggle/recursion-cellular-image-classification/test.csv'
# test_csv = './csv/valid_0.csv'

experiment = 'c123_s1_smooth_nadam_rndsite'
experiment = 'c1234_s1_smooth_nadam_rndsite'
model_name = 'se_resnext50_32x4d'

log_dir = f"/raid/bac/kaggle/logs/recursion_cell/test/{experiment}/{model_name}/"
root = "/raid/data/kaggle/recursion-cellular-image-classification/"
sites = [1]
channels = [1,2,3]
channels = [1,2,3,4]

model = cell_senet(
model_name="se_resnext50_32x4d",
Expand Down

0 comments on commit c6f5c1b

Please sign in to comment.