-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visionds #54
base: master
Are you sure you want to change the base?
Visionds #54
Changes from all commits
135bdf0
a1dbb32
7d9c5b7
5697312
2c43e5f
03b1102
b30b524
5cea2f9
107938a
9cd4711
ee03022
c6a77cb
3d48c88
8c2f0e5
e6fecc9
f5ca594
31fc871
7932544
bc4dc61
eff5f72
3ac48e3
cf1c5e9
d1681e1
5f27c82
b70e3a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
root_dir: /path/where/to/store/results/ | ||
root_dir: /content/data/ | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Setup | ||
setup: simclr | ||
|
||
# Model | ||
backbone: resnet50 | ||
model_kwargs: | ||
head: mlp | ||
features_dim: 2048 | ||
|
||
# Dataset | ||
train_db_name: birds | ||
val_db_name: birds | ||
num_classes: 200 | ||
|
||
# Loss | ||
criterion: simclr | ||
criterion_kwargs: | ||
temperature: 0.07 | ||
|
||
# Hyperparameters | ||
epochs: 100 | ||
optimizer: sgd | ||
optimizer_kwargs: | ||
nesterov: False | ||
weight_decay: 0.0001 | ||
momentum: 0.9 | ||
lr: 0.005625 | ||
scheduler: cosine | ||
scheduler_kwargs: | ||
lr_decay_rate: 0.1 | ||
batch_size: 48 | ||
num_workers: 8 | ||
|
||
# Transformations | ||
augmentation_strategy: simclr | ||
augmentation_kwargs: | ||
random_resized_crop: | ||
size: 224 | ||
scale: [0.2, 1.0] | ||
color_jitter_random_apply: | ||
p: 0.8 | ||
color_jitter: | ||
brightness: 0.4 | ||
contrast: 0.4 | ||
saturation: 0.4 | ||
hue: 0.1 | ||
random_grayscale: | ||
p: 0.2 | ||
normalize: | ||
mean: [0.485, 0.456, 0.406] | ||
std: [0.229, 0.224, 0.225] | ||
|
||
transformation_kwargs: | ||
crop_size: 224 | ||
normalize: | ||
mean: [0.485, 0.456, 0.406] | ||
std: [0.229, 0.224, 0.225] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Setup | ||
setup: simclr | ||
|
||
# Model | ||
backbone: resnet18 | ||
model_kwargs: | ||
head: mlp | ||
features_dim: 128 | ||
|
||
# Dataset | ||
train_db_name: mnist | ||
val_db_name: mnist | ||
num_classes: 10 | ||
|
||
# Loss | ||
criterion: simclr | ||
criterion_kwargs: | ||
temperature: 0.1 | ||
|
||
# Hyperparameters | ||
epochs: 5 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why epoch=5? |
||
optimizer: sgd | ||
optimizer_kwargs: | ||
nesterov: False | ||
weight_decay: 0.0001 | ||
momentum: 0.9 | ||
lr: 0.4 | ||
scheduler: cosine | ||
scheduler_kwargs: | ||
lr_decay_rate: 0.1 | ||
batch_size: 48 | ||
num_workers: 8 | ||
|
||
# Transformations | ||
augmentation_strategy: simclr | ||
augmentation_kwargs: | ||
random_resized_crop: | ||
size: 32 | ||
scale: [0.2, 1.0] | ||
color_jitter_random_apply: | ||
p: 0.8 | ||
color_jitter: | ||
brightness: 0.4 | ||
contrast: 0.4 | ||
saturation: 0.4 | ||
hue: 0.1 | ||
random_grayscale: | ||
p: 0.2 | ||
normalize: | ||
mean: [0.5] | ||
std: [0.5] | ||
|
||
transformation_kwargs: | ||
crop_size: 32 | ||
normalize: | ||
mean: [0.5] | ||
std: [0.5] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# setup | ||
setup: scan | ||
|
||
# Loss | ||
criterion: scan | ||
criterion_kwargs: | ||
entropy_weight: 5.0 | ||
|
||
# Model | ||
backbone: resnet50 | ||
|
||
# Weight update | ||
update_cluster_head_only: True # Train only linear layer during SCAN | ||
num_heads: 10 # Use multiple heads | ||
|
||
# Dataset | ||
train_db_name: birds | ||
val_db_name: birds | ||
num_classes: 200 | ||
num_neighbors: 50 | ||
|
||
# Transformations | ||
augmentation_strategy: simclr | ||
augmentation_kwargs: | ||
random_resized_crop: | ||
size: 224 | ||
scale: [0.2, 1.0] | ||
color_jitter_random_apply: | ||
p: 0.8 | ||
color_jitter: | ||
brightness: 0.4 | ||
contrast: 0.4 | ||
saturation: 0.4 | ||
hue: 0.1 | ||
random_grayscale: | ||
p: 0.2 | ||
normalize: | ||
mean: [0.485, 0.456, 0.406] | ||
std: [0.229, 0.224, 0.225] | ||
|
||
transformation_kwargs: | ||
crop_size: 224 | ||
normalize: | ||
mean: [0.485, 0.456, 0.406] | ||
std: [0.229, 0.224, 0.225] | ||
|
||
# Hyperparameters | ||
optimizer: sgd | ||
optimizer_kwargs: | ||
lr: 5.0 | ||
weight_decay: 0.0000 | ||
nesterov: False | ||
momentum: 0.9 | ||
epochs: 10 | ||
batch_size: 32 | ||
num_workers: 8 | ||
|
||
# Scheduler | ||
scheduler: constant |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# setup | ||
setup: scan | ||
|
||
# Loss | ||
criterion: scan | ||
criterion_kwargs: | ||
entropy_weight: 5.0 | ||
|
||
# Weight update | ||
update_cluster_head_only: False # Update full network in SCAN | ||
num_heads: 1 # Only use one head | ||
|
||
# Model | ||
backbone: resnet18 | ||
|
||
# Dataset | ||
train_db_name: mnist | ||
val_db_name: mnist | ||
num_classes: 10 | ||
num_neighbors: 20 | ||
|
||
# Transformations | ||
augmentation_strategy: ours | ||
augmentation_kwargs: | ||
crop_size: 32 | ||
normalize: | ||
mean: [0.5] | ||
std: [0.5] | ||
num_strong_augs: 4 | ||
cutout_kwargs: | ||
n_holes: 1 | ||
length: 16 | ||
random: True | ||
|
||
transformation_kwargs: | ||
crop_size: 32 | ||
normalize: | ||
mean: [0.5] | ||
std: [0.5] | ||
|
||
# Hyperparameters | ||
optimizer: adam | ||
optimizer_kwargs: | ||
lr: 0.0001 | ||
weight_decay: 0.0001 | ||
epochs: 5 | ||
batch_size: 48 | ||
num_workers: 8 | ||
|
||
# Scheduler | ||
scheduler: constant |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# setup | ||
setup: selflabel | ||
|
||
# Threshold | ||
confidence_threshold: 0.99 | ||
|
||
# EMA | ||
use_ema: True | ||
ema_alpha: 0.999 | ||
|
||
# Loss | ||
criterion: confidence-cross-entropy | ||
criterion_kwargs: | ||
apply_class_balancing: False | ||
|
||
# Model | ||
backbone: resnet50 | ||
num_heads: 1 | ||
|
||
# Dataset | ||
train_db_name: birds | ||
val_db_name: birds | ||
num_classes: 200 | ||
|
||
# Transformations | ||
augmentation_strategy: ours | ||
augmentation_kwargs: | ||
crop_size: 224 | ||
normalize: | ||
mean: [0.485, 0.456, 0.406] | ||
std: [0.229, 0.224, 0.225] | ||
num_strong_augs: 4 | ||
cutout_kwargs: | ||
n_holes: 1 | ||
length: 75 | ||
random: True | ||
|
||
transformation_kwargs: | ||
crop_size: 224 | ||
normalize: | ||
mean: [0.485, 0.456, 0.406] | ||
std: [0.229, 0.224, 0.225] | ||
|
||
# Hyperparameters | ||
optimizer: sgd | ||
optimizer_kwargs: | ||
lr: 0.03 | ||
weight_decay: 0.0 | ||
nesterov: False | ||
momentum: 0.9 | ||
epochs: 10 | ||
batch_size: 32 | ||
num_workers: 8 | ||
|
||
# Scheduler | ||
scheduler: constant |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# setup | ||
setup: selflabel | ||
|
||
# ema | ||
use_ema: False | ||
|
||
# Threshold | ||
confidence_threshold: 0.99 | ||
|
||
# Criterion | ||
criterion: confidence-cross-entropy | ||
criterion_kwargs: | ||
apply_class_balancing: True | ||
|
||
# Model | ||
backbone: resnet18 | ||
num_heads: 1 | ||
|
||
# Dataset | ||
train_db_name: mnist | ||
val_db_name: mnist | ||
num_classes: 10 | ||
|
||
# Transformations | ||
augmentation_strategy: ours | ||
augmentation_kwargs: | ||
crop_size: 32 | ||
normalize: | ||
mean: [0.5] | ||
std: [0.5] | ||
num_strong_augs: 4 | ||
cutout_kwargs: | ||
n_holes: 1 | ||
length: 16 | ||
random: True | ||
|
||
transformation_kwargs: | ||
crop_size: 32 | ||
normalize: | ||
mean: [0.5] | ||
std: [0.5] | ||
|
||
# Hyperparameters | ||
epochs: 5 | ||
optimizer: adam | ||
optimizer_kwargs: | ||
lr: 0.0001 | ||
weight_decay: 0.0001 | ||
batch_size: 48 | ||
num_workers: 8 | ||
|
||
# Scheduler | ||
scheduler: constant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better live unchanged