summaryrefslogtreecommitdiff
path: root/live-mogrify.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-07 02:55:44 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-07 02:55:44 +0200
commitcbee92430093fe776889fd4cbface6fe7288466b (patch)
tree03849499942943f4ca146dbc1bcd891c801a2e62 /live-mogrify.py
parent1300c166ecf9f47d1618ecb5455110b613616e59 (diff)
augment paths
Diffstat (limited to 'live-mogrify.py')
-rw-r--r--live-mogrify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/live-mogrify.py b/live-mogrify.py
index 5cd7f67..9fba009 100644
--- a/live-mogrify.py
+++ b/live-mogrify.py
@@ -133,13 +133,13 @@ def process_image(opt, data_opt, im):
def list_checkpoints(payload):
print("> list checkpoints")
- return sorted([f.split('/')[2] for f in glob.glob('./checkpoints/' + payload + '/*/latest_net_G.pth')])
+ return sorted([f.split('/')[3] for f in glob.glob('./checkpoints/' + payload + '/*/latest_net_G.pth')])
def list_epochs(path):
print("> list epochs for {}".format(path))
if not os.path.exists(os.path.join('./checkpoints/', path)):
return "not found"
- return sorted([f.split('/')[3].replace('_net_G.pth','') for f in glob.glob('./checkpoints/' + path + '/*_net_G.pth')])
+ return sorted([f.split('/')[4].replace('_net_G.pth','') for f in glob.glob('./checkpoints/' + path + '/*_net_G.pth')])
def list_sequences(module):
print("> list sequences")