|
202 | 202 | },
|
203 | 203 | {
|
204 | 204 | "cell_type": "code",
|
205 |
| - "execution_count": 12, |
| 205 | + "execution_count": 34, |
206 | 206 | "id": "e5fd47f6-1b43-48af-b843-2ef30859a624",
|
207 | 207 | "metadata": {
|
208 | 208 | "scrolled": true
|
|
212 | 212 | "name": "stdout",
|
213 | 213 | "output_type": "stream",
|
214 | 214 | "text": [
|
215 |
| - "Using downloaded and verified file: /data/datatorchgeo/HCAT2.csv\n", |
216 |
| - "Downloading https://zenodo.org/records/8229128/files/FR_2018.zip to /data/datatorchgeo/FR_2018.zip\n" |
217 |
| - ] |
218 |
| - }, |
219 |
| - { |
220 |
| - "name": "stderr", |
221 |
| - "output_type": "stream", |
222 |
| - "text": [ |
223 |
| - "100%|██████████| 2629629542/2629629542 [00:15<00:00, 165140701.25it/s]\n" |
224 |
| - ] |
225 |
| - }, |
226 |
| - { |
227 |
| - "name": "stdout", |
228 |
| - "output_type": "stream", |
229 |
| - "text": [ |
230 |
| - "Extracting /data/datatorchgeo/FR_2018.zip to /data/datatorchgeo\n", |
| 215 | + "Files already downloaded and verified\n", |
231 | 216 | "Converting EuroCrops_ CRS from EPSG:4326 to EPSG:32631\n",
|
232 | 217 | "Converting EuroCrops_ res from 1e-05 to 10.0\n",
|
233 | 218 | "Files already downloaded and verified\n",
|
|
276 | 261 | "datamodule = Sentinel2EuroCropsDataModule(\n",
|
277 | 262 | " sentinel2_paths=\"/data/sentinel\",\n",
|
278 | 263 | " eurocrops_paths=\"/data/datatorchgeo\",\n",
|
279 |
| - " batch_size=16,\n", |
280 |
| - " patch_size=64,\n", |
281 |
| - " num_workers=32,\n", |
| 264 | + " batch_size=64,\n", |
| 265 | + " patch_size=256,\n", |
| 266 | + " num_workers=64,\n", |
282 | 267 | " eurocrops_download=True\n",
|
283 | 268 | ")\n",
|
284 | 269 | "\n",
|
|
292 | 277 | },
|
293 | 278 | {
|
294 | 279 | "cell_type": "code",
|
295 |
| - "execution_count": 13, |
| 280 | + "execution_count": 35, |
296 | 281 | "id": "cfb04476-0d0e-48cb-b678-757cbcebe76b",
|
297 | 282 | "metadata": {
|
298 | 283 | "scrolled": true
|
|
311 | 296 | " ['/data/datatorchgeo/FR_2018/FR_2018_EC21.shp'])"
|
312 | 297 | ]
|
313 | 298 | },
|
314 |
| - "execution_count": 13, |
| 299 | + "execution_count": 35, |
315 | 300 | "metadata": {},
|
316 | 301 | "output_type": "execute_result"
|
317 | 302 | }
|
|
675 | 660 | },
|
676 | 661 | {
|
677 | 662 | "cell_type": "code",
|
678 |
| - "execution_count": 29, |
| 663 | + "execution_count": 36, |
679 | 664 | "id": "33e40648-e1d6-4f0c-a4c4-4baec6ee8556",
|
680 | 665 | "metadata": {},
|
681 | 666 | "outputs": [
|
|
1079 | 1064 | " '3399000000': 395}"
|
1080 | 1065 | ]
|
1081 | 1066 | },
|
1082 |
| - "execution_count": 29, |
| 1067 | + "execution_count": 36, |
1083 | 1068 | "metadata": {},
|
1084 | 1069 | "output_type": "execute_result"
|
1085 | 1070 | }
|
|
1100 | 1085 | "name": "stderr",
|
1101 | 1086 | "output_type": "stream",
|
1102 | 1087 | "text": [
|
1103 |
| - "INFO:torch.distributed.nn.jit.instantiator:Created a temporary directory at /tmp/tmpe85uwi0w\n", |
1104 |
| - "INFO:torch.distributed.nn.jit.instantiator:Writing /tmp/tmpe85uwi0w/_remote_module_non_scriptable.py\n", |
1105 | 1088 | "INFO: GPU available: True (cuda), used: False\n",
|
1106 | 1089 | "INFO:lightning.pytorch.utilities.rank_zero:GPU available: True (cuda), used: False\n",
|
1107 | 1090 | "INFO: TPU available: False, using: 0 TPU cores\n",
|
1108 | 1091 | "INFO:lightning.pytorch.utilities.rank_zero:TPU available: False, using: 0 TPU cores\n",
|
1109 | 1092 | "INFO: IPU available: False, using: 0 IPUs\n",
|
1110 | 1093 | "INFO:lightning.pytorch.utilities.rank_zero:IPU available: False, using: 0 IPUs\n",
|
1111 | 1094 | "INFO: HPU available: False, using: 0 HPUs\n",
|
1112 |
| - "INFO:lightning.pytorch.utilities.rank_zero:HPU available: False, using: 0 HPUs\n", |
1113 |
| - "/opt/conda/envs/ood/lib/python3.11/site-packages/lightning/pytorch/trainer/setup.py:187: GPU available but not used. You can set it by doing `Trainer(accelerator='gpu')`.\n", |
1114 |
| - "INFO: Running in `fast_dev_run` mode: will run the requested loop using 1 batch(es). Logging and checkpointing is suppressed.\n", |
1115 |
| - "INFO:lightning.pytorch.utilities.rank_zero:Running in `fast_dev_run` mode: will run the requested loop using 1 batch(es). Logging and checkpointing is suppressed.\n" |
| 1095 | + "INFO:lightning.pytorch.utilities.rank_zero:HPU available: False, using: 0 HPUs\n" |
1116 | 1096 | ]
|
1117 | 1097 | },
|
1118 | 1098 | {
|
|
1166 | 1146 | {
|
1167 | 1147 | "data": {
|
1168 | 1148 | "application/vnd.jupyter.widget-view+json": {
|
1169 |
| - "model_id": "9b2c8c920aec4933824dfccd37137f32", |
| 1149 | + "model_id": "16c2da485c104d8d8b5b485e219f4861", |
1170 | 1150 | "version_major": 2,
|
1171 | 1151 | "version_minor": 0
|
1172 | 1152 | },
|
|
1204 | 1184 | "trainer = Trainer(\n",
|
1205 | 1185 | " accelerator='cpu',\n",
|
1206 | 1186 | " default_root_dir='./',\n",
|
1207 |
| - " fast_dev_run=True,\n", |
1208 |
| - " log_every_n_steps=1,\n", |
| 1187 | + " fast_dev_run=False,\n", |
| 1188 | + " log_every_n_steps=10,\n", |
1209 | 1189 | " min_epochs=2,\n",
|
1210 | 1190 | " max_epochs=20,\n",
|
1211 |
| - ")\n", |
| 1191 | + " num_sanity_val_steps=0)\n", |
1212 | 1192 | "\n",
|
1213 | 1193 | "trainer.fit(model=task, datamodule=datamodule)"
|
1214 | 1194 | ]
|
|
0 commit comments