neuralBlack
neuralBlack copied to clipboard
name 'border' is not defined
Hi Please could you kindly check this notebook: https://github.com/aksh-ai/neuralBlack/blob/master/brain_tumor_dataset_preparation.ipynb for possible code error?
NameError Traceback (most recent call last)
this is the section that encounters the error `filename = None
for filename in range(1, 3065): with h5py.File('/content/BrainTumorClassification/data/{}.mat'.format(filename), 'r') as f: img = f['cjdata']['image'] label = f['cjdata']['label'][0][0]
labels.append(int(label))
**border.append(coord)**
img = np.array(img, dtype=np.float32)
plt.axis('off')
plt.imsave("/content/BrainTumorClassification/data/bt_images/{}.jpg".format(filename), img, cmap='gray')
print("{} files successfully saved".format(filename)) `
Create border=[]
border.append(coord) to be changed to border.append('coord')