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

[Custom Loops POC] VisualizerCallback -> Logger #1000

Conversation

ashwinvaidya17
Copy link
Collaborator

Description

  • Refactor visualizer callback into trainer and logger classes. CSV logger is merged into FileSystemLogger that logs images to the file system as well.

@github-actions github-actions bot added the Setup label May 12, 2023
Copy link
Contributor

@djdameln djdameln left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, overall it looks good. My main question is related to the custom visualizer POC that I'm working on atm:

Would this design make it possible to specify a class path and init args for the visualizer class? This would be needed to support custom visualizers. A custom visualizer would override some of the methods of post_processing.visualizer.Visualizer. We would need a way of telling the trainer which visualizer to use.

Another concern I have is that this design might make it a bit more challenging to save video results, but I will try to sort this out on my side.

src/anomalib/models/cfa/config.yaml Show resolved Hide resolved
src/anomalib/trainer/utils/visualizer.py Outdated Show resolved Hide resolved
src/anomalib/models/cfa/config.yaml Outdated Show resolved Hide resolved
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added CI Dependencies Pull requests that update a dependency file Docs Inference Notebooks Tests labels May 12, 2023
@ashwinvaidya17
Copy link
Collaborator Author

Thanks, overall it looks good. My main question is related to the custom visualizer POC that I'm working on atm:

Would this design make it possible to specify a class path and init args for the visualizer class? This would be needed to support custom visualizers. A custom visualizer would override some of the methods of post_processing.visualizer.Visualizer. We would need a way of telling the trainer which visualizer to use.

Another concern I have is that this design might make it a bit more challenging to save video results, but I will try to sort this out on my side.

I feel this class will undergo some changes. Maybe if even I have some understanding on how the video visualizer works then I might be able to think on something on my side

Copy link
Contributor

@djdameln djdameln left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'm happy with the changes

Copy link
Contributor

@samet-akcay samet-akcay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I like this connector approach

@ashwinvaidya17 ashwinvaidya17 merged commit 4c68821 into openvinotoolkit:feature/custom_loops May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants