Upload 2 files
Browse files- HeadsNet-2-6.7z +2 -2
- nan_check.py +4 -3
HeadsNet-2-6.7z
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6df60be39dcaa87d42f738542a200e2fe18d06dc94cc1aa679f6ec32a302677e
|
3 |
+
size 5074033362
|
nan_check.py
CHANGED
@@ -8,11 +8,12 @@ np.set_printoptions(threshold=sys.maxsize)
|
|
8 |
|
9 |
# load training data
|
10 |
st = time_ns()
|
11 |
-
train_x = []
|
12 |
-
train_y = []
|
13 |
print("Loading...")
|
|
|
14 |
with open("train_x.dat", 'rb') as f: data = np.fromfile(f, dtype=np.float32)
|
|
|
|
|
15 |
with open("train_y.dat", 'rb') as f: data = np.fromfile(f, dtype=np.float32)
|
16 |
-
print("NaN's detected:", np.count_nonzero(np.isnan(data)))
|
17 |
timetaken = (time_ns()-st)/1e+9
|
18 |
print("Time Taken:", "{:.2f}".format(timetaken), "seconds")
|
|
|
8 |
|
9 |
# load training data
|
10 |
st = time_ns()
|
|
|
|
|
11 |
print("Loading...")
|
12 |
+
data = []
|
13 |
with open("train_x.dat", 'rb') as f: data = np.fromfile(f, dtype=np.float32)
|
14 |
+
print("[train_x] NaN's detected:", np.count_nonzero(np.isnan(data)))
|
15 |
+
data = []
|
16 |
with open("train_y.dat", 'rb') as f: data = np.fromfile(f, dtype=np.float32)
|
17 |
+
print("[train_y] NaN's detected:", np.count_nonzero(np.isnan(data)))
|
18 |
timetaken = (time_ns()-st)/1e+9
|
19 |
print("Time Taken:", "{:.2f}".format(timetaken), "seconds")
|