diff --git a/.gitattributes b/.gitattributes index 28df5f900b358436f0267334b3e3e9af33f917ba..9dbb8180611512bf335c10ecde2e3fb1b3ad2692 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,7 +8,6 @@ *.h5 filter=lfs diff=lfs merge=lfs -text *.joblib filter=lfs diff=lfs merge=lfs -text *.lfs.* filter=lfs diff=lfs merge=lfs -text -*.lz4 filter=lfs diff=lfs merge=lfs -text *.mlmodel filter=lfs diff=lfs merge=lfs -text *.model filter=lfs diff=lfs merge=lfs -text *.msgpack filter=lfs diff=lfs merge=lfs -text @@ -34,22 +33,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text *tfevents* filter=lfs diff=lfs merge=lfs -text -# Audio files - uncompressed -*.pcm filter=lfs diff=lfs merge=lfs -text -*.sam filter=lfs diff=lfs merge=lfs -text -*.raw filter=lfs diff=lfs merge=lfs -text -# Audio files - compressed -*.aac filter=lfs diff=lfs merge=lfs -text -*.flac filter=lfs diff=lfs merge=lfs -text -*.mp3 filter=lfs diff=lfs merge=lfs -text -*.ogg filter=lfs diff=lfs merge=lfs -text -*.wav filter=lfs diff=lfs merge=lfs -text -# Image files - uncompressed -*.bmp filter=lfs diff=lfs merge=lfs -text -*.gif filter=lfs diff=lfs merge=lfs -text -*.png filter=lfs diff=lfs merge=lfs -text -*.tiff filter=lfs diff=lfs merge=lfs -text -# Image files - compressed -*.jpg filter=lfs diff=lfs merge=lfs -text -*.jpeg filter=lfs diff=lfs merge=lfs -text -*.webp filter=lfs diff=lfs merge=lfs -text +DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte filter=lfs diff=lfs merge=lfs -text +DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte filter=lfs diff=lfs merge=lfs -text +DDIM-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte filter=lfs diff=lfs merge=lfs -text +DDIM-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte filter=lfs diff=lfs merge=lfs -text +DDIM-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte filter=lfs diff=lfs merge=lfs -text +DDIM-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte filter=lfs diff=lfs merge=lfs -text +PF-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte filter=lfs diff=lfs merge=lfs -text +PF-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte filter=lfs diff=lfs merge=lfs -text +PF-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte filter=lfs diff=lfs merge=lfs -text +PF-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte filter=lfs diff=lfs merge=lfs -text +PF-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte filter=lfs diff=lfs merge=lfs -text +PF-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte filter=lfs diff=lfs merge=lfs -text diff --git a/DDIM-FMNIST/.hydra/config.yaml b/DDIM-FMNIST/.hydra/config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..dc6e8c6da02504c74b8070f569b8f50f7e33447c --- /dev/null +++ b/DDIM-FMNIST/.hydra/config.yaml @@ -0,0 +1,51 @@ +dataset: + dataset: FMNIST + image_size: 32 + channels: 1 +sample: + method: ${method} + model_path: YOUR PATH of pretrained ckpt + image_output_path: out + batch_size: 5 + total_num: 100 +work_dir: ${hydra:runtime.cwd} +method: F-PNDM +sample_speed: 50 +seed: 42 +model: + _target_: src.model.DDIM.Model + type: simple + resolution: 32 + in_channels: 1 + out_ch: 1 + ch: 128 + ch_mult: + - 1 + - 1 + - 1 + - 1 + num_res_blocks: 2 + attn_resolutions: + - 16 + dropout: 0.1 + resamp_with_conv: true +scheduler: + _target_: src.trainer.scheduler.Schedule + beta_start: 0.0001 + beta_end: 0.02 + diffusion_step: 1000 +train: + optim_cfg: + weight_decay: 0.0 + optimizer: adam + lr: 0.0002 + beta1: 0.9 + amsgrad: false + eps: 1.0e-08 + grad_clip: 1.0 + epochs: 100 + ema_rate: 0.9999 + use_ema: true + batch_size: 2048 + num_workers: 6 + save_path: ./save_ckpt diff --git a/DDIM-FMNIST/.hydra/hydra.yaml b/DDIM-FMNIST/.hydra/hydra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7ad9f11d430cb031931babfd71d43b33a40b7fc5 --- /dev/null +++ b/DDIM-FMNIST/.hydra/hydra.yaml @@ -0,0 +1,170 @@ +hydra: + run: + dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S} + sweep: + dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S} + subdir: ${hydra.job.num} + launcher: + _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher + sweeper: + _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper + max_batch_size: null + params: null + help: + app_name: ${hydra.job.name} + header: '${hydra.help.app_name} is powered by Hydra. + + ' + footer: 'Powered by Hydra (https://hydra.cc) + + Use --hydra-help to view Hydra specific help + + ' + template: '${hydra.help.header} + + == Configuration groups == + + Compose your configuration from those groups (group=option) + + + $APP_CONFIG_GROUPS + + + == Config == + + Override anything in the config (foo.bar=value) + + + $CONFIG + + + ${hydra.help.footer} + + ' + hydra_help: + template: 'Hydra (${hydra.runtime.version}) + + See https://hydra.cc for more info. + + + == Flags == + + $FLAGS_HELP + + + == Configuration groups == + + Compose your configuration from those groups (For example, append hydra/job_logging=disabled + to command line) + + + $HYDRA_CONFIG_GROUPS + + + Use ''--cfg hydra'' to Show the Hydra config. + + ' + hydra_help: ??? + hydra_logging: + version: 1 + formatters: + colorlog: + (): colorlog.ColoredFormatter + format: '[%(cyan)s%(asctime)s%(reset)s][%(purple)sHYDRA%(reset)s] %(message)s' + handlers: + console: + class: logging.StreamHandler + formatter: colorlog + stream: ext://sys.stdout + root: + level: INFO + handlers: + - console + disable_existing_loggers: false + job_logging: + version: 1 + formatters: + simple: + format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s' + colorlog: + (): colorlog.ColoredFormatter + format: '[%(cyan)s%(asctime)s%(reset)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s] + - %(message)s' + log_colors: + DEBUG: purple + INFO: green + WARNING: yellow + ERROR: red + CRITICAL: red + handlers: + console: + class: logging.StreamHandler + formatter: colorlog + stream: ext://sys.stdout + file: + class: logging.FileHandler + formatter: simple + filename: ${hydra.job.name}.log + root: + level: INFO + handlers: + - console + - file + disable_existing_loggers: false + env: {} + mode: RUN + searchpath: [] + callbacks: {} + output_subdir: .hydra + overrides: + hydra: + - hydra.mode=RUN + task: + - train=optim + - dataset.dataset=FMNIST + job: + name: run + chdir: null + override_dirname: dataset.dataset=FMNIST,train=optim + id: ??? + num: ??? + config_name: config + env_set: {} + env_copy: [] + config: + override_dirname: + kv_sep: '=' + item_sep: ',' + exclude_keys: [] + runtime: + version: 1.3.2 + version_base: '1.1' + cwd: /home/ubuntu/derek-240306/jxu/PNDM + config_sources: + - path: hydra.conf + schema: pkg + provider: hydra + - path: /home/ubuntu/derek-240306/jxu/PNDM/cfg + schema: file + provider: main + - path: hydra_plugins.hydra_colorlog.conf + schema: pkg + provider: hydra-colorlog + - path: '' + schema: structured + provider: schema + output_dir: /home/ubuntu/derek-240306/jxu/PNDM/outputs/2024-05-06/07-09-24 + choices: + train: optim + scheduler: schedule + model: DDIM + hydra/env: default + hydra/callbacks: null + hydra/job_logging: colorlog + hydra/hydra_logging: colorlog + hydra/hydra_help: default + hydra/help: default + hydra/sweeper: basic + hydra/launcher: basic + hydra/output: default + verbose: false diff --git a/DDIM-FMNIST/.hydra/overrides.yaml b/DDIM-FMNIST/.hydra/overrides.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7b39534813e04dd86276459fbdc297c76fe363a4 --- /dev/null +++ b/DDIM-FMNIST/.hydra/overrides.yaml @@ -0,0 +1,2 @@ +- train=optim +- dataset.dataset=FMNIST diff --git a/DDIM-FMNIST/run.log b/DDIM-FMNIST/run.log new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/DDIM-FMNIST/save_ckpt/ema.ckpt b/DDIM-FMNIST/save_ckpt/ema.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..9b550dda2d335750e1cd3c3a050fad2482d2dd4d --- /dev/null +++ b/DDIM-FMNIST/save_ckpt/ema.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:648e1acd65cbfe05b6969029dc1d7966ca89b622bccb8e70f90f7fd609b467d4 +size 47007294 diff --git a/DDIM-FMNIST/save_ckpt/train.ckpt b/DDIM-FMNIST/save_ckpt/train.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..dd1aeddf8a0f6a3cfece9e938cc6afc7b47acc7d --- /dev/null +++ b/DDIM-FMNIST/save_ckpt/train.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6c45f9debdf5877bd659778bee9896d150f6a88ddb5d092b47600ff62e9220f +size 141120122 diff --git a/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..8488d1aa07dc3b9e008c7380a5875a9783e426c8 --- /dev/null +++ b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b4141f0afbad91edebe8549f8fcffe087ea10ca49f1dbef5c9a5cd8815ce37b +size 7840016 diff --git a/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte.gz b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..e07f380067614c9793c71f94972c0e08801ca4bb --- /dev/null +++ b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:346e55b948d973a97e58d2351dde16a484bd415d4595297633bb08f03db6a073 +size 4422102 diff --git a/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-labels-idx1-ubyte b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-labels-idx1-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..2195a4d0957e013db98d03e51697e2315816cce2 Binary files /dev/null and b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-labels-idx1-ubyte differ diff --git a/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-labels-idx1-ubyte.gz b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-labels-idx1-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..b203da48ab910299736e5ad92480ceabac8809e3 --- /dev/null +++ b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-labels-idx1-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67da17c76eaffca5446c3361aaab5c3cd6d1c2608764d35dfb1850b086bf8dd5 +size 5148 diff --git a/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..078ac24d2f3620deaf29f9a5f3bca9241da3294f --- /dev/null +++ b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c59f468a2f672dc815687fe0f83887768d799fd8a3f3276145d20f83aa44d888 +size 47040016 diff --git a/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte.gz b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..91fb3548fdad6556714a8fa2f7535d4b395fcad6 --- /dev/null +++ b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3aede38d61863908ad78613f6a32ed271626dd12800ba2636569512369268a84 +size 26421880 diff --git a/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/train-labels-idx1-ubyte b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/train-labels-idx1-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..30424ca2ea876655f5bba14f9f07132769687975 Binary files /dev/null and b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/train-labels-idx1-ubyte differ diff --git a/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/train-labels-idx1-ubyte.gz b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/train-labels-idx1-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..371f432561ca8ae0a862cd522da2fcf0a94101a8 --- /dev/null +++ b/DDIM-FMNIST/temp/f-mnist/FashionMNIST/raw/train-labels-idx1-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a04f17134ac03560a47e3764e11b92fc97de4d1bfaf8ba1a3aa29af54cc90845 +size 29515 diff --git a/DDIM-FMNIST/temp/tensorboard/0506-0709/events.out.tfevents.1714979375.104-171-202-108.2443841.0 b/DDIM-FMNIST/temp/tensorboard/0506-0709/events.out.tfevents.1714979375.104-171-202-108.2443841.0 new file mode 100644 index 0000000000000000000000000000000000000000..50565516d086158feebdc4a8f8330508a8d49af1 --- /dev/null +++ b/DDIM-FMNIST/temp/tensorboard/0506-0709/events.out.tfevents.1714979375.104-171-202-108.2443841.0 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:43afc917604bbc5f690633168e6cce92bc3a1d3ad261c17d00c11a0d48aa0675 +size 111384 diff --git a/DDIM-KMNIST/.hydra/config.yaml b/DDIM-KMNIST/.hydra/config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e184ab4bcdc1634ac6a15fb33cd79c5db0c56925 --- /dev/null +++ b/DDIM-KMNIST/.hydra/config.yaml @@ -0,0 +1,51 @@ +dataset: + dataset: KMNIST + image_size: 32 + channels: 1 +sample: + method: ${method} + model_path: YOUR PATH of pretrained ckpt + image_output_path: out + batch_size: 5 + total_num: 100 +work_dir: ${hydra:runtime.cwd} +method: F-PNDM +sample_speed: 50 +seed: 42 +model: + _target_: src.model.DDIM.Model + type: simple + resolution: 32 + in_channels: 1 + out_ch: 1 + ch: 128 + ch_mult: + - 1 + - 1 + - 1 + - 1 + num_res_blocks: 2 + attn_resolutions: + - 16 + dropout: 0.1 + resamp_with_conv: true +scheduler: + _target_: src.trainer.scheduler.Schedule + beta_start: 0.0001 + beta_end: 0.02 + diffusion_step: 1000 +train: + optim_cfg: + weight_decay: 0.0 + optimizer: adam + lr: 0.0002 + beta1: 0.9 + amsgrad: false + eps: 1.0e-08 + grad_clip: 1.0 + epochs: 100 + ema_rate: 0.9999 + use_ema: true + batch_size: 2048 + num_workers: 6 + save_path: ./save_ckpt diff --git a/DDIM-KMNIST/.hydra/hydra.yaml b/DDIM-KMNIST/.hydra/hydra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..601fcf7f8c322117f8d0fc5099922da47798b383 --- /dev/null +++ b/DDIM-KMNIST/.hydra/hydra.yaml @@ -0,0 +1,170 @@ +hydra: + run: + dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S} + sweep: + dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S} + subdir: ${hydra.job.num} + launcher: + _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher + sweeper: + _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper + max_batch_size: null + params: null + help: + app_name: ${hydra.job.name} + header: '${hydra.help.app_name} is powered by Hydra. + + ' + footer: 'Powered by Hydra (https://hydra.cc) + + Use --hydra-help to view Hydra specific help + + ' + template: '${hydra.help.header} + + == Configuration groups == + + Compose your configuration from those groups (group=option) + + + $APP_CONFIG_GROUPS + + + == Config == + + Override anything in the config (foo.bar=value) + + + $CONFIG + + + ${hydra.help.footer} + + ' + hydra_help: + template: 'Hydra (${hydra.runtime.version}) + + See https://hydra.cc for more info. + + + == Flags == + + $FLAGS_HELP + + + == Configuration groups == + + Compose your configuration from those groups (For example, append hydra/job_logging=disabled + to command line) + + + $HYDRA_CONFIG_GROUPS + + + Use ''--cfg hydra'' to Show the Hydra config. + + ' + hydra_help: ??? + hydra_logging: + version: 1 + formatters: + colorlog: + (): colorlog.ColoredFormatter + format: '[%(cyan)s%(asctime)s%(reset)s][%(purple)sHYDRA%(reset)s] %(message)s' + handlers: + console: + class: logging.StreamHandler + formatter: colorlog + stream: ext://sys.stdout + root: + level: INFO + handlers: + - console + disable_existing_loggers: false + job_logging: + version: 1 + formatters: + simple: + format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s' + colorlog: + (): colorlog.ColoredFormatter + format: '[%(cyan)s%(asctime)s%(reset)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s] + - %(message)s' + log_colors: + DEBUG: purple + INFO: green + WARNING: yellow + ERROR: red + CRITICAL: red + handlers: + console: + class: logging.StreamHandler + formatter: colorlog + stream: ext://sys.stdout + file: + class: logging.FileHandler + formatter: simple + filename: ${hydra.job.name}.log + root: + level: INFO + handlers: + - console + - file + disable_existing_loggers: false + env: {} + mode: RUN + searchpath: [] + callbacks: {} + output_subdir: .hydra + overrides: + hydra: + - hydra.mode=RUN + task: + - train=optim + - dataset.dataset=KMNIST + job: + name: run + chdir: null + override_dirname: dataset.dataset=KMNIST,train=optim + id: ??? + num: ??? + config_name: config + env_set: {} + env_copy: [] + config: + override_dirname: + kv_sep: '=' + item_sep: ',' + exclude_keys: [] + runtime: + version: 1.3.2 + version_base: '1.1' + cwd: /home/ubuntu/derek-240306/jxu/PNDM + config_sources: + - path: hydra.conf + schema: pkg + provider: hydra + - path: /home/ubuntu/derek-240306/jxu/PNDM/cfg + schema: file + provider: main + - path: hydra_plugins.hydra_colorlog.conf + schema: pkg + provider: hydra-colorlog + - path: '' + schema: structured + provider: schema + output_dir: /home/ubuntu/derek-240306/jxu/PNDM/outputs/2024-05-06/01-24-04 + choices: + train: optim + scheduler: schedule + model: DDIM + hydra/env: default + hydra/callbacks: null + hydra/job_logging: colorlog + hydra/hydra_logging: colorlog + hydra/hydra_help: default + hydra/help: default + hydra/sweeper: basic + hydra/launcher: basic + hydra/output: default + verbose: false diff --git a/DDIM-KMNIST/.hydra/overrides.yaml b/DDIM-KMNIST/.hydra/overrides.yaml new file mode 100644 index 0000000000000000000000000000000000000000..25a67529616144010d20bbe42b500779012871c3 --- /dev/null +++ b/DDIM-KMNIST/.hydra/overrides.yaml @@ -0,0 +1,2 @@ +- train=optim +- dataset.dataset=KMNIST diff --git a/DDIM-KMNIST/run.log b/DDIM-KMNIST/run.log new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/DDIM-KMNIST/save_ckpt/ema.ckpt b/DDIM-KMNIST/save_ckpt/ema.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..85dd81139597fe887cecbac3c324d8114be189d3 --- /dev/null +++ b/DDIM-KMNIST/save_ckpt/ema.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3794248d58e446c540c5b63bdd6806efb5251f49546c5eed34cf6b50de1fb4d7 +size 47007294 diff --git a/DDIM-KMNIST/save_ckpt/train.ckpt b/DDIM-KMNIST/save_ckpt/train.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..175bae0fc792fae24ef9343c159171ec611df401 --- /dev/null +++ b/DDIM-KMNIST/save_ckpt/train.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53df8886ec15b1e2a47262f7a433eee864f8197e126741638de192cfa6a2052b +size 141120122 diff --git a/DDIM-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..280154be77fdf4b14b1c0a02e0dabc29d44e0813 --- /dev/null +++ b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76fbd229ce87db80dd281af5e6670de4ad0e42fb30a7bd643972994c47c1f42e +size 7840016 diff --git a/DDIM-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte.gz b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..9ca461a9a63184f814e707049835c7faea20be83 --- /dev/null +++ b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edd7a857845ad6bb1d0ba43fe7e794d164fe2dce499a1694695a792adfac43c5 +size 3041136 diff --git a/DDIM-KMNIST/temp/kmnist/KMNIST/raw/t10k-labels-idx1-ubyte b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/t10k-labels-idx1-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..6e9269c40e2642f2ac5bda1536e4a56c582e5be1 Binary files /dev/null and b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/t10k-labels-idx1-ubyte differ diff --git a/DDIM-KMNIST/temp/kmnist/KMNIST/raw/t10k-labels-idx1-ubyte.gz b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/t10k-labels-idx1-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..3f35e8c08f0ca409d2e9d077f87cbc23189363b6 --- /dev/null +++ b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/t10k-labels-idx1-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20bb9a0ef54c7db3efc55a92eef5582c109615df22683c380526788f98e42a1c +size 5120 diff --git a/DDIM-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..a7fd209a6ce1997e1b2c8dc6b072225c86e6aeb0 --- /dev/null +++ b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7112ba9ec422d98de4885262d4a4dff14cc4fefb81c11ace8bf563a8255df5c3 +size 47040016 diff --git a/DDIM-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte.gz b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..5f2ebfb88c8366a57afbb5377df97f32a49de070 --- /dev/null +++ b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51467d22d8cc72929e2a028a0428f2086b092bb31cfb79c69cc0a90ce135fde4 +size 18165135 diff --git a/DDIM-KMNIST/temp/kmnist/KMNIST/raw/train-labels-idx1-ubyte b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/train-labels-idx1-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..180cd088d65c3b75d97d046ad75476d1176666e0 Binary files /dev/null and b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/train-labels-idx1-ubyte differ diff --git a/DDIM-KMNIST/temp/kmnist/KMNIST/raw/train-labels-idx1-ubyte.gz b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/train-labels-idx1-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..d3b335590b54046e2ede1ee95e2edd0bbfd2009b --- /dev/null +++ b/DDIM-KMNIST/temp/kmnist/KMNIST/raw/train-labels-idx1-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e38f9ebcd0f3ebcdec7fc8eabdcdaef93bb0df8ea12bee65224341c8183d8e17 +size 29497 diff --git a/DDIM-KMNIST/temp/tensorboard/0506-0124/events.out.tfevents.1714958669.104-171-202-108.2349600.0 b/DDIM-KMNIST/temp/tensorboard/0506-0124/events.out.tfevents.1714958669.104-171-202-108.2349600.0 new file mode 100644 index 0000000000000000000000000000000000000000..83b8c65b936911c4a8fa9b0d25b7be9a57ce5ec6 --- /dev/null +++ b/DDIM-KMNIST/temp/tensorboard/0506-0124/events.out.tfevents.1714958669.104-171-202-108.2349600.0 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c37eb035b0449aad1c69efbb63ca098528abbfe8008e2bf305ceb64fc4b6d131 +size 132134 diff --git a/DDIM-MNIST/.hydra/config.yaml b/DDIM-MNIST/.hydra/config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..534982d5cd7f63dfb97238894dcf2706b9c91f8b --- /dev/null +++ b/DDIM-MNIST/.hydra/config.yaml @@ -0,0 +1,51 @@ +dataset: + dataset: MNIST + image_size: 32 + channels: 1 +sample: + method: ${method} + model_path: YOUR PATH of pretrained ckpt + image_output_path: out + batch_size: 5 + total_num: 100 +work_dir: ${hydra:runtime.cwd} +method: F-PNDM +sample_speed: 50 +seed: 42 +model: + _target_: src.model.DDIM.Model + type: simple + resolution: 32 + in_channels: 1 + out_ch: 1 + ch: 128 + ch_mult: + - 1 + - 1 + - 1 + - 1 + num_res_blocks: 2 + attn_resolutions: + - 16 + dropout: 0.1 + resamp_with_conv: true +scheduler: + _target_: src.trainer.scheduler.Schedule + beta_start: 0.0001 + beta_end: 0.02 + diffusion_step: 1000 +train: + optim_cfg: + weight_decay: 0.0 + optimizer: adam + lr: 0.0002 + beta1: 0.9 + amsgrad: false + eps: 1.0e-08 + grad_clip: 1.0 + epochs: 100 + ema_rate: 0.9999 + use_ema: true + batch_size: 2048 + num_workers: 6 + save_path: ./save_ckpt diff --git a/DDIM-MNIST/.hydra/hydra.yaml b/DDIM-MNIST/.hydra/hydra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1fd57ab261e3ac4e58b8ee4c1ffc7934f48b8fae --- /dev/null +++ b/DDIM-MNIST/.hydra/hydra.yaml @@ -0,0 +1,169 @@ +hydra: + run: + dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S} + sweep: + dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S} + subdir: ${hydra.job.num} + launcher: + _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher + sweeper: + _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper + max_batch_size: null + params: null + help: + app_name: ${hydra.job.name} + header: '${hydra.help.app_name} is powered by Hydra. + + ' + footer: 'Powered by Hydra (https://hydra.cc) + + Use --hydra-help to view Hydra specific help + + ' + template: '${hydra.help.header} + + == Configuration groups == + + Compose your configuration from those groups (group=option) + + + $APP_CONFIG_GROUPS + + + == Config == + + Override anything in the config (foo.bar=value) + + + $CONFIG + + + ${hydra.help.footer} + + ' + hydra_help: + template: 'Hydra (${hydra.runtime.version}) + + See https://hydra.cc for more info. + + + == Flags == + + $FLAGS_HELP + + + == Configuration groups == + + Compose your configuration from those groups (For example, append hydra/job_logging=disabled + to command line) + + + $HYDRA_CONFIG_GROUPS + + + Use ''--cfg hydra'' to Show the Hydra config. + + ' + hydra_help: ??? + hydra_logging: + version: 1 + formatters: + colorlog: + (): colorlog.ColoredFormatter + format: '[%(cyan)s%(asctime)s%(reset)s][%(purple)sHYDRA%(reset)s] %(message)s' + handlers: + console: + class: logging.StreamHandler + formatter: colorlog + stream: ext://sys.stdout + root: + level: INFO + handlers: + - console + disable_existing_loggers: false + job_logging: + version: 1 + formatters: + simple: + format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s' + colorlog: + (): colorlog.ColoredFormatter + format: '[%(cyan)s%(asctime)s%(reset)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s] + - %(message)s' + log_colors: + DEBUG: purple + INFO: green + WARNING: yellow + ERROR: red + CRITICAL: red + handlers: + console: + class: logging.StreamHandler + formatter: colorlog + stream: ext://sys.stdout + file: + class: logging.FileHandler + formatter: simple + filename: ${hydra.job.name}.log + root: + level: INFO + handlers: + - console + - file + disable_existing_loggers: false + env: {} + mode: RUN + searchpath: [] + callbacks: {} + output_subdir: .hydra + overrides: + hydra: + - hydra.mode=RUN + task: + - train=optim + job: + name: run + chdir: null + override_dirname: train=optim + id: ??? + num: ??? + config_name: config + env_set: {} + env_copy: [] + config: + override_dirname: + kv_sep: '=' + item_sep: ',' + exclude_keys: [] + runtime: + version: 1.3.2 + version_base: '1.1' + cwd: /home/ubuntu/derek-240306/jxu/PNDM + config_sources: + - path: hydra.conf + schema: pkg + provider: hydra + - path: /home/ubuntu/derek-240306/jxu/PNDM/cfg + schema: file + provider: main + - path: hydra_plugins.hydra_colorlog.conf + schema: pkg + provider: hydra-colorlog + - path: '' + schema: structured + provider: schema + output_dir: /home/ubuntu/derek-240306/jxu/PNDM/outputs/2024-05-06/02-28-17 + choices: + train: optim + scheduler: schedule + model: DDIM + hydra/env: default + hydra/callbacks: null + hydra/job_logging: colorlog + hydra/hydra_logging: colorlog + hydra/hydra_help: default + hydra/help: default + hydra/sweeper: basic + hydra/launcher: basic + hydra/output: default + verbose: false diff --git a/DDIM-MNIST/.hydra/overrides.yaml b/DDIM-MNIST/.hydra/overrides.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f56252cb6ec3309356de9437c20db04103acf86a --- /dev/null +++ b/DDIM-MNIST/.hydra/overrides.yaml @@ -0,0 +1 @@ +- train=optim diff --git a/DDIM-MNIST/run.log b/DDIM-MNIST/run.log new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/DDIM-MNIST/save_ckpt/ema.ckpt b/DDIM-MNIST/save_ckpt/ema.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..47a4cdae14ef30edf0baf78d01def3d8f7b74985 --- /dev/null +++ b/DDIM-MNIST/save_ckpt/ema.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2877c0d5b0fb5df52af8b6b85eb88eb79afba7c9a0de08cfdca46e8d8a5e8ee +size 47007294 diff --git a/DDIM-MNIST/save_ckpt/train.ckpt b/DDIM-MNIST/save_ckpt/train.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..76258aeae0f9da4f9680f12cfbc92e8a2ef3478d --- /dev/null +++ b/DDIM-MNIST/save_ckpt/train.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b54a02d0dbeb1bc606186667a154a6cb5254405c5cff2d854283cae756a7e623 +size 141120122 diff --git a/DDIM-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte b/DDIM-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..d026debec174b65df0cd4d448668d0c744497faa --- /dev/null +++ b/DDIM-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0fa7898d509279e482958e8ce81c8e77db3f2f8254e26661ceb7762c4d494ce7 +size 7840016 diff --git a/DDIM-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte.gz b/DDIM-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..aa17dfe485689242a90be276702dcadd17d406f4 --- /dev/null +++ b/DDIM-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d422c7b0a1c1c79245a5bcf07fe86e33eeafee792b84584aec276f5a2dbc4e6 +size 1648877 diff --git a/DDIM-MNIST/temp/mnist/MNIST/raw/t10k-labels-idx1-ubyte b/DDIM-MNIST/temp/mnist/MNIST/raw/t10k-labels-idx1-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..d1c3a970612bbd2df47a3c0697f82bd394abc450 Binary files /dev/null and b/DDIM-MNIST/temp/mnist/MNIST/raw/t10k-labels-idx1-ubyte differ diff --git a/DDIM-MNIST/temp/mnist/MNIST/raw/t10k-labels-idx1-ubyte.gz b/DDIM-MNIST/temp/mnist/MNIST/raw/t10k-labels-idx1-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..d1995bebe8e5b3faeaae99149ce4eb7a68c5764d --- /dev/null +++ b/DDIM-MNIST/temp/mnist/MNIST/raw/t10k-labels-idx1-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7ae60f92e00ec6debd23a6088c31dbd2371eca3ffa0defaefb259924204aec6 +size 4542 diff --git a/DDIM-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte b/DDIM-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..6f2c0cdbab4d9d6c202cefd16ea17c10b9e783e2 --- /dev/null +++ b/DDIM-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba891046e6505d7aadcbbe25680a0738ad16aec93bde7f9b65e87a2fc25776db +size 47040016 diff --git a/DDIM-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte.gz b/DDIM-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..9e9852c14333d6b633709fec2c6df84941243c9d --- /dev/null +++ b/DDIM-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:440fcabf73cc546fa21475e81ea370265605f56be210a4024d2ca8f203523609 +size 9912422 diff --git a/DDIM-MNIST/temp/mnist/MNIST/raw/train-labels-idx1-ubyte b/DDIM-MNIST/temp/mnist/MNIST/raw/train-labels-idx1-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..d6b4c5db3b52063d543fb397aede09aba0dc5234 Binary files /dev/null and b/DDIM-MNIST/temp/mnist/MNIST/raw/train-labels-idx1-ubyte differ diff --git a/DDIM-MNIST/temp/mnist/MNIST/raw/train-labels-idx1-ubyte.gz b/DDIM-MNIST/temp/mnist/MNIST/raw/train-labels-idx1-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..a7ebf9b5b685e9014530844158807071ae717f7f --- /dev/null +++ b/DDIM-MNIST/temp/mnist/MNIST/raw/train-labels-idx1-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3552534a0a558bbed6aed32b30c495cca23d567ec52cac8be1a0730e8010255c +size 28881 diff --git a/DDIM-MNIST/temp/tensorboard/0506-0228/events.out.tfevents.1714962501.104-171-202-108.2391814.0 b/DDIM-MNIST/temp/tensorboard/0506-0228/events.out.tfevents.1714962501.104-171-202-108.2391814.0 new file mode 100644 index 0000000000000000000000000000000000000000..5d60d641a4ebb3861954fa99d587a7fa63bb343a --- /dev/null +++ b/DDIM-MNIST/temp/tensorboard/0506-0228/events.out.tfevents.1714962501.104-171-202-108.2391814.0 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6b7b0b93a71f7f83945e4b25850346669284be69db784d26a373a61540d1c11 +size 114669 diff --git a/PF-FMNIST/.hydra/config.yaml b/PF-FMNIST/.hydra/config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ef93cebaf4b3e96a3eb92956c35dac55e377b0ac --- /dev/null +++ b/PF-FMNIST/.hydra/config.yaml @@ -0,0 +1,51 @@ +dataset: + dataset: FMNIST + image_size: 32 + channels: 1 +sample: + method: ${method} + model_path: YOUR PATH of pretrained ckpt + image_output_path: out + batch_size: 5 + total_num: 100 +work_dir: ${hydra:runtime.cwd} +method: F-PNDM +sample_speed: 50 +seed: 42 +model: + _target_: src.model.scoresde.ddpm.DDPM + nf: 128 + ch_mult: + - 1 + - 2 + - 2 + - 2 + num_res_blocks: 2 + attn_resolutions: + - 16 + dropout: 0.1 + num_channels: 1 + resamp_with_conv: true + image_size: 32 + conditional: true + centered: true +scheduler: + _target_: src.trainer.scheduler.Schedule + beta_start: 0.0001 + beta_end: 0.02 + diffusion_step: 1000 +train: + optim_cfg: + weight_decay: 0.0 + optimizer: adam + lr: 0.0002 + beta1: 0.9 + amsgrad: false + eps: 1.0e-08 + grad_clip: 1.0 + epochs: 100 + ema_rate: 0.9999 + use_ema: true + batch_size: 1024 + num_workers: 6 + save_path: ./save_ckpt diff --git a/PF-FMNIST/.hydra/hydra.yaml b/PF-FMNIST/.hydra/hydra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..821fa641b88f91e7e479e76c4b6e67ec35164ee9 --- /dev/null +++ b/PF-FMNIST/.hydra/hydra.yaml @@ -0,0 +1,172 @@ +hydra: + run: + dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S} + sweep: + dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S} + subdir: ${hydra.job.num} + launcher: + _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher + sweeper: + _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper + max_batch_size: null + params: null + help: + app_name: ${hydra.job.name} + header: '${hydra.help.app_name} is powered by Hydra. + + ' + footer: 'Powered by Hydra (https://hydra.cc) + + Use --hydra-help to view Hydra specific help + + ' + template: '${hydra.help.header} + + == Configuration groups == + + Compose your configuration from those groups (group=option) + + + $APP_CONFIG_GROUPS + + + == Config == + + Override anything in the config (foo.bar=value) + + + $CONFIG + + + ${hydra.help.footer} + + ' + hydra_help: + template: 'Hydra (${hydra.runtime.version}) + + See https://hydra.cc for more info. + + + == Flags == + + $FLAGS_HELP + + + == Configuration groups == + + Compose your configuration from those groups (For example, append hydra/job_logging=disabled + to command line) + + + $HYDRA_CONFIG_GROUPS + + + Use ''--cfg hydra'' to Show the Hydra config. + + ' + hydra_help: ??? + hydra_logging: + version: 1 + formatters: + colorlog: + (): colorlog.ColoredFormatter + format: '[%(cyan)s%(asctime)s%(reset)s][%(purple)sHYDRA%(reset)s] %(message)s' + handlers: + console: + class: logging.StreamHandler + formatter: colorlog + stream: ext://sys.stdout + root: + level: INFO + handlers: + - console + disable_existing_loggers: false + job_logging: + version: 1 + formatters: + simple: + format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s' + colorlog: + (): colorlog.ColoredFormatter + format: '[%(cyan)s%(asctime)s%(reset)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s] + - %(message)s' + log_colors: + DEBUG: purple + INFO: green + WARNING: yellow + ERROR: red + CRITICAL: red + handlers: + console: + class: logging.StreamHandler + formatter: colorlog + stream: ext://sys.stdout + file: + class: logging.FileHandler + formatter: simple + filename: ${hydra.job.name}.log + root: + level: INFO + handlers: + - console + - file + disable_existing_loggers: false + env: {} + mode: RUN + searchpath: [] + callbacks: {} + output_subdir: .hydra + overrides: + hydra: + - hydra.mode=RUN + task: + - train=optim + - dataset.dataset=FMNIST + - model=PF + - train.batch_size=1024 + job: + name: run + chdir: null + override_dirname: dataset.dataset=FMNIST,model=PF,train.batch_size=1024,train=optim + id: ??? + num: ??? + config_name: config + env_set: {} + env_copy: [] + config: + override_dirname: + kv_sep: '=' + item_sep: ',' + exclude_keys: [] + runtime: + version: 1.3.2 + version_base: '1.1' + cwd: /home/ubuntu/derek-240306/jxu/PNDM + config_sources: + - path: hydra.conf + schema: pkg + provider: hydra + - path: /home/ubuntu/derek-240306/jxu/PNDM/cfg + schema: file + provider: main + - path: hydra_plugins.hydra_colorlog.conf + schema: pkg + provider: hydra-colorlog + - path: '' + schema: structured + provider: schema + output_dir: /home/ubuntu/derek-240306/jxu/PNDM/outputs/2024-05-06/08-11-28 + choices: + train: optim + scheduler: schedule + model: PF + hydra/env: default + hydra/callbacks: null + hydra/job_logging: colorlog + hydra/hydra_logging: colorlog + hydra/hydra_help: default + hydra/help: default + hydra/sweeper: basic + hydra/launcher: basic + hydra/output: default + verbose: false diff --git a/PF-FMNIST/.hydra/overrides.yaml b/PF-FMNIST/.hydra/overrides.yaml new file mode 100644 index 0000000000000000000000000000000000000000..694190fa07f546783d753a625a3d1bd772e1e28a --- /dev/null +++ b/PF-FMNIST/.hydra/overrides.yaml @@ -0,0 +1,4 @@ +- train=optim +- dataset.dataset=FMNIST +- model=PF +- train.batch_size=1024 diff --git a/PF-FMNIST/run.log b/PF-FMNIST/run.log new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/PF-FMNIST/save_ckpt/ema.ckpt b/PF-FMNIST/save_ckpt/ema.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..590e1693a5a98ab87b1168be650b617a02ca6fc7 --- /dev/null +++ b/PF-FMNIST/save_ckpt/ema.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4247a0e7aef189592481e54ebd6f8a5b0a8aeb000f0be7f11b31867bae4da28 +size 140934762 diff --git a/PF-FMNIST/save_ckpt/train.ckpt b/PF-FMNIST/save_ckpt/train.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..9275f7cae8f44d84c2da8db3fe49b76329f9a0e8 --- /dev/null +++ b/PF-FMNIST/save_ckpt/train.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dffd34821c10af7d9b693c8b92466b697626e7a50ef0503f69b47e7ec6cf3fa7 +size 422893778 diff --git a/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..8488d1aa07dc3b9e008c7380a5875a9783e426c8 --- /dev/null +++ b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b4141f0afbad91edebe8549f8fcffe087ea10ca49f1dbef5c9a5cd8815ce37b +size 7840016 diff --git a/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte.gz b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..e07f380067614c9793c71f94972c0e08801ca4bb --- /dev/null +++ b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-images-idx3-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:346e55b948d973a97e58d2351dde16a484bd415d4595297633bb08f03db6a073 +size 4422102 diff --git a/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-labels-idx1-ubyte b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-labels-idx1-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..2195a4d0957e013db98d03e51697e2315816cce2 Binary files /dev/null and b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-labels-idx1-ubyte differ diff --git a/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-labels-idx1-ubyte.gz b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-labels-idx1-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..b203da48ab910299736e5ad92480ceabac8809e3 --- /dev/null +++ b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/t10k-labels-idx1-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67da17c76eaffca5446c3361aaab5c3cd6d1c2608764d35dfb1850b086bf8dd5 +size 5148 diff --git a/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..078ac24d2f3620deaf29f9a5f3bca9241da3294f --- /dev/null +++ b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c59f468a2f672dc815687fe0f83887768d799fd8a3f3276145d20f83aa44d888 +size 47040016 diff --git a/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte.gz b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..91fb3548fdad6556714a8fa2f7535d4b395fcad6 --- /dev/null +++ b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/train-images-idx3-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3aede38d61863908ad78613f6a32ed271626dd12800ba2636569512369268a84 +size 26421880 diff --git a/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/train-labels-idx1-ubyte b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/train-labels-idx1-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..30424ca2ea876655f5bba14f9f07132769687975 Binary files /dev/null and b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/train-labels-idx1-ubyte differ diff --git a/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/train-labels-idx1-ubyte.gz b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/train-labels-idx1-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..371f432561ca8ae0a862cd522da2fcf0a94101a8 --- /dev/null +++ b/PF-FMNIST/temp/f-mnist/FashionMNIST/raw/train-labels-idx1-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a04f17134ac03560a47e3764e11b92fc97de4d1bfaf8ba1a3aa29af54cc90845 +size 29515 diff --git a/PF-FMNIST/temp/tensorboard/0506-0811/events.out.tfevents.1714983096.104-171-202-108.2480553.0 b/PF-FMNIST/temp/tensorboard/0506-0811/events.out.tfevents.1714983096.104-171-202-108.2480553.0 new file mode 100644 index 0000000000000000000000000000000000000000..979bb5d44860987c173b2cc786bb88723b9abc28 --- /dev/null +++ b/PF-FMNIST/temp/tensorboard/0506-0811/events.out.tfevents.1714983096.104-171-202-108.2480553.0 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d43e20ac87229fbc672df303b8e31b4cef2b7cbb1e6d8644fb55a342fb49cd71 +size 229626 diff --git a/PF-KMNIST/.hydra/config.yaml b/PF-KMNIST/.hydra/config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b2cf5088631d3989cb65ccc877d4bf9b79e952cd --- /dev/null +++ b/PF-KMNIST/.hydra/config.yaml @@ -0,0 +1,51 @@ +dataset: + dataset: KMNIST + image_size: 32 + channels: 1 +sample: + method: ${method} + model_path: YOUR PATH of pretrained ckpt + image_output_path: out + batch_size: 5 + total_num: 100 +work_dir: ${hydra:runtime.cwd} +method: F-PNDM +sample_speed: 50 +seed: 42 +model: + _target_: src.model.scoresde.ddpm.DDPM + nf: 128 + ch_mult: + - 1 + - 2 + - 2 + - 2 + num_res_blocks: 2 + attn_resolutions: + - 16 + dropout: 0.1 + num_channels: 1 + resamp_with_conv: true + image_size: 32 + conditional: true + centered: true +scheduler: + _target_: src.trainer.scheduler.Schedule + beta_start: 0.0001 + beta_end: 0.02 + diffusion_step: 1000 +train: + optim_cfg: + weight_decay: 0.0 + optimizer: adam + lr: 0.0002 + beta1: 0.9 + amsgrad: false + eps: 1.0e-08 + grad_clip: 1.0 + epochs: 100 + ema_rate: 0.9999 + use_ema: true + batch_size: 1024 + num_workers: 6 + save_path: ./save_ckpt diff --git a/PF-KMNIST/.hydra/hydra.yaml b/PF-KMNIST/.hydra/hydra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a963169ce0a3b61444580f7b11bfa3093b13040d --- /dev/null +++ b/PF-KMNIST/.hydra/hydra.yaml @@ -0,0 +1,172 @@ +hydra: + run: + dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S} + sweep: + dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S} + subdir: ${hydra.job.num} + launcher: + _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher + sweeper: + _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper + max_batch_size: null + params: null + help: + app_name: ${hydra.job.name} + header: '${hydra.help.app_name} is powered by Hydra. + + ' + footer: 'Powered by Hydra (https://hydra.cc) + + Use --hydra-help to view Hydra specific help + + ' + template: '${hydra.help.header} + + == Configuration groups == + + Compose your configuration from those groups (group=option) + + + $APP_CONFIG_GROUPS + + + == Config == + + Override anything in the config (foo.bar=value) + + + $CONFIG + + + ${hydra.help.footer} + + ' + hydra_help: + template: 'Hydra (${hydra.runtime.version}) + + See https://hydra.cc for more info. + + + == Flags == + + $FLAGS_HELP + + + == Configuration groups == + + Compose your configuration from those groups (For example, append hydra/job_logging=disabled + to command line) + + + $HYDRA_CONFIG_GROUPS + + + Use ''--cfg hydra'' to Show the Hydra config. + + ' + hydra_help: ??? + hydra_logging: + version: 1 + formatters: + colorlog: + (): colorlog.ColoredFormatter + format: '[%(cyan)s%(asctime)s%(reset)s][%(purple)sHYDRA%(reset)s] %(message)s' + handlers: + console: + class: logging.StreamHandler + formatter: colorlog + stream: ext://sys.stdout + root: + level: INFO + handlers: + - console + disable_existing_loggers: false + job_logging: + version: 1 + formatters: + simple: + format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s' + colorlog: + (): colorlog.ColoredFormatter + format: '[%(cyan)s%(asctime)s%(reset)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s] + - %(message)s' + log_colors: + DEBUG: purple + INFO: green + WARNING: yellow + ERROR: red + CRITICAL: red + handlers: + console: + class: logging.StreamHandler + formatter: colorlog + stream: ext://sys.stdout + file: + class: logging.FileHandler + formatter: simple + filename: ${hydra.job.name}.log + root: + level: INFO + handlers: + - console + - file + disable_existing_loggers: false + env: {} + mode: RUN + searchpath: [] + callbacks: {} + output_subdir: .hydra + overrides: + hydra: + - hydra.mode=RUN + task: + - train=optim + - dataset.dataset=KMNIST + - model=PF + - train.batch_size=1024 + job: + name: run + chdir: null + override_dirname: dataset.dataset=KMNIST,model=PF,train.batch_size=1024,train=optim + id: ??? + num: ??? + config_name: config + env_set: {} + env_copy: [] + config: + override_dirname: + kv_sep: '=' + item_sep: ',' + exclude_keys: [] + runtime: + version: 1.3.2 + version_base: '1.1' + cwd: /home/ubuntu/derek-240306/jxu/PNDM + config_sources: + - path: hydra.conf + schema: pkg + provider: hydra + - path: /home/ubuntu/derek-240306/jxu/PNDM/cfg + schema: file + provider: main + - path: hydra_plugins.hydra_colorlog.conf + schema: pkg + provider: hydra-colorlog + - path: '' + schema: structured + provider: schema + output_dir: /home/ubuntu/derek-240306/jxu/PNDM/outputs/2024-05-06/09-45-30 + choices: + train: optim + scheduler: schedule + model: PF + hydra/env: default + hydra/callbacks: null + hydra/job_logging: colorlog + hydra/hydra_logging: colorlog + hydra/hydra_help: default + hydra/help: default + hydra/sweeper: basic + hydra/launcher: basic + hydra/output: default + verbose: false diff --git a/PF-KMNIST/.hydra/overrides.yaml b/PF-KMNIST/.hydra/overrides.yaml new file mode 100644 index 0000000000000000000000000000000000000000..cdde9720ca5ad23e0e648d8a61484c8a7edef75f --- /dev/null +++ b/PF-KMNIST/.hydra/overrides.yaml @@ -0,0 +1,4 @@ +- train=optim +- dataset.dataset=KMNIST +- model=PF +- train.batch_size=1024 diff --git a/PF-KMNIST/run.log b/PF-KMNIST/run.log new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/PF-KMNIST/save_ckpt/ema.ckpt b/PF-KMNIST/save_ckpt/ema.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..8956a6294fb1d0c9d3c818faeae35ccf567fad1f --- /dev/null +++ b/PF-KMNIST/save_ckpt/ema.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d027ad48cdd71242145597580423f3ae3f44d7fa96658bf960a242eef38a8126 +size 140934762 diff --git a/PF-KMNIST/save_ckpt/train.ckpt b/PF-KMNIST/save_ckpt/train.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..2d72bf35dda3f53d3441a0ce66eaec5bc218df93 --- /dev/null +++ b/PF-KMNIST/save_ckpt/train.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ece193bea3d457125da2eeee99069d0c735aa6f7aacf74e4dc8858bf9f65cae7 +size 422893778 diff --git a/PF-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte b/PF-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..280154be77fdf4b14b1c0a02e0dabc29d44e0813 --- /dev/null +++ b/PF-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76fbd229ce87db80dd281af5e6670de4ad0e42fb30a7bd643972994c47c1f42e +size 7840016 diff --git a/PF-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte.gz b/PF-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..9ca461a9a63184f814e707049835c7faea20be83 --- /dev/null +++ b/PF-KMNIST/temp/kmnist/KMNIST/raw/t10k-images-idx3-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edd7a857845ad6bb1d0ba43fe7e794d164fe2dce499a1694695a792adfac43c5 +size 3041136 diff --git a/PF-KMNIST/temp/kmnist/KMNIST/raw/t10k-labels-idx1-ubyte b/PF-KMNIST/temp/kmnist/KMNIST/raw/t10k-labels-idx1-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..6e9269c40e2642f2ac5bda1536e4a56c582e5be1 Binary files /dev/null and b/PF-KMNIST/temp/kmnist/KMNIST/raw/t10k-labels-idx1-ubyte differ diff --git a/PF-KMNIST/temp/kmnist/KMNIST/raw/t10k-labels-idx1-ubyte.gz b/PF-KMNIST/temp/kmnist/KMNIST/raw/t10k-labels-idx1-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..3f35e8c08f0ca409d2e9d077f87cbc23189363b6 --- /dev/null +++ b/PF-KMNIST/temp/kmnist/KMNIST/raw/t10k-labels-idx1-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20bb9a0ef54c7db3efc55a92eef5582c109615df22683c380526788f98e42a1c +size 5120 diff --git a/PF-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte b/PF-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..a7fd209a6ce1997e1b2c8dc6b072225c86e6aeb0 --- /dev/null +++ b/PF-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7112ba9ec422d98de4885262d4a4dff14cc4fefb81c11ace8bf563a8255df5c3 +size 47040016 diff --git a/PF-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte.gz b/PF-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..5f2ebfb88c8366a57afbb5377df97f32a49de070 --- /dev/null +++ b/PF-KMNIST/temp/kmnist/KMNIST/raw/train-images-idx3-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51467d22d8cc72929e2a028a0428f2086b092bb31cfb79c69cc0a90ce135fde4 +size 18165135 diff --git a/PF-KMNIST/temp/kmnist/KMNIST/raw/train-labels-idx1-ubyte b/PF-KMNIST/temp/kmnist/KMNIST/raw/train-labels-idx1-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..180cd088d65c3b75d97d046ad75476d1176666e0 Binary files /dev/null and b/PF-KMNIST/temp/kmnist/KMNIST/raw/train-labels-idx1-ubyte differ diff --git a/PF-KMNIST/temp/kmnist/KMNIST/raw/train-labels-idx1-ubyte.gz b/PF-KMNIST/temp/kmnist/KMNIST/raw/train-labels-idx1-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..d3b335590b54046e2ede1ee95e2edd0bbfd2009b --- /dev/null +++ b/PF-KMNIST/temp/kmnist/KMNIST/raw/train-labels-idx1-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e38f9ebcd0f3ebcdec7fc8eabdcdaef93bb0df8ea12bee65224341c8183d8e17 +size 29497 diff --git a/PF-KMNIST/temp/tensorboard/0506-0945/events.out.tfevents.1714988757.104-171-202-108.2530066.0 b/PF-KMNIST/temp/tensorboard/0506-0945/events.out.tfevents.1714988757.104-171-202-108.2530066.0 new file mode 100644 index 0000000000000000000000000000000000000000..dc8bb5b8f8738e11bc37dca38da646b0c4652c25 --- /dev/null +++ b/PF-KMNIST/temp/tensorboard/0506-0945/events.out.tfevents.1714988757.104-171-202-108.2530066.0 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a91a1ae739d19841c9497241fceefbb91693f4bdfcfd9ee1a7cebb22f882fea5 +size 230660 diff --git a/PF-MNIST/.hydra/config.yaml b/PF-MNIST/.hydra/config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d02dae7411a22f3f3426ef8473d589010f03941f --- /dev/null +++ b/PF-MNIST/.hydra/config.yaml @@ -0,0 +1,51 @@ +dataset: + dataset: MNIST + image_size: 32 + channels: 1 +sample: + method: ${method} + model_path: YOUR PATH of pretrained ckpt + image_output_path: out + batch_size: 5 + total_num: 100 +work_dir: ${hydra:runtime.cwd} +method: F-PNDM +sample_speed: 50 +seed: 42 +model: + _target_: src.model.scoresde.ddpm.DDPM + nf: 128 + ch_mult: + - 1 + - 2 + - 2 + - 2 + num_res_blocks: 2 + attn_resolutions: + - 16 + dropout: 0.1 + num_channels: 1 + resamp_with_conv: true + image_size: 32 + conditional: true + centered: true +scheduler: + _target_: src.trainer.scheduler.Schedule + beta_start: 0.0001 + beta_end: 0.02 + diffusion_step: 1000 +train: + optim_cfg: + weight_decay: 0.0 + optimizer: adam + lr: 0.0002 + beta1: 0.9 + amsgrad: false + eps: 1.0e-08 + grad_clip: 1.0 + epochs: 100 + ema_rate: 0.9999 + use_ema: true + batch_size: 1024 + num_workers: 6 + save_path: ./save_ckpt diff --git a/PF-MNIST/.hydra/hydra.yaml b/PF-MNIST/.hydra/hydra.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2417b62bdd5cd34ea525bebf61646bd8d14e83ca --- /dev/null +++ b/PF-MNIST/.hydra/hydra.yaml @@ -0,0 +1,171 @@ +hydra: + run: + dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S} + sweep: + dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S} + subdir: ${hydra.job.num} + launcher: + _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher + sweeper: + _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper + max_batch_size: null + params: null + help: + app_name: ${hydra.job.name} + header: '${hydra.help.app_name} is powered by Hydra. + + ' + footer: 'Powered by Hydra (https://hydra.cc) + + Use --hydra-help to view Hydra specific help + + ' + template: '${hydra.help.header} + + == Configuration groups == + + Compose your configuration from those groups (group=option) + + + $APP_CONFIG_GROUPS + + + == Config == + + Override anything in the config (foo.bar=value) + + + $CONFIG + + + ${hydra.help.footer} + + ' + hydra_help: + template: 'Hydra (${hydra.runtime.version}) + + See https://hydra.cc for more info. + + + == Flags == + + $FLAGS_HELP + + + == Configuration groups == + + Compose your configuration from those groups (For example, append hydra/job_logging=disabled + to command line) + + + $HYDRA_CONFIG_GROUPS + + + Use ''--cfg hydra'' to Show the Hydra config. + + ' + hydra_help: ??? + hydra_logging: + version: 1 + formatters: + colorlog: + (): colorlog.ColoredFormatter + format: '[%(cyan)s%(asctime)s%(reset)s][%(purple)sHYDRA%(reset)s] %(message)s' + handlers: + console: + class: logging.StreamHandler + formatter: colorlog + stream: ext://sys.stdout + root: + level: INFO + handlers: + - console + disable_existing_loggers: false + job_logging: + version: 1 + formatters: + simple: + format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s' + colorlog: + (): colorlog.ColoredFormatter + format: '[%(cyan)s%(asctime)s%(reset)s][%(blue)s%(name)s%(reset)s][%(log_color)s%(levelname)s%(reset)s] + - %(message)s' + log_colors: + DEBUG: purple + INFO: green + WARNING: yellow + ERROR: red + CRITICAL: red + handlers: + console: + class: logging.StreamHandler + formatter: colorlog + stream: ext://sys.stdout + file: + class: logging.FileHandler + formatter: simple + filename: ${hydra.job.name}.log + root: + level: INFO + handlers: + - console + - file + disable_existing_loggers: false + env: {} + mode: RUN + searchpath: [] + callbacks: {} + output_subdir: .hydra + overrides: + hydra: + - hydra.mode=RUN + task: + - train=optim + - model=PF + - train.batch_size=1024 + job: + name: run + chdir: null + override_dirname: model=PF,train.batch_size=1024,train=optim + id: ??? + num: ??? + config_name: config + env_set: {} + env_copy: [] + config: + override_dirname: + kv_sep: '=' + item_sep: ',' + exclude_keys: [] + runtime: + version: 1.3.2 + version_base: '1.1' + cwd: /home/ubuntu/derek-240306/jxu/PNDM + config_sources: + - path: hydra.conf + schema: pkg + provider: hydra + - path: /home/ubuntu/derek-240306/jxu/PNDM/cfg + schema: file + provider: main + - path: hydra_plugins.hydra_colorlog.conf + schema: pkg + provider: hydra-colorlog + - path: '' + schema: structured + provider: schema + output_dir: /home/ubuntu/derek-240306/jxu/PNDM/outputs/2024-05-06/11-20-02 + choices: + train: optim + scheduler: schedule + model: PF + hydra/env: default + hydra/callbacks: null + hydra/job_logging: colorlog + hydra/hydra_logging: colorlog + hydra/hydra_help: default + hydra/help: default + hydra/sweeper: basic + hydra/launcher: basic + hydra/output: default + verbose: false diff --git a/PF-MNIST/.hydra/overrides.yaml b/PF-MNIST/.hydra/overrides.yaml new file mode 100644 index 0000000000000000000000000000000000000000..98c76d1470b2fcb31835c4ae12fe73ee2b4ecea0 --- /dev/null +++ b/PF-MNIST/.hydra/overrides.yaml @@ -0,0 +1,3 @@ +- train=optim +- model=PF +- train.batch_size=1024 diff --git a/PF-MNIST/run.log b/PF-MNIST/run.log new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/PF-MNIST/save_ckpt/ema.ckpt b/PF-MNIST/save_ckpt/ema.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..10055dc3660f554f31d18b8796921f2f0929d4e3 --- /dev/null +++ b/PF-MNIST/save_ckpt/ema.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ba79f69d2f4ed365d36857213d1658b7bd4f54696447638aed098ab284c20db +size 140934762 diff --git a/PF-MNIST/save_ckpt/train.ckpt b/PF-MNIST/save_ckpt/train.ckpt new file mode 100644 index 0000000000000000000000000000000000000000..4becfdcfb933121c10aedffaf3c919ed1d88b442 --- /dev/null +++ b/PF-MNIST/save_ckpt/train.ckpt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5a67337ec70b3f8da0ebcc3e6f778b7451a853c21e865d3022ed858e6031608 +size 422893778 diff --git a/PF-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte b/PF-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..d026debec174b65df0cd4d448668d0c744497faa --- /dev/null +++ b/PF-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0fa7898d509279e482958e8ce81c8e77db3f2f8254e26661ceb7762c4d494ce7 +size 7840016 diff --git a/PF-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte.gz b/PF-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..aa17dfe485689242a90be276702dcadd17d406f4 --- /dev/null +++ b/PF-MNIST/temp/mnist/MNIST/raw/t10k-images-idx3-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d422c7b0a1c1c79245a5bcf07fe86e33eeafee792b84584aec276f5a2dbc4e6 +size 1648877 diff --git a/PF-MNIST/temp/mnist/MNIST/raw/t10k-labels-idx1-ubyte b/PF-MNIST/temp/mnist/MNIST/raw/t10k-labels-idx1-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..d1c3a970612bbd2df47a3c0697f82bd394abc450 Binary files /dev/null and b/PF-MNIST/temp/mnist/MNIST/raw/t10k-labels-idx1-ubyte differ diff --git a/PF-MNIST/temp/mnist/MNIST/raw/t10k-labels-idx1-ubyte.gz b/PF-MNIST/temp/mnist/MNIST/raw/t10k-labels-idx1-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..d1995bebe8e5b3faeaae99149ce4eb7a68c5764d --- /dev/null +++ b/PF-MNIST/temp/mnist/MNIST/raw/t10k-labels-idx1-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f7ae60f92e00ec6debd23a6088c31dbd2371eca3ffa0defaefb259924204aec6 +size 4542 diff --git a/PF-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte b/PF-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..6f2c0cdbab4d9d6c202cefd16ea17c10b9e783e2 --- /dev/null +++ b/PF-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba891046e6505d7aadcbbe25680a0738ad16aec93bde7f9b65e87a2fc25776db +size 47040016 diff --git a/PF-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte.gz b/PF-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..9e9852c14333d6b633709fec2c6df84941243c9d --- /dev/null +++ b/PF-MNIST/temp/mnist/MNIST/raw/train-images-idx3-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:440fcabf73cc546fa21475e81ea370265605f56be210a4024d2ca8f203523609 +size 9912422 diff --git a/PF-MNIST/temp/mnist/MNIST/raw/train-labels-idx1-ubyte b/PF-MNIST/temp/mnist/MNIST/raw/train-labels-idx1-ubyte new file mode 100644 index 0000000000000000000000000000000000000000..d6b4c5db3b52063d543fb397aede09aba0dc5234 Binary files /dev/null and b/PF-MNIST/temp/mnist/MNIST/raw/train-labels-idx1-ubyte differ diff --git a/PF-MNIST/temp/mnist/MNIST/raw/train-labels-idx1-ubyte.gz b/PF-MNIST/temp/mnist/MNIST/raw/train-labels-idx1-ubyte.gz new file mode 100644 index 0000000000000000000000000000000000000000..a7ebf9b5b685e9014530844158807071ae717f7f --- /dev/null +++ b/PF-MNIST/temp/mnist/MNIST/raw/train-labels-idx1-ubyte.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3552534a0a558bbed6aed32b30c495cca23d567ec52cac8be1a0730e8010255c +size 28881 diff --git a/PF-MNIST/temp/tensorboard/0506-1120/events.out.tfevents.1714994407.104-171-202-108.2579119.0 b/PF-MNIST/temp/tensorboard/0506-1120/events.out.tfevents.1714994407.104-171-202-108.2579119.0 new file mode 100644 index 0000000000000000000000000000000000000000..f05282160d7e53c66f2e9f927c0792d19f4aeaac --- /dev/null +++ b/PF-MNIST/temp/tensorboard/0506-1120/events.out.tfevents.1714994407.104-171-202-108.2579119.0 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ced5545554b1ead61bcaa1473652f7d48d7a3194770e0ebadbbb57a6316197a5 +size 230021