Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding polygon detection alongside bounding boxes #6506

Closed
wants to merge 47 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
202e62e
adding polygon yolo
Jan 25, 2022
ca9d901
last changes
Jan 27, 2022
6ad3f30
more cleaning
Jan 27, 2022
2dd00f1
added polygon_train bool to parse model
Jan 27, 2022
2d61899
modifying detect for yolo and polygon
Jan 28, 2022
9e8f8ed
polygon plot results
Jan 28, 2022
1828e48
dataset fix
Jan 31, 2022
6fb367d
merging latest yolo commits
Jan 31, 2022
2754448
Delete lpr.yaml
ahmad4633 Jan 31, 2022
6be048b
cleaning
Jan 31, 2022
218a731
last changes
Feb 2, 2022
38d936c
Merge remote-tracking branch 'origin/master' into test/polygon_yolo
Feb 2, 2022
3e16e13
fixing polygon_create_dataloader
Feb 2, 2022
3e974f2
fixing plot_results
Feb 2, 2022
bb7026a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 2, 2022
ce3527b
Update requirements.txt
ahmad4633 Feb 2, 2022
fc6aa18
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 2, 2022
6f10192
Update detect.py
ahmad4633 Feb 2, 2022
183e2d3
fixing indents
ahmad4633 Feb 4, 2022
66a53f0
Merge remote-tracking branch 'origin/master' into test/polygon_yolo
ahmad4633 Feb 4, 2022
3f30d43
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 4, 2022
7d077d5
pre-commit.ci
ahmad4633 Feb 4, 2022
b0282f9
Merge branch 'test/polygon_yolo' of https://github.com/ahmad4633/yolo…
ahmad4633 Feb 4, 2022
7de5778
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 4, 2022
bdb0994
solving conflicts
ahmad4633 Feb 5, 2022
03235fb
Merge branch 'test/polygon_yolo' of https://github.com/ahmad4633/yolo…
ahmad4633 Feb 5, 2022
8385766
Merge branch 'master' into test/polygon_yolo
ahmad4633 Feb 5, 2022
957cf53
fixing ppe8
ahmad4633 Feb 7, 2022
4de79d1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 7, 2022
f6ef69d
fixing pep8
ahmad4633 Feb 7, 2022
66a5401
Merge branch 'test/polygon_yolo' of https://github.com/ahmad4633/yolo…
ahmad4633 Feb 7, 2022
f832fa3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 7, 2022
c114834
pep8 fixes
ahmad4633 Feb 7, 2022
80a5afd
Merge branch 'test/polygon_yolo' of https://github.com/ahmad4633/yolo…
ahmad4633 Feb 7, 2022
f52af58
pep8 fixes
ahmad4633 Feb 7, 2022
e15e5ad
plots_polygon.py:167: [F841] local variable 'c' is assigned to but ne…
ahmad4633 Feb 7, 2022
a6f385c
pep8 fix indents
ahmad4633 Feb 7, 2022
6b8e102
Update setup.py
ahmad4633 Feb 7, 2022
607bfec
fixing export
ahmad4633 Feb 14, 2022
85fcc88
Merge branch 'master' into test/polygon_yolo
ahmad4633 Feb 14, 2022
ded4625
Merge branch 'master' into test/polygon_yolo
ahmad4633 Feb 14, 2022
1101845
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 14, 2022
4dd66aa
pre commit fix
ahmad4633 Feb 14, 2022
e50fb5a
Merge branch 'test/polygon_yolo' of https://github.com/ahmad4633/yolo…
ahmad4633 Feb 14, 2022
410a8d2
fixed name 'MixConv2d' is not defined
ahmad4633 Feb 15, 2022
5cc70b6
adding polygon_load_image
ahmad4633 Feb 15, 2022
efb59a4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 15, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
polygon plot results
  • Loading branch information
ata authored and ata committed Jan 28, 2022
commit 9e8f8eda14b2a9beb51339adb7bba5c24efb9b80
6 changes: 3 additions & 3 deletions utils/plots_polygon.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ def polygon_plot_results(file=''):
bucket=''
id=()
labels=()
files = list(Path(save_dir).glob('results*.csv'))
assert len(files), f'No results.txt files found in {save_dir.resolve()}, nothing to plot.'
files = list(Path(file).glob('results*.csv'))
assert len(files), f'No results.txt files found in {file.resolve()}, nothing to plot.'
for fi, f in enumerate(files):
try:
results = np.loadtxt(f, usecols=[2, 3, 4, 8, 9, 12, 13, 14, 10, 11], ndmin=2).T
Expand All @@ -291,7 +291,7 @@ def polygon_plot_results(file=''):
print('Warning: Plotting error for %s; %s' % (f, e))

ax[1].legend()
fig.savefig(Path(save_dir) / 'results.png', dpi=200)
fig.savefig(Path(file) / 'results.png', dpi=200)


def plot_one_box(x, im, color=(128, 128, 128), label=None, line_thickness=3):
Expand Down