diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-20 14:44:49 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-20 14:44:49 +0200 |
| commit | 92ca783f16b7151531e22889b1ee0650a74d72b9 (patch) | |
| tree | 8c14749b560c894e440935ae7d8f1cc4daf994bd | |
| parent | efce0943a3776adcc86ebe27150ca05751c21ae6 (diff) | |
rename render folder when done
| -rwxr-xr-x | .gitignore | 1 | ||||
| -rw-r--r-- | live.py | 3 | ||||
| -rw-r--r-- | options/dataset_options.py | 7 |
3 files changed, 11 insertions, 0 deletions
@@ -4,6 +4,7 @@ sequences/ a_b/ checkpoints/ results/ +renders/ build/ dist/ torch.egg-info/ @@ -137,6 +137,9 @@ def process_live_input(opt, data_opt, rpc_client): data_opt.processing = False rpc_client.send_status('processing', False) + if data_opt.tag != data_opt.final_tag && len(data_opt.final_tag): + tag = data_opt.final_tag.lower().replace(' ', '_').replace('__', '_') + os.rename(opt.render_dir, opt.results_dir + "/" + tag + "/") if __name__ == '__main__': listener = Listener(opt, data_opt, data_opt_parser, process_live_input) diff --git a/options/dataset_options.py b/options/dataset_options.py index 3c032e5..57df872 100644 --- a/options/dataset_options.py +++ b/options/dataset_options.py @@ -60,6 +60,13 @@ class DatasetOptions(BaseOptions): ) self.parser.add_argument( + '--final-tag', + type=str, + default="", + help='optionally rename the dataset when we are done' + ) + + self.parser.add_argument( '--scp', action='store_true', help='scp this file somewhere' |
