Skip to content

Commit

Permalink
fix: removed the jax import and defaulted jax to use the cpu due to o…
Browse files Browse the repository at this point in the history
…ut of memory issues in the unet demo (#72)
  • Loading branch information
vedpatwardhan authored Jan 22, 2024
1 parent 4f06395 commit 216e0fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples_and_demos/image_segmentation_with_ivy_unet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@
"source": [
"import ivy\n",
"ivy.set_default_device(\"gpu:0\")\n",
"import jax\n",
"jax.devices()\n",
"import torch\n",
"import numpy as np"
]
Expand Down Expand Up @@ -562,6 +560,7 @@
"import jax\n",
"\n",
"jax.config.update('jax_enable_x64', True)\n",
"ivy.set_default_device(\"cpu\")\n",
"ivy.set_backend(\"jax\")\n",
"ivy_unet = ivy_models.unet_carvana(n_channels=3, n_classes=2, pretrained=True)"
]
Expand Down

0 comments on commit 216e0fd

Please sign in to comment.