File size: 797 Bytes
6e601ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import comet_ml  # noqa: F401
from pathlib import Path
import sys
from argparse import ArgumentParser

sys.path.append(str(Path(__file__).resolve().parent.parent))

from climategan.utils import upload_images_to_exp

if __name__ == "__main__":
    parser = ArgumentParser()
    parser.add_argument("-i", "--images_path", type=str, default=".")
    parser.add_argument("-p", "--project_name", type=str, default="climategan-eval")
    parser.add_argument("-s", "--sleep", type=int, default=0.1)
    parser.add_argument("-v", "--verbose", type=int, default=1)
    args = parser.parse_args()

    exp = upload_images_to_exp(
        Path(args.images_path).resolve(),
        exp=None,
        project_name=args.project_name,
        sleep=args.sleep,
        verbose=args.verbose,
    )

    exp.end()