recognition-of-underwater-leopard-coral-grouper
https://github.com/wilkinszhang/recognition-of-underwater-leopard-coral-grouper
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found 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 (15.5%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: wilkinszhang
- License: agpl-3.0
- Language: Python
- Default Branch: master
- Size: 47.7 MB
Statistics
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
PLGAT: Underwater Plectropomus leopardus Recognition Using Global Attention Mechanism and Transfer Learning
This is the official code repository for the paper.
Project Description
This repository contains the source code for our method, as well as some code for generating charts. The logical structure of our code is as follows:
"runs" folder stores the results of training and testing.
"ultralytics" folder contains the source code for the model.
"yolo_cam" folder includes a package for visualizing attention.
"confusionmm.py" file is the source code for generating confusion matrices.
"mytrain.py" file is the code for training the model.
"predict.py" file is the source code for testing the model.
"visualization_attention2.py" file is the code for visualizing attention.
Installation Instructions
Step 1: Set up the environment
Create a conda environment using the following command:
shell
conda create --name <env> --file requirements.txt
Step 2: Download the dataset Here are the download links for the PLRD dataset:
[Google Drive](https://drive.google.com/file/d/1SEARTtwYwROGV1U8RNbmGqaVnAc6cMpf/view?usp=drive_link)
[Baidu Netdisk](https://pan.baidu.com/s/11uexb77pWXRBL_E3WhTzKQ?pwd=s7ee )提取码:s7ee
Usage Instructions
Step 3: Train and test the model
To train the model, run the following command:
shell
python mytrain.py
To test the model, run the following command:
shell
python mypredict.py
Example
Here is an example of how to use the PLGAT model for underwater Plectropomus leopardus recognition:
```python from ultralytics import YOLO
Load a model
model = YOLO('/home/whut4/zwj/ultralytics/runs/detect/GAM-Enhanced/weights/best.pt') # load a custom model
Validate the model
metrics = model.predict(source='/home/whut4/zwj/0426underwater/dataset2 copy 8/test/images/VID20230414150420-0003.jpg',save=True,savetxt=True,saveconf=True,name='example') # no arguments needed, dataset and settings remembered
```

Contribution Guidelines
Thank you for considering contributing to our project! We welcome any contributions that can help improve the project and make it better. To ensure a smooth collaboration, please follow the guidelines below.
Reporting Issues
To report an issue, please follow these steps:
- Go to the Issue Tracker on our GitHub repository.
- Click on the "New Issue" button.
- Provide a descriptive title for the issue.
- Clearly describe the problem, including any relevant information or steps to reproduce it.
- Add appropriate labels or tags to categorize the issue (e.g., bug, enhancement, documentation).
- Submit the issue.
Acknowledgements
The work described in this paper was partially supported by the National Key Research and Development Program of China (2022YFD2400501), the Hainan Yazhou Bay Seed Laboratory (B21HJ0110) and Hainan Provincial Natural Science Foundation of China (321QN278).
Contact Information
Please contact us via junweizhou@msn.com
Owner
- Login: wilkinszhang
- Kind: user
- Repositories: 1
- Profile: https://github.com/wilkinszhang
Citation (CITATION.cff)
cff-version: 1.2.0
preferred-citation:
type: software
message: If you use this software, please cite it as below.
authors:
- family-names: Jocher
given-names: Glenn
orcid: "https://orcid.org/0000-0001-5950-6979"
- family-names: Chaurasia
given-names: Ayush
orcid: "https://orcid.org/0000-0002-7603-6750"
- family-names: Qiu
given-names: Jing
orcid: "https://orcid.org/0000-0003-3783-7069"
title: "YOLO by Ultralytics"
version: 8.0.0
# doi: 10.5281/zenodo.3908559 # TODO
date-released: 2023-1-10
license: AGPL-3.0
url: "https://github.com/ultralytics/ultralytics"