Skip to content

Commit

Permalink
🎨 Format Python code with psf/black
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored and github-actions[bot] committed Jul 26, 2024
1 parent ce2ec5b commit ec47ed6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions fl_common/models/hiera.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def get_hiera_model(hiera_type, num_classes):
"hiera_base_plus_224",
"hiera_large_224",
"hiera_huge_224",
'hiera_small_abswin_256',
'hiera_base_abswin_256',
"hiera_small_abswin_256",
"hiera_base_abswin_256",
}

if hiera_type not in valid_hiera_types:
Expand Down
12 changes: 9 additions & 3 deletions fl_common/models/segmentation/snp.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,10 +577,16 @@ def test_model_combinations(encoders, architectures):
in_channels=3,
classes=2,
)
preprocess_input = get_preprocessing_fn(encoder["model"], pretrained='imagenet')
print(f'Success: Created {arch["model"]} with {encoder["model"]}')
preprocess_input = get_preprocessing_fn(

Check notice on line 580 in fl_common/models/segmentation/snp.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

fl_common/models/segmentation/snp.py#L580

local variable 'preprocess_input' is assigned to but never used (F841)
encoder["model"], pretrained="imagenet"
)
print(
f'Success: Created {arch["model"]} with {encoder["model"]}'
)
except Exception as e:
print(f'Failed: {arch["model"]} with {encoder["model"]} - {e}')
print(
f'Failed: {arch["model"]} with {encoder["model"]} - {e}'
)


test_model_combinations(encoders, architectures)
9 changes: 5 additions & 4 deletions fl_server/tests/tests_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ def test_launch_node_main(self):
)
self.client_humani.upload_dataset(dataset)

ds_client = login('node_humani',
"[email protected]",
"abc123",
)
ds_client = login(
"node_humani",
"[email protected]",
"abc123",
)

asset = ds_client.datasets[-1].assets["ages"]
mock = asset.mock
Expand Down

0 comments on commit ec47ed6

Please sign in to comment.