Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed code for running #2

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,9 @@ poetry.toml
pyrightconfig.json

# End of https://www.toptal.com/developers/gitignore/api/python



outputs/
data/
param_data/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ git clone https://github.com/NUS-HPC-AI-Lab/Neural-Network-Diffusion.git
2. Create a new Conda environment and activate it:

```
conda env create -f environment.yaml
conda env create -f environment.yml
conda activate pdiff
```

Expand Down
4 changes: 2 additions & 2 deletions cifar100_resnet18_k200.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
python task_training # get the model data for training p-diff
python train_p_diff --task cifar100 --system ae_ddpm
python task_training.py # get the model data for training p-diff
python train_p_diff.py task=cifar100 system=ae_ddpm
2 changes: 1 addition & 1 deletion configs/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ defaults:

device:
cuda_visible_devices: "0,1,2,3,4,5,6"
id: 1
id: 0
cuda: cuda:${device.id}

load_system_checkpoint:
Expand Down
4 changes: 2 additions & 2 deletions core/system/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
from .encoder import *
from .vae import VAESystem
from .ae_ddpm import AE_DDPM
from .explore import Explore
# from .explore import Explore

systems = {
'encoder': EncoderSystem,
'ddpm': DDPM,
'vae': VAESystem,
'ae_ddpm': AE_DDPM,
'explore': Explore,
# 'explore': Explore,
}