Require Assistance with Custom Plugin Implementation #1630
sequentialrant
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently started using Avalanche Continual Learning library to explore online continual learning techniques. My research involves experimenting with various selection strategies, and I aim to incorporate a custom metric that measures power consumption of CPU and GPU. To achieve this, I developed a plugin. However, when I run the experiments, the plugin's functions meant to calculate power consumption aren't being invoked. Curiously, when I test these functions separately, they work, and the metrics are computed. Additionally, the output is limited to a single value, which could be either CPU power, GPU power, or total power, instead of all three. I've included a screenshot for better understanding.
Here is the code I'm referencing.
Using the plugin as below:
interval = 500
output_file = "tegrastats_output.txt
error_file = "tegrastats_error.txt
tegrastats_metric = TegrastatsMetric(output_file, interval, error_file)
eval_plugin = EvaluationPlugin(
accuracy_metrics(experience=True, stream=True, trained_experience=True),
forgetting_metrics(experience=True, stream=True),
TegrastatsPluginMetric(tegrastats_metric),
timing_metrics(experience=True, stream=True),
loggers=[interactive_logger, text_logger]
)
Could someone advise me on what might be going wrong? Am I implementing the plugin correctly?
Kind regards,
Srinidhi
Beta Was this translation helpful? Give feedback.
All reactions