Skip to content
Snippets Groups Projects
Commit ec6d1af3 authored by Frisinghelli Daniel's avatar Frisinghelli Daniel
Browse files

Indentation.

parent eef8e827
No related branches found
No related tags found
No related merge requests found
......@@ -41,9 +41,9 @@ for predictand in ${PREDICTAND[@]}; do
# change loss function in configuration
if [ "$loss" = "L1Loss" ] || [ "$loss" = "MSELoss" ]; then
sed -i "s/LOSS\s*=.*/LOSS=$loss()/" ./climax/main/config.py
sed -i "s/LOSS\s*=.*/LOSS=$loss()/" ./climax/main/config.py
else
sed -i "s/LOSS\s*=.*/LOSS=$loss(min_amount=1)/" ./climax/main/config.py
sed -i "s/LOSS\s*=.*/LOSS=$loss(min_amount=1)/" ./climax/main/config.py
fi
# iterate over the optimizer
......@@ -61,7 +61,7 @@ for predictand in ${PREDICTAND[@]}; do
# iterate over weight decay values
for lambda in ${LAMBDA[@]}; do
# change weight regularization in configuration
sed -i "s/'weight_decay':.*/'weight_decay': $lambda/" ./climax/main/config.py
sed -i "s/'weight_decay':.*/'weight_decay': $lambda/" ./climax/main/config.py
# run downscaling
# python climax/main/downscale.py
......@@ -73,9 +73,9 @@ for predictand in ${PREDICTAND[@]}; do
# iterate over weight decay values
for lambda in ${LAMBDA[@]}; do
# change weight regularization in configuration
sed -i "s/'weight_decay':.*/'weight_decay': $lambda/" ./climax/main/config.py
sed -i "s/'weight_decay':.*/'weight_decay': $lambda/" ./climax/main/config.py
# run downscaling
# run downscaling
# python climax/main/downscale.py
python climax/main/downscale_train.py
python climax/main/downscale_infer.py
......
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