4ch-yolov8
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.0%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: scksh
- License: agpl-3.0
- Language: Python
- Default Branch: main
- Size: 1.94 MB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
- Releases: 0
Metadata Files
README.md
** 3
4.**
4ch-YOLOv8
**4ch-YOLOv8** GOP 6 RGB + IR() 4 YOLOv8 .
RGB *IR() 4 * .
Key Modification
YOLOv8
- YOLOv8 Conv layer(conv1) 34
- conv1 , pretrained weights
Project Environment
- OS: Ubuntu 25.04
- Python: 3.10
- Pytorch:2.2.0
- CUDA:12.1
- GPU: NVIDIA TITAN Xp / A100 (Colab)
Colab Notebook
Getting Started
Installation
- Clone this repo:
bash git clone https://github.com/scksh/4ch-YOLOv8 cd 4ch-YOLOv8 - install libraries:
bash pip install -r requirements.txt pip install torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cu126 pip install -e ../4ch-YOLOv8
Download Dataset (HuggingFace)
- You can download the
RGBIRdataset directly from Hugging Face Hub using the following Python code: ```python from huggingfacehub import hfhub_download import zipfile
Download dataset
zippath = hfhubdownload( repoid="SUMMERZETT/RGBIR", filename="RpGBIR.zip", repo_type="dataset" )
with zipfile.ZipFile(zippath, 'r') as zipref: zip_ref.extractall("./datasets") ```
Download Initial weight
- To download the Initial weight for 4ch-YOLOv8 model from Hugging Face, use the following code: ```python from huggingfacehub import hfhub_download
Download pretrained model
modelpath = hfhubdownload( repoid="SUMMERZETT/YOLOv8pretrained", filename="yolov8x4chpretrained.pt", repotype="model", localdir="./model", localdirusesymlinks=False ) ```
Download Pre-trained model
- To download the pretrained 4ch-YOLOv8 model from Hugging Face, use the following code: ```python from huggingfacehub import hfhub_download
Download pretrained model
modelpath = hfhubdownload( repoid="SUMMERZETT/4ch-YOLOv8", filename="4ch-YOLOv8.pt", repotype="model", localdir="./pretrained", localdiruse_symlinks=False ) ```
Train
- Train a model:
bash export KMP_DUPLICATE_LIB_OK=TRUE yolo task=detect train model=model/yolov8x_4ch_pretrained.pt data=ultralytics/cfg/datasets/RGBIR.yaml workers=2 epochs=1 batch=8 cos_lr=True
Prediction
- Predict the results:
bash python predict.py --weights pretrained/4ch-YOLOv8.pt --source_rgb datasets/RGBIR/images/rgb_val --source_ir datasets/RGBIR/images/thermal --project runs/predict --name 4ch-YOLOv8_pred --imgsz 640 --conf 0.4 --iou 0.5 --device cuda
Citation
If you use this code for your research, please cite our papers.
@misc{thermalcyclegan2025,
title={4ch-YOLOv8: Object detection using 4channel images contain RGB+IR},
author={Cha, Hyunwoo and Do, Jihoon and Gang, Nayoon and Kim, Seunghwan and Lee, Haerin and Yoon, Youngbin},
year={2025},
howpublished={\url{https://github.com/scksh/4ch-YOLOv8}},
note={GitHub repository}
}
Acknowledgments
Our code is inspired by - ultralytics
Owner
- Name: SeungHwan Kim
- Login: scksh
- Kind: user
- Repositories: 1
- Profile: https://github.com/scksh
GitHub Events
Total
- Delete event: 1
- Issue comment event: 6
- Push event: 36
- Pull request event: 2
- Create event: 5
Last Year
- Delete event: 1
- Issue comment event: 6
- Push event: 36
- Pull request event: 2
- Create event: 5
Dependencies
- actions/checkout v4 composite
- actions/setup-python v5 composite
- astral-sh/setup-uv v6 composite
- codecov/codecov-action v5 composite
- conda-incubator/setup-miniconda v3 composite
- eviden-actions/clean-self-hosted-runner v1 composite
- slackapi/slack-github-action v2.1.0 composite
- ultralytics/actions/cleanup-disk main composite
- contributor-assistant/github-action v2.6.1 composite
- actions/checkout v4 composite
- docker/login-action v3 composite
- docker/setup-buildx-action v3 composite
- slackapi/slack-github-action v2.1.0 composite
- ultralytics/actions/cleanup-disk main composite
- ultralytics/actions/retry main composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- astral-sh/setup-uv v6 composite
- ultralytics/actions main composite
- actions/checkout v4 composite
- ultralytics/actions/retry main composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- actions/checkout v4 composite
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/setup-python v5 composite
- actions/upload-artifact v4 composite
- astral-sh/setup-uv v6 composite
- pypa/gh-action-pypi-publish release/v1 composite
- slackapi/slack-github-action v2.1.0 composite
- actions/stale v9 composite
- pytorch/pytorch 2.7.0-cuda12.6-cudnn9-runtime build
- matplotlib >=3.3.0
- numpy >=1.23.0
- opencv-python >=4.6.0
- pandas >=1.1.4
- pillow >=7.1.2
- psutil *
- py-cpuinfo *
- pyyaml >=5.3.1
- requests >=2.23.0
- scipy >=1.4.1
- torch >=1.8.0
- torch >=1.8.0,!=2.4.0; sys_platform == 'win32'
- torchvision >=0.9.0
- tqdm >=4.64.0
- ultralytics-thop >=2.0.0