projects
/
culture.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa56600
)
Update.
author
François Fleuret
<francois@fleuret.org>
Wed, 18 Sep 2024 14:06:07 +0000
(16:06 +0200)
committer
François Fleuret
<francois@fleuret.org>
Wed, 18 Sep 2024 14:06:07 +0000
(16:06 +0200)
main.py
patch
|
blob
|
history
diff --git
a/main.py
b/main.py
index
d8dffe2
..
c6eedfb
100755
(executable)
--- a/
main.py
+++ b/
main.py
@@
-380,8
+380,12
@@
def add_noise(imt_set):
return torch.cat([input[:, None], masks[:, None], targets[:, None]], dim=1)
+######################################################################
+
# IMT for input / masks / target
+# Generate a batch for prediction
+
def batch_for_prediction_imt(input):
nb = input.size(0)