Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PSI-BIOM-deprecated
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stephane Chavin
PSI-BIOM-deprecated
Commits
304bda96
Commit
304bda96
authored
2 years ago
by
Stephane Chavin
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://gitlab.lis-lab.fr/stephane.chavin/psi-biom
parents
abf73e60
0d1166db
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+21
-2
21 additions, 2 deletions
README.md
with
21 additions
and
2 deletions
README.md
+
21
−
2
View file @
304bda96
...
...
@@ -33,7 +33,7 @@ python3 train.py --img IMG_SIZE --batch BATCH_SIZE --EPOCHS NB_EPOCHS --data DIR
*
Sauvegarde les annotations en .txt ainsi que les images avec les bounding box dessus
```
bash
python3 detect.py
--weights
../psi-biom/best.pt
--img
224
--conf
0.X
--source
PATH_TO_IMG
--save-txt
python3 detect.py
--weights
../psi-biom/
YOLOV5/weights/
best.pt
--img
224
--conf
0.X
--source
PATH_TO_IMG
--save-txt
```
**WARNING**
: Il faut adapter EXP_NB, qui correspond au numéro de l'entrainement
*(exp1 pour le premier entrainement)*
...
...
@@ -42,7 +42,7 @@ python3 detect.py --weights ../psi-biom/best.pt --img 224 --conf 0.X --source PA
*
Sauvegarde les annotations en .txt seulement avec la confiance de chaque détections
```
bash
python3 detect.py
--weights
..psi-biom/best.pt
--img
224
--conf
0.X
--source
PATH_TO_IMG
--save-txt
--nosave
--save-conf
python3 detect.py
--weights
..
/
psi-biom/
YOLOV5/weights/
best.pt
--img
224
--conf
0.X
--source
PATH_TO_IMG
--save-txt
--nosave
--save-conf
```
</details>
...
...
@@ -64,4 +64,23 @@ names = []
</details>
<details>
<summary>
Conversion des détection YOLO vers LabelMe
</summary>
<p>
</p>
```
bash
pip
install
globox
globox convert yolov5/runs/detect/exp/labels/ YOUR_DIRECTORY_WICH_DATA_WILL_BE_STORED
--formet
yolo
--save_fmt
labelme
--img
PATH_TO_IMAGES
```
*
Ce script permet de convertir les .txt en .json pour les ouvrir dans LabelMe mais il ne prend pas en compte le paramètre 'imageData' donc il est important d'ensuite utiliser le second script
```
bash
python3 get_json_file_YOLO.py
-p
-d
```
</details>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment