Skip to content
Snippets Groups Projects
Commit 6c4774d5 authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

Bump precommit hooks and fix files accordingly

parent 2e6c142c
No related branches found
No related tags found
1 merge request!69Bump precommit hooks and fix files accordingly
......@@ -5,7 +5,7 @@ repos:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/ambv/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
......
......@@ -214,7 +214,6 @@ class GlobalDecoderLayer(Module):
memory_key_padding_mask=None,
predict_last_n_only=None,
):
if memory_value is None:
memory_value = memory_key
......
......@@ -365,7 +365,6 @@ def apply_preprocessing(sample, preprocessings):
resize_ratio = [1, 1]
img = sample["img"]
for preprocessing in preprocessings:
if preprocessing["type"] == "dpi":
ratio = preprocessing["target"] / preprocessing["source"]
temp_img = img
......
......@@ -30,7 +30,7 @@ class DropoutScheduler:
self.init_teta_list_module(child)
def update_dropout_rate(self):
for (module, p) in self.teta_list:
for module, p in self.teta_list:
module.p = self.function(p, self.step_num, self.T)
......
......@@ -148,7 +148,6 @@ class ZoomRatio:
class ElasticDistortion:
def __init__(self, kernel_size=(7, 7), sigma=5, alpha=1):
self.kernel_size = kernel_size
self.sigma = sigma
self.alpha = alpha
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment