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

WIP: ADAT - Improvements #391

Closed
wants to merge 25 commits into from
Closed

WIP: ADAT - Improvements #391

wants to merge 25 commits into from

Conversation

bijayraj
Copy link
Contributor

@bijayraj bijayraj commented Nov 7, 2020

Issues and bug fixes related to #388

Bug Fixes:

  • Alternate scoring - make optional with hierarchy
  • Alternate scoring - graphs missing
  • Hierarchy info missing from Images folder

New Features:

  • Load command line arguments from json/ini file with --file option
  • Compare two files - new script to generate diff options
  • GUI for saving/editing configs, invoking visualizations

Notes

  • New python module "csvdiff" is required. Can be installed using pip install csvdiff.

  • GUI uses pyqt4.

  • The diff is visible in "Image Result" table in generated HTML.

  • The code is more modular with main functions moved to "adat_classification.py" file.

  • "generate-visualization.py" is responsible for parsing command-line arguments and invoking html generate function from "adat_classification.py"

  • "adat_classification.py" can now be imported to external python scripts.

@lgtm-com
Copy link

lgtm-com bot commented Nov 7, 2020

This pull request introduces 3 alerts and fixes 1 when merging aa22136 into e302042 - view on LGTM.com

new alerts:

  • 1 for Unused local variable
  • 1 for Unused import
  • 1 for Variable defined multiple times

fixed alerts:

  • 1 for Variable defined multiple times

@lgtm-com
Copy link

lgtm-com bot commented Nov 8, 2020

This pull request fixes 3 alerts when merging 29b6279 into e302042 - view on LGTM.com

fixed alerts:

  • 1 for Testing equality to None
  • 1 for Implicit string concatenation in a list
  • 1 for Variable defined multiple times

@kiritigowda kiritigowda self-assigned this Nov 9, 2020
@kiritigowda kiritigowda added enhancement New feature or request New Feature New Features added to MIVisionX labels Nov 9, 2020
@kiritigowda
Copy link
Collaborator

@bijayraj missing 'import argparse`

 python toolkit/amd_data_analysis_toolkit/classification/generate-visualization.py 
2020-11-09 17:53:36,540 [MainThread  ] [DEBUG]  AMD Data Analysis Toolkit - Classification
Traceback (most recent call last):
  File "toolkit/amd_data_analysis_toolkit/classification/generate-visualization.py", line 70, in <module>
    main()
  File "toolkit/amd_data_analysis_toolkit/classification/generate-visualization.py", line 37, in main
    parser = argparse.ArgumentParser()

@kiritigowda
Copy link
Collaborator

