EDM_Custom
January 14, 2025 ยท View on GitHub
This is the implementation of Controlled Diffusion Network (CODNet).
How to Run
1. Clone the Repository
git clone https://github.com/KaziFahmi/EDM_Custom.git
2. Get a Wandb API Key
Go to wandb.ai/site and sign up. Upon logging into your account, you should get access to the API key for your account.
3. Train the EDM
Open the sbdd-diffusion.ipynb file.
In the first cell:
- Insert your Wandb API key into the 'wandb_key' variable.
- Replace
with the appropriate file address. - Ensure that the save_model variable is set to True to save the model weights.
- Run all the cells to train the EDM. The weights of the trained model should appear as the training progresses.
4. Train the Controlled EDM
- Open the sbdd-controlled-diffusion.ipynb file.
- In the first cell:
- Insert your Wandb API key into the wandb_key variable.
- Specify the path to the pretrained EDM weights in the pretrained_FDD_path variable.
- Run all the cells to train the Controlled EDM.
Heads Up
The process described above may not function smoothly if the .ipynb files are not run in Kaggle's environment.