Skip to content

Commit 3f683b2

Browse files
authored
Merge pull request #4 from daas-ankur-shukla/patch-1
Proposed Solution for Issue #2
2 parents fb89cb7 + 18072e5 commit 3f683b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IndianPines_DataSet_Preparation_Without_Augmentation.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
"for i in range(HEIGHT - PATCH_SIZE + 1):\n",
198198
" for j in range(WIDTH - PATCH_SIZE + 1):\n",
199199
" curr_inp = Patch(i,j)\n",
200-
" curr_tar = target_mat[i + (PATCH_SIZE - 1)/2, j + (PATCH_SIZE - 1)/2]\n",
200+
" curr_tar = target_mat[i + int((PATCH_SIZE - 1)/2), j + int((PATCH_SIZE - 1)/2)]\n",
201201
" if(curr_tar!=0): #Ignore patches with unknown landcover type for the central pixel\n",
202202
" CLASSES[curr_tar-1].append(curr_inp)"
203203
]

0 commit comments

Comments
 (0)