Skip to content

Commit

Permalink
Tiny fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hvass-Labs committed Jan 12, 2019
1 parent ddb0ab3 commit c47f4fe
Showing 1 changed file with 18 additions and 48 deletions.
66 changes: 18 additions & 48 deletions 14_DeepDream.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [
Expand Down Expand Up @@ -80,9 +79,7 @@
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -140,9 +137,7 @@
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -181,9 +176,7 @@
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"import inception5h"
Expand Down Expand Up @@ -217,9 +210,7 @@
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -263,7 +254,6 @@
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [
Expand Down Expand Up @@ -671,7 +661,8 @@
" # Calculate the value of the gradient.\n",
" # This tells us how to change the image so as to\n",
" # maximize the mean of the given layer-tensor.\n",
" grad = tiled_gradient(gradient=gradient, image=img)\n",
" grad = tiled_gradient(gradient=gradient, image=img,\n",
" tile_size=tile_size)\n",
" \n",
" # Blur the gradient with different amounts and add\n",
" # them together. The blur amount is also increased\n",
Expand Down Expand Up @@ -839,9 +830,7 @@
{
"cell_type": "code",
"execution_count": 21,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -870,7 +859,6 @@
"cell_type": "code",
"execution_count": 22,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [
Expand Down Expand Up @@ -900,9 +888,7 @@
{
"cell_type": "code",
"execution_count": 23,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -1147,7 +1133,6 @@
"cell_type": "code",
"execution_count": 25,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [
Expand Down Expand Up @@ -1350,9 +1335,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"layer_tensor = model.layer_tensors[6]\n",
Expand All @@ -1371,9 +1354,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"layer_tensor = model.layer_tensors[7][:,:,:,0:3]\n",
Expand All @@ -1392,9 +1373,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"layer_tensor = model.layer_tensors[11][:,:,:,0]\n",
Expand All @@ -1413,9 +1392,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"image = load_image(filename='images/giger.jpg')\n",
Expand All @@ -1425,9 +1402,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"layer_tensor = model.layer_tensors[3]\n",
Expand All @@ -1439,9 +1414,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"layer_tensor = model.layer_tensors[5]\n",
Expand All @@ -1461,7 +1434,6 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"scrolled": true
},
"outputs": [],
Expand All @@ -1473,9 +1445,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [],
"source": [
"layer_tensor = model.layer_tensors[6]\n",
Expand Down Expand Up @@ -1561,7 +1531,7 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python [default]",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -1575,9 +1545,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"version": "3.6.6"
}
},
"nbformat": 4,
"nbformat_minor": 0
"nbformat_minor": 1
}

0 comments on commit c47f4fe

Please sign in to comment.