-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor code and add example notebooks (#19)
- Loading branch information
1 parent
39d76b3
commit 5349fdb
Showing
95 changed files
with
2,805 additions
and
1,889 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
SimpleITK==2.3.0 | ||
SimpleITK==2.3.1 | ||
chex==0.1.8 | ||
coverage==7.3.1 | ||
flax==0.7.4 | ||
coverage==7.3.2 | ||
flax==0.7.5 | ||
hydra-core==1.3.2 | ||
kaggle==1.5.16 | ||
numpy==1.24.3 # limited by tensorflow-macos 2.13.0 | ||
opencv-python==4.8.0.76 | ||
nbmake==1.4.6 | ||
numpy==1.26.2 | ||
opencv-python==4.8.1.78 | ||
optax==0.1.7 | ||
pandas==2.1.1 | ||
pre-commit==3.4.0 | ||
pandas==2.1.3 | ||
pre-commit==3.5.0 | ||
protobuf==3.20.3 # https://github.com/tensorflow/datasets/issues/4858 | ||
pytest-cov==4.1.0 | ||
pytest-mock==3.12.0 | ||
pytest-randomly==3.15.0 | ||
pytest-split==0.8.1 | ||
pytest-xdist==3.3.1 | ||
pytest==7.4.2 | ||
pytest-xdist==3.5.0 | ||
pytest==7.4.3 | ||
rdkit-pypi==2022.9.5 | ||
rich==13.5.3 | ||
ruff==0.0.291 | ||
rich==13.7.0 | ||
ruff==0.1.6 | ||
tensorflow-datasets==4.9.3 | ||
torch==2.0.1 # for testing only | ||
wandb==0.15.11 | ||
wily==1.24.2 | ||
torch==2.1.1 # for testing only | ||
wandb==0.16.0 | ||
wily==1.25.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
data: | ||
name: muscle_us | ||
loader: | ||
max_num_samples_per_split: -1 | ||
patch_shape: | ||
- 480 | ||
- 512 | ||
patch_overlap: | ||
- 0 | ||
- 0 | ||
data_augmentation: | ||
max_rotation: | ||
- 0.088 | ||
max_translation: | ||
- 10 | ||
- 10 | ||
max_scaling: | ||
- 0.15 | ||
- 0.15 | ||
trainer: | ||
max_num_samples: 512000 | ||
batch_size: 64 | ||
batch_size_per_replica: 8 | ||
num_devices_per_replica: 1 | ||
patch_size: | ||
- 2 | ||
- 2 | ||
scale_factor: | ||
- 2 | ||
- 2 | ||
task: | ||
name: segmentation | ||
model: | ||
_target_: imgx.model.Unet | ||
remat: true | ||
num_spatial_dims: 2 | ||
patch_size: | ||
- 2 | ||
- 2 | ||
scale_factor: | ||
- 2 | ||
- 2 | ||
num_channels: | ||
- 8 | ||
- 16 | ||
- 32 | ||
- 64 | ||
out_channels: 2 | ||
num_heads: 8 | ||
widening_factor: 4 | ||
num_transform_layers: 1 | ||
loss: | ||
dice: 1.0 | ||
cross_entropy: 0.0 | ||
focal: 20.0 | ||
early_stopping: | ||
metric: mean_binary_dice_score_without_background | ||
mode: max | ||
min_delta: 0.0001 | ||
patience: 10 | ||
debug: false | ||
seed: 0 | ||
half_precision: true | ||
optimizer: | ||
name: adamw | ||
kwargs: | ||
b1: 0.9 | ||
b2: 0.999 | ||
weight_decay: 1.0e-08 | ||
grad_norm: 1.0 | ||
lr_schedule: | ||
warmup_steps: 100 | ||
decay_steps: 10000 | ||
init_value: 1.0e-05 | ||
peak_value: 0.0008 | ||
end_value: 5.0e-05 | ||
logging: | ||
root_dir: null | ||
log_freq: 10 | ||
save_freq: 100 | ||
wandb: | ||
project: imgx | ||
entity: entity |
Binary file not shown.
Oops, something went wrong.