Skip to content

Commit

Permalink
DDPM model
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Shmilovich committed Jan 18, 2023
1 parent 5085f70 commit aec50cf
Show file tree
Hide file tree
Showing 11 changed files with 3,343 additions and 48 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Generative models for conditional molecular structure generation
==============================
[//]: # (Badges)
[![GitHub Actions Build Status](https://github.com/REPLACE_WITH_OWNER_ACCOUNT/molgen/workflows/CI/badge.svg)](https://github.com/REPLACE_WITH_OWNER_ACCOUNT/molgen/actions?query=workflow%3ACI)
[![GitHub Actions Build Status](https://github.com/Ferg-Lab/molgen/workflows/CI/badge.svg)](https://github.com/Ferg-Lab/molgen/actions?query=workflow%3ACI)
<!--[![codecov](https://codecov.io/gh/REPLACE_WITH_OWNER_ACCOUNT/MolGen/branch/main/graph/badge.svg)](https://codecov.io/gh/REPLACE_WITH_OWNER_ACCOUNT/MolGen/branch/main)-->


Expand All @@ -18,6 +18,7 @@ To use `molgen`, you will need an environment with the following packages:
* Python 3.7+
* [PyTorch](https://pytorch.org/get-started/locally/)
* [PyTorch Lightning](https://www.pytorchlightning.ai/)
* [Einops](https://einops.rocks/#Installation)

For running and visualizing examples:
* [NumPy](https://numpy.org/install/)
Expand Down Expand Up @@ -80,6 +81,14 @@ model.save('ADP.ckpt')
model = WGANGP.load_from_checkpoint('ADP.ckpt')
```

Supports both generators based on both Generative Adversarial Networks (GANs) and Denoising Diffusion Probabilistic Models (DDPMs). The example above uses GANs, DDPMs support an equivalent API -- for example,

```python
from molgen.models import DDPM

model = DDPM(....)
```

### Copyright

Copyright (c) 2023, Kirill Shmilovich
Expand Down
2 changes: 2 additions & 0 deletions devtools/conda-envs/test_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ dependencies:
# package dependencies
- pytorch
- pytorch-lightning
- einops
- tqdm

# Testing
- pytest
Expand Down
Loading

0 comments on commit aec50cf

Please sign in to comment.