An open API service indexing awesome lists of open source software.

https://github.com/unshun0120/apply-federatedlearning-into-autoencoder

Apply Federated Learning into Autoencoder and its variants to train their models
https://github.com/unshun0120/apply-federatedlearning-into-autoencoder

autoencoder federated-averaging federated-learning fully-connected-autoencoder mnist pytorch

Last synced: 8 months ago
JSON representation

Apply Federated Learning into Autoencoder and its variants to train their models

Awesome Lists containing this project

README

          

# Apply Federated Learning into Autoencoder and its variants

this project is based on :
*Federated Learning*
+ https://github.com/AshwinRJ/Federated-Learning-PyTorch

*Autoencoder*
+ https://github.com/L1aoXingyu/pytorch-beginner/tree/master

---
## Before Running
1. Create a new folder called **"Dataset"** outside the downloaded folder
2. Create a new folder called **"logs"** outside the downloaded folder
3. Create a new folder called **"save_objects"** outside the downloaded folder
4. Create a new folder called **"save_models"** outside the downloaded folder
![./md_images/image](https://github.com/user-attachments/assets/bf822c39-64ac-4307-b7e5-de1071ed8988)

---
## Run
### Train (train.py include the test)
+ using CPU
```
python train.py
```
+ using GPU
```
python train.py --gpu=0
```
+ e.g. global epoch = 1, model = Convolutional Autoencoder
```
python train.py --gpu=0 --global_ep=1 --model=cnnae
```

### Test
+ using CPU
```
python test.py
```
+ using GPU
```
python test.py --gpu=0
```
+ e.g. test Autoencoder model
```
python test.py --gpu=0 --model=ae
```