diff options
Diffstat (limited to 'load_c_data.py')
| -rwxr-xr-x | load_c_data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/load_c_data.py b/load_c_data.py index a3a905b..b692631 100755 --- a/load_c_data.py +++ b/load_c_data.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3.11 +#!.venv/bin/python3 import numpy as np from sys import argv from matplotlib import pyplot as plt @@ -18,7 +18,7 @@ if w <= 4: WIDTH,HEIGHT = w,h labels = data.reshape(WIDTH,HEIGHT) -BASE="/home/physics/cunnichr/Data/HistologyArrays/HistologyArray00/" +BASE="../Datasets/" NAME = FILE_NAME[-len("HT-XX.bin"):-len(".bin")] image = plt.imread(BASE + NAME + "/image.png") print(FILE_NAME[:-len("bin")] + "tif", "\n", image.transpose(2,0,1).shape, len(np.unique(labels))) |
