climateGAN / utils_scripts /upload_images_to_comet.py
vict0rsch's picture
initial commit from `vict0rsch/climateGAN`
ce190ee
raw
history blame
797 Bytes
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()