Metadata-Version: 2.1
Name: dl-pipeline
Version: 0.0.1
Summary: A Deep Learning Pipeline
Home-page: https://github.com/mnpinto/dl_pipeline/tree/master/
Author: Miguel Pinto
Author-email: mnpinto@fc.ul.pt
License: Apache Software License 2.0
Keywords: deep learning,kaggle
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: fastcore
Requires-Dist: fastai
Requires-Dist: nbdev
Requires-Dist: efficientnet-pytorch
Requires-Dist: timm

# dl_pipeline
> A general deep learning pipeline (in construction) for kaggle competitions and other projects.


## Install

Setup with pip:

`pip install dl_pipeline`

Clone and editable setup:
```bash
git clone https://github.com/mnpinto/dl_pipeline
cd dl_pipeline
pip install -e .
```

## Rainforest Connection Species Audio Detection

```bash
#!/bin/bash
arch='densenet121'
model_name='model_0'
sample_rate=32000
n_mels=128
hop_length=640

for fold in 0 1 2 3 4
do
    echo "Training $model for fold $fold"
    kaggle_rainforest2021 --fold $fold --model_name $model_name \
        --model $arch --sample_rate $sample_rate --n_mels $n_mels \
        --hop_length $hop_length --bs 32 --head_ps 0.8 \
        --tile_width 1024 --mixup true >> log.train
done

for tw in 64 128 256
do
    echo "Generate predictions for $model with tile_width of $tw"
    kaggle_rainforest2021 --run_test true --model_name $model_name \
        --model $arch --sample_rate $sample_rate --n_mels $n_mels \
        --hop_length $hop_length --tile_width $tw \
        --save_preds true >> log.predict
done
```


