Skip to content

Instantly share code, notes, and snippets.

@chvvkumar
Last active October 12, 2024 18:25
Show Gist options
  • Select an option

  • Save chvvkumar/406c3c2726081159b8101562494f7a36 to your computer and use it in GitHub Desktop.

Select an option

Save chvvkumar/406c3c2726081159b8101562494f7a36 to your computer and use it in GitHub Desktop.
**Install**
git clone https://github.com/gordtulloch/mlCloudDetect.git
cd mlCloudDetect
python3 -m venv .venv
source .venv/bin/activate # in Linux
pip3 install -r requirements.txt
sudo apt-get update && apt-get install ffmpeg libsm6 libxext6
**Data layout**
kumar@ubuntu:~$ tree -d
.
├── data
│ └── train
│ ├── Cloudy
│ ├── CloudyandRainy
│ ├── Moony
│ ├── NotCloudy
│ └── Rainy
└── mlCloudDetect
└── __pycache__
**INI File**
kumar@ubuntu:~/mlCloudDetect$ cat mlCloudDetect.ini
[DEFAULT]
latitude =
longitude =
allskycam = INDI-ALLSKY
allskycamno = 1
allskyfile = /home/kumar/mlCloudDetect/latest.jpg
pending = 10
trainfolder = /home/kumar/data/train
clearmsg = Roof Open
cloudmsg = Roof Closed
cloudpendingmsg = Close Pending
clearpendingmsg = Open Pending
kerasmodel = mlCloudDetect.keras
daytime = -12
statusfile = roofStatus.txt
**Train**
trainMlCloudDetect.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment