Skip to content

Commit

Permalink
Jupytext (#1808)
Browse files Browse the repository at this point in the history
Workaround of #1807

### Description

- set a version constraint on jupytext

- remove xformer in maisi 

### Checks
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [ ] Avoid including large-size files in the PR.
- [ ] Clean up long text outputs from code cells in the notebook.
- [ ] For security purposes, please check the contents and remove any
sensitive info such as user names and private key.
- [ ] Ensure (1) hyperlinks and markdown anchors are working (2) use
relative paths for tutorial repo files (3) put figure and graphs in the
`./figure` folder
- [ ] Notebook runs automatically `./runner.sh -t <path to .ipynb file>`

---------

Signed-off-by: YunLiu <[email protected]>
  • Loading branch information
KumoLiu committed Sep 2, 2024
1 parent a42ee20 commit e69c10d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions generation/maisi/maisi_diff_unet_training_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python -c \"import monai\" || pip install -q \"monai-weekly[pillow, tqdm]\"\n",
"!python -c \"import xformers\" || pip install -q xformers --index-url https://download.pytorch.org/whl/cu121\n",
"# The Python package \"xformers\" is essential for improving model training efficiency and saving GPU memory footprints."
"!python -c \"import monai\" || pip install -q \"monai-weekly[pillow, tqdm]\""
]
},
{
Expand Down
4 changes: 1 addition & 3 deletions generation/maisi/maisi_train_controlnet_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@
"metadata": {},
"outputs": [],
"source": [
"!python -c \"import monai\" || pip install -q \"monai-weekly[pillow, tqdm]\"\n",
"!python -c \"import xformers\" || pip install -q xformers --index-url https://download.pytorch.org/whl/cu121\n",
"# The Python package \"xformers\" is essential for improving model training efficiency and saving GPU memory footprints."
"!python -c \"import monai\" || pip install -q \"monai-weekly[pillow, tqdm]\""
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
flake8
papermill
autopep8
jupytext
jupytext<=1.16.3
autoflake
ipywidgets
tensorboard>=2.4.0

0 comments on commit e69c10d

Please sign in to comment.