Spaces:
Running
Running
Update train.ipynb
Browse files- train.ipynb +1 -1
train.ipynb
CHANGED
@@ -295,7 +295,7 @@
|
|
295 |
},
|
296 |
"outputs": [],
|
297 |
"source": [
|
298 |
-
"def train_network(iteration, loss_weight = [
|
299 |
" for param in style_transfer_network.encoder.parameters():\n",
|
300 |
" # freeze parameter in the encoder network\n",
|
301 |
" param.requires_grad = False\n",
|
|
|
295 |
},
|
296 |
"outputs": [],
|
297 |
"source": [
|
298 |
+
"def train_network(iteration, loss_weight = [1.0, 100.0, 0.001], check_iter = 1, test_iter = 10):\n",
|
299 |
" for param in style_transfer_network.encoder.parameters():\n",
|
300 |
" # freeze parameter in the encoder network\n",
|
301 |
" param.requires_grad = False\n",
|