|
7 | 7 | "colab_type": "text" |
8 | 8 | }, |
9 | 9 | "source": [ |
10 | | - "<a href=\"https://colab.research.google.com/github/ssec/WAF_ML_Tutorial_Part2/blob/2-confusion-about-interpolating/colab_notebooks/Notebook06_Convolutions_PyTorch.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" |
| 10 | + "<a href=\"https://colab.research.google.com/github/ssec/WAF_ML_Tutorial_Part2/blob/main/colab_notebooks/Notebook06_Convolutions_PyTorch.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" |
11 | 11 | ] |
12 | 12 | }, |
13 | 13 | { |
|
43 | 43 | "cell_type": "code", |
44 | 44 | "source": [ |
45 | 45 | "print('grabbing the Github repo')\n", |
46 | | - "!git clone https://github.com/ai2es/WAF_ML_Tutorial_Part2.git\n", |
| 46 | + "!git clone https://github.com/ssec/WAF_ML_Tutorial_Part2.git\n", |
47 | 47 | "print('done')" |
48 | 48 | ], |
49 | 49 | "metadata": { |
|
53 | 53 | "id": "x2m10lWrHr_R", |
54 | 54 | "outputId": "a0fcf4ba-0837-49a9-b7da-4c9870b31550" |
55 | 55 | }, |
56 | | - "execution_count": 1, |
| 56 | + "execution_count": null, |
57 | 57 | "outputs": [ |
58 | 58 | { |
59 | 59 | "output_type": "stream", |
|
75 | 75 | }, |
76 | 76 | { |
77 | 77 | "cell_type": "code", |
78 | | - "execution_count": 2, |
| 78 | + "execution_count": null, |
79 | 79 | "metadata": { |
80 | 80 | "colab": { |
81 | 81 | "base_uri": "https://localhost:8080/" |
|
146 | 146 | }, |
147 | 147 | { |
148 | 148 | "cell_type": "code", |
149 | | - "execution_count": 3, |
| 149 | + "execution_count": null, |
150 | 150 | "metadata": { |
151 | 151 | "colab": { |
152 | 152 | "base_uri": "https://localhost:8080/", |
|
681 | 681 | }, |
682 | 682 | { |
683 | 683 | "cell_type": "code", |
684 | | - "execution_count": 4, |
| 684 | + "execution_count": null, |
685 | 685 | "metadata": { |
686 | 686 | "colab": { |
687 | 687 | "base_uri": "https://localhost:8080/", |
|
902 | 902 | { |
903 | 903 | "cell_type": "code", |
904 | 904 | "source": [ |
905 | | - "# %%\n", |
906 | 905 | "# Convert xarray data to numpy, then to a torch tensor\n", |
907 | 906 | "input_data = ds_sample.radar_image_matrix.isel(radar_height=slice(0,1),radar_field=0).values\n", |
908 | 907 | "\n", |
|
929 | 928 | "id": "zo_JAULelGBC", |
930 | 929 | "outputId": "313fa14f-3be3-47e5-cbc5-48e964a80505" |
931 | 930 | }, |
932 | | - "execution_count": 5, |
| 931 | + "execution_count": null, |
933 | 932 | "outputs": [ |
934 | 933 | { |
935 | 934 | "output_type": "stream", |
|
956 | 955 | { |
957 | 956 | "cell_type": "code", |
958 | 957 | "source": [ |
959 | | - "# interpolate from (1, 1, 32, 32), (1, 1, 36, 36)\n", |
| 958 | + "# interpolate from (1, 1, 32, 32) to (1, 1, 36, 36)\n", |
960 | 959 | "more_points = F.interpolate(input_tensor, size=(36, 36), mode='bilinear', align_corners=False)\n" |
961 | 960 | ], |
962 | 961 | "metadata": { |
963 | 962 | "id": "rnhhUlxnnLBT" |
964 | 963 | }, |
965 | | - "execution_count": 15, |
| 964 | + "execution_count": null, |
966 | 965 | "outputs": [] |
967 | 966 | }, |
968 | 967 | { |
|
976 | 975 | }, |
977 | 976 | { |
978 | 977 | "cell_type": "code", |
979 | | - "execution_count": 16, |
| 978 | + "execution_count": null, |
980 | 979 | "metadata": { |
981 | 980 | "colab": { |
982 | 981 | "base_uri": "https://localhost:8080/", |
|
1060 | 1059 | }, |
1061 | 1060 | { |
1062 | 1061 | "cell_type": "code", |
1063 | | - "execution_count": 7, |
| 1062 | + "execution_count": null, |
1064 | 1063 | "metadata": { |
1065 | 1064 | "colab": { |
1066 | 1065 | "base_uri": "https://localhost:8080/", |
|
1175 | 1174 | }, |
1176 | 1175 | { |
1177 | 1176 | "cell_type": "code", |
1178 | | - "execution_count": 8, |
| 1177 | + "execution_count": null, |
1179 | 1178 | "metadata": { |
1180 | 1179 | "colab": { |
1181 | 1180 | "base_uri": "https://localhost:8080/", |
|
1299 | 1298 | }, |
1300 | 1299 | { |
1301 | 1300 | "cell_type": "code", |
1302 | | - "execution_count": 9, |
| 1301 | + "execution_count": null, |
1303 | 1302 | "metadata": { |
1304 | 1303 | "colab": { |
1305 | 1304 | "base_uri": "https://localhost:8080/", |
|
1381 | 1380 | }, |
1382 | 1381 | { |
1383 | 1382 | "cell_type": "code", |
1384 | | - "execution_count": 17, |
| 1383 | + "execution_count": null, |
1385 | 1384 | "metadata": { |
1386 | 1385 | "colab": { |
1387 | 1386 | "base_uri": "https://localhost:8080/", |
|
0 commit comments