@bijayraj running `python toolkit/amd_data_analysis_toolkit/classification/generate-visualization.py' script should open the GUI if no arguments are passed. Check out this app - https://github.com/kiritigowda/mivisionx-inference-analyzer for reference.

python toolkit/amd_data_analysis_toolkit/classification/generate-visualization.py
2020-11-09 17:58:05,712 [MainThread  ] [DEBUG]  AMD Data Analysis Toolkit - Classification
Traceback (most recent call last):
  File "toolkit/amd_data_analysis_toolkit/classification/generate-visualization.py", line 71, in <module>
    main()
  File "toolkit/amd_data_analysis_toolkit/classification/generate-visualization.py", line 67, in main
    generateAnalysisOutput(argsDict)
  File "/Users/kiriti/work/adat/MIVisionX/toolkit/amd_data_analysis_toolkit/classification/adat_classification.py", line 1058, in generateAnalysisOutput
    validateConfig(argsDict)
  File "/Users/kiriti/work/adat/MIVisionX/toolkit/amd_data_analysis_toolkit/classification/adat_classification.py", line 1037, in validateConfig
    raise Exception(errorMessage)
Exception: Following required arguments were missing: 
--inference_results
--label
--output_dir
--output_name

@kiritigowda
Copy link
Collaborator

@bijayraj any updates on these?

@lgtm-com
Copy link

lgtm-com bot commented Nov 12, 2020

This pull request fixes 3 alerts when merging b032ff6 into 607f6ea - view on LGTM.com

fixed alerts:

  • 1 for Testing equality to None
  • 1 for Implicit string concatenation in a list
  • 1 for Variable defined multiple times

@bijayraj
Copy link
Contributor Author

@bijayraj any updates on these?

@kiritigowda recent commits were made to fix the issues.

@lgtm-com
Copy link

lgtm-com bot commented Nov 12, 2020

This pull request fixes 3 alerts when merging 0a9e53d into 607f6ea - view on LGTM.com

fixed alerts:

  • 1 for Testing equality to None
  • 1 for Implicit string concatenation in a list
  • 1 for Variable defined multiple times

@kiritigowda
Copy link
Collaborator

@bijayraj - the following error when the new feature compare is used

python generate-visualization.py 
Traceback (most recent call last):
  File "/home/kiriti/adat/MIVisionX/toolkit/amd_data_analysis_toolkit/classification/adat_gui.py", line 161, in runGenerate
    ac.generateAnalysisOutput(self.configDict)
  File "/home/kiriti/adat/MIVisionX/toolkit/amd_data_analysis_toolkit/classification/adat_classification.py", line 1086, in generateAnalysisOutput
    diffPatch = getDifferencePatch(inputCSVFile, compareFile, ['FileName'])
  File "/home/kiriti/adat/MIVisionX/toolkit/amd_data_analysis_toolkit/classification/adat_classification.py", line 1146, in getDifferencePatch
    patch = csvdiff.diff_files(csv1, csv2, id_field)
  File "/home/kiriti/.local/lib/python2.7/site-packages/csvdiff/__init__.py", line 44, in diff_files
    ignore_columns=ignored_columns)
  File "/home/kiriti/.local/lib/python2.7/site-packages/csvdiff/patch.py", line 205, in create
    to_indexed = records.index(to_records, index_columns)
  File "/home/kiriti/.local/lib/python2.7/site-packages/csvdiff/records.py", line 58, in index
    raise InvalidKeyError('invalid column name {k} as key'.format(k=k))
csvdiff.records.InvalidKeyError: invalid column name 'FileName' as key

@lgtm-com
Copy link

lgtm-com bot commented Nov 13, 2020

This pull request fixes 3 alerts when merging 9724d63 into 607f6ea - view on LGTM.com

fixed alerts:

  • 1 for Testing equality to None
  • 1 for Implicit string concatenation in a list
  • 1 for Variable defined multiple times

@bijayraj
Copy link
Contributor Author

@kiritigowda New commit has fixed the problem. The problem was with incompatible compare file chosen. Extra file format checking has been added to avoid the error.

@kiritigowda kiritigowda changed the title ADAT Improvements WIP: ADAT Improvements Dec 15, 2020
@kiritigowda kiritigowda changed the title WIP: ADAT Improvements WIP: ADAT - Improvements Aug 31, 2021
@kiritigowda kiritigowda changed the base branch from master to develop December 21, 2021 17:04
@lgtm-com
Copy link

lgtm-com bot commented Dec 21, 2021

This pull request fixes 3 alerts when merging 9724d63 into 2920638 - view on LGTM.com

fixed alerts:

  • 1 for Testing equality to None
  • 1 for Implicit string concatenation in a list
  • 1 for Variable defined multiple times

@kiritigowda kiritigowda deleted the branch ROCm:master December 28, 2021 22:22
@kiritigowda kiritigowda reopened this Dec 29, 2021
@kiritigowda kiritigowda changed the base branch from develop to master January 7, 2022 19:23
@lgtm-com
Copy link

lgtm-com bot commented Jan 7, 2022

This pull request fixes 3 alerts when merging 9724d63 into e58c8b6 - view on LGTM.com

fixed alerts:

  • 1 for Testing equality to None
  • 1 for Implicit string concatenation in a list
  • 1 for Variable defined multiple times

@kiritigowda kiritigowda changed the base branch from master to develop January 7, 2022 19:36
@kiritigowda kiritigowda changed the base branch from develop to master January 27, 2022 15:39
@kiritigowda kiritigowda changed the base branch from master to develop January 27, 2022 15:46
@lgtm-com
Copy link

lgtm-com bot commented Jan 27, 2022

This pull request fixes 3 alerts when merging 9724d63 into 63aec3e - view on LGTM.com

fixed alerts:

  • 1 for Testing equality to None
  • 1 for Implicit string concatenation in a list
  • 1 for Variable defined multiple times

@kiritigowda kiritigowda changed the base branch from develop to master January 31, 2022 18:22
@lgtm-com
Copy link

lgtm-com bot commented Jan 31, 2022

This pull request fixes 3 alerts when merging 9724d63 into 82f264f - view on LGTM.com

fixed alerts:

  • 1 for Testing equality to None
  • 1 for Implicit string concatenation in a list
  • 1 for Variable defined multiple times

@kiritigowda kiritigowda added the noCI Disables CI runs to reduce load for PR with low activity label Apr 4, 2022
@kiritigowda kiritigowda closed this Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request New Feature New Features added to MIVisionX noCI Disables CI runs to reduce load for PR with low activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants