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

https://github.com/dudeperf3ct/diamond-clarity


https://github.com/dudeperf3ct/diamond-clarity

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

## Diamond Clarity Classification

There are 2 classes present in the dataset.

classes : [0, 1] => [275, 225]. The baseline accuracy to beat will be 55%. All models should perform better than this baseline.

## Installation

```bash
docker build -t dc .
./run_container.sh
python main.py
```

Inside `main.py` change the path of model_dir as requiired to either `cnn3d`, `cnnlstm` or `cnn3dlstm` and any of the submodels.

## Notebooks

Run the notebook on colab present in `notebooks` folder.

### Training

We use a lot of SOTA approaches like OneCycleLR, AdamW, FP16 training, Stratified splits for 90%-10% train val dataset, logging to wandb, augmentations using albumentation library.

### Experiments

**CNN 3d**

- Resnet-18
- Resnet-10
- 6-layer simple cnn 3d architecture

Experiments can be tracked here : https://wandb.ai/dudeperf3ct/cnn3d

Analysis :

- We overfit the model with 3 samples, only `custom_simple_cnn3d` overfits the 3 samples of each class. Other 2 model fail to overfit.

-----

**CNN 3d + LSTM**

-----

**CNN 3d + GRU**