Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
DSilva27 committed Mar 16, 2023
1 parent f2ffedd commit d868e56
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 45 deletions.
45 changes: 0 additions & 45 deletions README.md

This file was deleted.

66 changes: 66 additions & 0 deletions README.rst
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

0 comments on commit d868e56

Please sign in to comment.