Browse Source

Создано с помощью Colaboratory

master
Denis Malimonov 1 month ago
parent
commit
3fb9496b3c
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      Face_Depixelizer_Rus.ipynb

+ 7
- 1
Face_Depixelizer_Rus.ipynb View File

@@ -142,22 +142,28 @@
"#@markdown ## Расширенные настройки:\n",
"#@markdown ##### *Если вы хотите получить более точный результат, измените следующие переменные, оптимально настроенные по умолчанию*:\n",
"\n",
"input_dir = '/content/pulse/input/'\n",
"output_dir = '/content/pulse/runs/'\n",
"seed = 100 #@param {type:\"integer\"}\n",
"epsilon = 0.02 #@param {type:\"slider\", min:0.01, max:0.03, step:0.01}\n",
"noise_type = 'trainable' #@param ['zero', 'fixed', 'trainable']\n",
"optimizer = 'adam' #@param ['sgd', 'adam','sgdm', 'adamax']\n",
"learning_rate = 0.4 #@param {type:\"slider\", min:0, max:1, step:0.05}\n",
"learning_rate_schedule = 'linear1cycledrop' #@param ['fixed', 'linear1cycle', 'linear1cycledrop']\n",
"steps = 100 #@param {type:\"slider\", min:100, max:1000, step:50}\n",
"steps = 100 #@param {type:\"slider\", min:100, max:2000, step:50}\n",
"clear_output()\n",
"\n",
"seed = abs(seed)\n",
"print('Примерное время генерации: {} сек.\\n'.format(round(0.23*steps)+6))\n",
"!python run.py \\\n",
" -input_dir $input_dir \\\n",
" -output_dir $output_dir \\\n",
" -seed $seed \\\n",
" -noise_type $noise_type \\\n",
" -opt_name $optimizer \\\n",
" -learning_rate $learning_rate \\\n",
" -steps $steps \\\n",
" -eps $epsilon \\\n",
" -lr_schedule $learning_rate_schedule\n",
"\n",
"#@markdown ---\n",


Loading…
Cancel
Save