projects
/
picoclvr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b35745d
)
Update.
author
François Fleuret
<francois@fleuret.org>
Sun, 18 Feb 2024 22:30:01 +0000
(23:30 +0100)
committer
François Fleuret
<francois@fleuret.org>
Sun, 18 Feb 2024 22:30:01 +0000
(23:30 +0100)
tasks.py
patch
|
blob
|
history
diff --git
a/tasks.py
b/tasks.py
index
78910a0
..
1ea3b5d
100755
(executable)
--- a/
tasks.py
+++ b/
tasks.py
@@
-144,6
+144,9
@@
class TaskFromFile(Task):
)
self.test_input, self.test_pred_masks = self.tensorize(pairs[nb_train_samples:])
+ assert self.train_input.size(0) == nb_train_samples
+ assert self.test_input.size(0) == nb_test_samples
+
def batches(self, split="train", nb_to_use=-1, desc=None):
assert split in {"train", "test"}
input = self.train_input if split == "train" else self.test_input