VIVEK JAYARAM commited on
Commit
5b2cc7a
·
1 Parent(s): 46c2f0f

Initial commit with some structure

Browse files
cdim/noise_configs/gaussian_noise.yaml ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ name: gaussian
2
+ sigma: 0.05
cdim/noise_configs/poisson_noise_config.yaml ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ name: poisson
2
+ rate: 0.1
environment.yml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ name: cdim
2
+ channels:
3
+ - defaults
4
+ dependencies:
5
+ - python=3.11.5
6
+ prefix: /gscratch/realitylab/vjayaram/miniconda3/envs/cdim
inference.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import argparse
2
+ import os
3
+
4
+
5
+ def main(args):
6
+ os.makedirs(args.output_dir, exist_ok=True)
7
+
8
+
9
+
10
+
11
+ if __name__ == '__main__':
12
+ parser = argparse.ArgumentParser()
13
+ parser.add_argument("input_image", type=str)
14
+ parser.add_argument("T", type=int)
15
+ parser.add_argument("K", type=int)
16
+ parser.add_argument("model", type=str)
17
+ parser.add_argument("operator_config", type=str)
18
+ parser.add_argument("noise_config", type=str)
19
+ parser.add_argument("--output-dir", default=".", type=str)
20
+ main(parser.parse_args())
sample_images/ffhq_00003.png ADDED