Commit 9fe32e10 authored by Ines Filipa Fernandes Ramos's avatar Ines Filipa Fernandes Ramos
Browse files

chnaged RF of OFF RGC

parent b79030c4
This diff is collapsed.
......@@ -344,7 +344,7 @@ def contrast_tuning(model, img, bias, scale, min_contrast=0.01, n=1000, linear=T
return cont, vals, lim_contrast
def MEI_multi_seed(dataset_name, dat, dataloaders, models, n_seeds, MEIParameter, TargetUnit, track=False):
def MEI_multi_seed(dataset_name, dat, dataloaders, models, n_seeds, MEIParameter, TargetUnit, bk_color, track=False):
"""
dataset_name : string # string with dataset_name of dataset used for training
dat : object # FileTreeDataset object with data schema of data
......@@ -397,7 +397,7 @@ def MEI_multi_seed(dataset_name, dat, dataloaders, models, n_seeds, MEIParameter
# prepare initial image
channels, original_h, original_w = img_shape[-3:]
# the background color of the initial image
background_color = np.float32([128] * channels)
background_color = np.float32([bk_color] * channels)
# generate initial random image
gen_image = np.random.normal(background_color, 8, (original_h, original_w, channels))
gen_image = np.clip(gen_image, 0, 255)
......
This diff is collapsed.
......@@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
......@@ -20,7 +20,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
......@@ -1840,7 +1840,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.9"
"version": "3.8.5"
}
},
"nbformat": 4,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment