|
44 | 44 | },
|
45 | 45 | {
|
46 | 46 | "cell_type": "code",
|
47 |
| - "execution_count": 1, |
| 47 | + "execution_count": 2, |
48 | 48 | "metadata": {
|
49 | 49 | "execution": {
|
50 | 50 | "iopub.execute_input": "2021-01-14T12:34:04.909819Z",
|
|
59 | 59 | "name": "stdout",
|
60 | 60 | "output_type": "stream",
|
61 | 61 | "text": [
|
62 |
| - "MONAI version: 0.6.0rc1+23.gc6793fd0\n", |
63 |
| - "Numpy version: 1.20.3\n", |
64 |
| - "Pytorch version: 1.9.0a0+c3d40fd\n", |
65 |
| - "MONAI flags: HAS_EXT = True, USE_COMPILED = False\n", |
66 |
| - "MONAI rev id: c6793fd0f316a448778d0047664aaf8c1895fe1c\n", |
| 62 | + "MONAI version: 0.9.1rc1+6.gcbe16eb3\n", |
| 63 | + "Numpy version: 1.23.0\n", |
| 64 | + "Pytorch version: 1.12.0+cu102\n", |
| 65 | + "MONAI flags: HAS_EXT = False, USE_COMPILED = False, USE_META_DICT = False\n", |
| 66 | + "MONAI rev id: cbe16eb326830ef31479fd34ae1e44d27fc2d64d\n", |
| 67 | + "MONAI __file__: /home/wenqil/Documents/MONAI/monai/__init__.py\n", |
67 | 68 | "\n",
|
68 | 69 | "Optional dependencies:\n",
|
69 |
| - "Pytorch Ignite version: 0.4.5\n", |
70 |
| - "Nibabel version: 3.2.1\n", |
71 |
| - "scikit-image version: 0.15.0\n", |
72 |
| - "Pillow version: 8.2.0\n", |
73 |
| - "Tensorboard version: 2.5.0\n", |
74 |
| - "gdown version: 3.13.0\n", |
75 |
| - "TorchVision version: 0.10.0a0\n", |
76 |
| - "ITK version: 5.1.2\n", |
77 |
| - "tqdm version: 4.53.0\n", |
78 |
| - "lmdb version: 1.2.1\n", |
79 |
| - "psutil version: 5.8.0\n", |
80 |
| - "pandas version: 1.1.4\n", |
81 |
| - "einops version: 0.3.0\n", |
| 70 | + "Pytorch Ignite version: 0.4.9\n", |
| 71 | + "Nibabel version: 4.0.1\n", |
| 72 | + "scikit-image version: 0.19.3\n", |
| 73 | + "Pillow version: 9.2.0\n", |
| 74 | + "Tensorboard version: 2.9.1\n", |
| 75 | + "gdown version: 4.5.1\n", |
| 76 | + "TorchVision version: 0.13.0+cu102\n", |
| 77 | + "tqdm version: 4.64.0\n", |
| 78 | + "lmdb version: 1.3.0\n", |
| 79 | + "psutil version: 5.9.1\n", |
| 80 | + "pandas version: 1.4.3\n", |
| 81 | + "einops version: 0.4.1\n", |
| 82 | + "transformers version: 4.20.1\n", |
| 83 | + "mlflow version: 1.27.0\n", |
| 84 | + "pynrrd version: 0.4.3\n", |
82 | 85 | "\n",
|
83 | 86 | "For details about installing the optional dependencies, please visit:\n",
|
84 | 87 | " https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies\n",
|
|
124 | 127 | },
|
125 | 128 | {
|
126 | 129 | "cell_type": "code",
|
127 |
| - "execution_count": 2, |
| 130 | + "execution_count": null, |
128 | 131 | "metadata": {},
|
129 | 132 | "outputs": [],
|
130 | 133 | "source": [
|
|
150 | 153 | },
|
151 | 154 | {
|
152 | 155 | "cell_type": "code",
|
153 |
| - "execution_count": 3, |
| 156 | + "execution_count": 4, |
154 | 157 | "metadata": {
|
155 | 158 | "execution": {
|
156 | 159 | "iopub.execute_input": "2021-01-14T12:34:07.530773Z",
|
|
173 | 176 | "source": [
|
174 | 177 | "class TestCompose(Compose):\n",
|
175 | 178 | " def __call__(self, data, meta):\n",
|
176 |
| - " data = self.transforms[0](data, meta) # ensure channel first\n", |
177 |
| - " data, _, meta[\"affine\"] = self.transforms[1](data, meta[\"affine\"]) # spacing\n", |
| 179 | + " data = self.transforms[0](data) # ensure channel first\n", |
| 180 | + " data = self.transforms[1](data) # spacing\n", |
| 181 | + " meta = data.meta\n", |
178 | 182 | " if len(self.transforms) == 3:\n",
|
179 | 183 | " return self.transforms[2](data), meta # image contrast\n",
|
180 | 184 | " return data, meta\n",
|
|
213 | 217 | ],
|
214 | 218 | "metadata": {
|
215 | 219 | "kernelspec": {
|
216 |
| - "display_name": "Python 3", |
| 220 | + "display_name": "Python 3 (ipykernel)", |
217 | 221 | "language": "python",
|
218 | 222 | "name": "python3"
|
219 | 223 | },
|
|
227 | 231 | "name": "python",
|
228 | 232 | "nbconvert_exporter": "python",
|
229 | 233 | "pygments_lexer": "ipython3",
|
230 |
| - "version": "3.8.10" |
| 234 | + "version": "3.8.0" |
231 | 235 | }
|
232 | 236 | },
|
233 | 237 | "nbformat": 4,
|
|
0 commit comments