Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeschamps committed Sep 19, 2024
1 parent 08da41c commit 1b37517
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
7 changes: 6 additions & 1 deletion guides/careamist_api/configuration/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
version: 0.1.0
experiment_name: N2V 3D
algorithm_config:
algorithm_type: fcn
algorithm: n2v
loss: n2v
model:
Expand Down Expand Up @@ -44,6 +43,12 @@ data_config:
struct_mask_span: 5
training_config:
num_epochs: 20
precision: '32'
max_steps: -1
check_val_every_n_epoch: 1
enable_progress_bar: true
accumulate_grad_batches: 1
gradient_clip_algorithm: norm
checkpoint_callback:
monitor: val_loss
verbose: false
Expand Down
6 changes: 3 additions & 3 deletions guides/careamist_api/configuration/convenience_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
patch_size=[64, 64],
batch_size=8,
num_epochs=20,
use_augmentations=False, # (1)!
augmentations=[], # (1)!
)
# --8<-- [end:n2v_no_aug]
# %%
Expand Down Expand Up @@ -161,7 +161,7 @@
patch_size=[64, 64],
batch_size=8,
num_epochs=20,
use_augmentations=False, # (1)!
augmentations=[], # (1)!
)
# --8<-- [end:n2n_no_aug]

Expand Down Expand Up @@ -249,7 +249,7 @@
patch_size=[64, 64],
batch_size=8,
num_epochs=20,
use_augmentations=False, # (1)!
augmentations=[], # (1)!
)
# --8<-- [end:care_no_aug]

Expand Down
1 change: 0 additions & 1 deletion guides/lightning_api/basic_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

# create lightning module
model = create_careamics_module( # (2)!
algorithm_type="fcn",
algorithm="n2v",
loss="n2v",
architecture="UNet",
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ testpaths = ["tests"]
[tool.ruff]
line-length = 112
target-version = "py38"
lint.select = [
select = [
"E", # style errors
"W", # style warnings
"F", # flakes
Expand All @@ -18,7 +18,7 @@ lint.select = [
"A001", # flake8-builtins
"RUF", # ruff-specific rules
]
lint.ignore = [
ignore = [
"D101",
"D102",
"D100", # Missing docstring in public module
Expand Down

0 comments on commit 1b37517

Please sign in to comment.