File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 8080 {
8181 "cell_type" : " code" ,
8282 "execution_count" : null ,
83- "metadata" : {},
83+ "metadata" : {
84+ "collapsed" : true
85+ },
8486 "outputs" : [],
8587 "source" : [
8688 " # move the model to GPU, if available\n " ,
184186 {
185187 "cell_type" : " code" ,
186188 "execution_count" : null ,
187- "metadata" : {},
189+ "metadata" : {
190+ "collapsed" : true
191+ },
188192 "outputs" : [],
189193 "source" : [
190194 " # display the images\n " ,
323327 " style_grams = {layer: gram_matrix(style_features[layer]) for layer in style_features}\n " ,
324328 " \n " ,
325329 " # create a third \" target\" image and prep it for change\n " ,
326- " # it is a good idea to start of with the target as a copy of our *content* image\n " ,
330+ " # it is a good idea to start off with the target as a copy of our *content* image\n " ,
327331 " # then iteratively change its style\n " ,
328332 " target = content.clone().requires_grad_(True).to(device)"
329333 ]
Original file line number Diff line number Diff line change 396396 "style_grams = {layer: gram_matrix(style_features[layer]) for layer in style_features}\n",
397397 "\n",
398398 "# create a third \"target\" image and prep it for change\n",
399- "# it is a good idea to start of with the target as a copy of our *content* image\n",
399+ "# it is a good idea to start off with the target as a copy of our *content* image\n",
400400 "# then iteratively change its style\n",
401401 "target = content.clone().requires_grad_(True).to(device)"
402402 ]
You can’t perform that action at this time.
0 commit comments