Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: removed the jax import and defaulted jax to use the cpu due to out of memory issues in the unet demo #72

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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