summaryrefslogtreecommitdiff
path: root/run.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-25 15:41:10 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-25 15:41:10 +0200
commit26a08621599ed6a30137c41b32a4b8efac5ff97e (patch)
treebfb571dd49c081ec7525fd9fdcb5418e2a90220e /run.py
parent28cdb53b65c11254a1855657af73a623d2cc290a (diff)
go hey
Diffstat (limited to 'run.py')
-rw-r--r--run.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/run.py b/run.py
index f276e86..62e822e 100644
--- a/run.py
+++ b/run.py
@@ -51,7 +51,13 @@ if not os.path.exists('./renders'):
moduleNetwork = Network(arguments_strModel).cuda()
tensorOutput = torch.FloatTensor()
+index = 0
+
def process_tree(moduleNetwork, a, b, tensorOutput, steps):
+ global index
+ index += 1
+ if (index % 10) == 0:
+ print("{}...".format(index))
tensorInputFirst = torch.FloatTensor(a)
tensorInputSecond = torch.FloatTensor(b)
process(moduleNetwork, tensorInputFirst, tensorInputSecond, tensorOutput)