-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
DSilva27
committed
Mar 16, 2023
1 parent
f2ffedd
commit d868e56
Showing
2 changed files
with
66 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
=========== | ||
cryo_em_SBI | ||
=========== | ||
|
||
.. start-badges | ||
.. list-table:: | ||
:stub-columns: 1 | ||
|
||
* - tests | ||
- | |githubactions| | ||
|
||
|
||
.. |githubactions| image:: https://github.com/DSilva27/cryo_em_SBI/actions/workflows/python-package.yml/badge.svg?branch=iss6 | ||
:alt: Testing Status | ||
:target: https://github.com/DSilva27/cryo_em_SBI/actions | ||
|
||
Collaborators | ||
------------- | ||
|
||
David Silva-Sánchez, Lars Dingeldein, Roberto Covino, Pilar Cossio | ||
|
||
Dependencies | ||
------------ | ||
|
||
1. Lampe | ||
2. SciPy | ||
3. NumPy | ||
4. PyTorch | ||
5. json | ||
|
||
Installing | ||
---------- | ||
|
||
Download this repository | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
`https://github.com/DSilva27/cryo_em_SBI.git` | ||
|
||
Install the module | ||
~~~~~~~~~~~~~~~~~~ | ||
:: | ||
python3 -m pip install . | ||
|
||
Using the code | ||
============== | ||
|
||
Generating data from command line | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. code:: bash | ||
python3 -m cryo_sbi.generate_training_set --config_file experiments/benchmark_hsp90/image_params_snr01_128.json --num_train_samples 10 --num_val_samples 10 --file_name "test1" --n_workers 24 | ||
Train posterior from command line | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. code:: bash | ||
python3 -m cryo_sbi.inference.NPE_train_without_saving \ | ||
--image_config_file experiments/benchmark_hsp90/image_params_training.json \ | ||
--train_config_file experiments/benchmark_hsp90/resnet18_encoder.json\ | ||
--epochs 100 \ | ||
--estimator_file experiments/benchmark_hsp90/posterior_hsp90.estimator \ | ||
--loss_file experiments/benchmark_hsp90/posterior_hsp90.loss |