mirror of
https://github.com/c-sooyoung/bo-ptycho.git
synced 2026-09-17 19:29:07 +09:00
Compare commits
2
Commits
a835afa902
...
Si-1.2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a79b49611 | ||
|
|
f96018ed3c |
@@ -1,8 +1,13 @@
|
|||||||
- tag publish version for Si reconstruction
|
TODO:
|
||||||
|
|
||||||
- Clean up BO states
|
- Clean up BO states
|
||||||
|
- unify `BOEngine.__init__()`
|
||||||
- BO train_x/y transfer between engines for single job
|
- BO train_x/y transfer between engines for single job
|
||||||
- multi-GPU dispatcher
|
- multi-GPU dispatcher
|
||||||
- template job sequences / yamls
|
- template job sequences / yamls
|
||||||
|
- mobo
|
||||||
- metric() function(s) for each ptycho engine
|
- metric() function(s) for each ptycho engine
|
||||||
|
- FRC score
|
||||||
- fold_slice: load diffractions / hdf5 files; change only param per job
|
- fold_slice: load diffractions / hdf5 files; change only param per job
|
||||||
- Possibly restructure PtychoEngine.__init__() to load data but not params
|
- restructure `FoldSlicePtychoEngine.__init__()` to load data but not params
|
||||||
|
- write new `prepare_data.m`
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -81,9 +81,9 @@ class FoldSlicePtychoEngine(PtychoEngine):
|
|||||||
self._output = loadmat(mat_path)
|
self._output = loadmat(mat_path)
|
||||||
|
|
||||||
log_fourier_error = self._log_fourier_metric()
|
log_fourier_error = self._log_fourier_metric()
|
||||||
os.makedirs(os.path.join(self.config['io']['result_dir'], "mat"), exist_ok=True)
|
# os.makedirs(os.path.join(self.config['io']['result_dir'], "mat"), exist_ok=True)
|
||||||
os.makedirs(os.path.join(self.config['io']['result_dir'], "tiff"), exist_ok=True)
|
os.makedirs(os.path.join(self.config['io']['result_dir'], "tiff"), exist_ok=True)
|
||||||
shutil.copy(mat_path, os.path.join(self.config['io']['result_dir'], "mat", f"{log_fourier_error:.4f}_{run_id}.mat"))
|
# shutil.copy(mat_path, os.path.join(self.config['io']['result_dir'], "mat", f"{log_fourier_error:.4f}_{run_id}.mat")) # saving .mat files takes a lot of space (expect 20+ GB for 64*64 scan size, 300 iterations)
|
||||||
shutil.copy(image_path, os.path.join(self.config['io']['result_dir'], "tiff", f"{log_fourier_error:.4f}_{run_id}.tiff"))
|
shutil.copy(image_path, os.path.join(self.config['io']['result_dir'], "tiff", f"{log_fourier_error:.4f}_{run_id}.tiff"))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user