Error related to avalanche.training.strategies

#19 · open · 1 comments

View on GitHub ↗

mishma-akhtar

<img width="958" alt="Screenshot 2023-04-14 152845" src="https://user-images.githubusercontent.com/125876961/232331934-59e87b52-0021-40a9-8eab-12096998491b.png"> I have to work on CRL for path generation of a drone. For learning, I tried to run 'simple_dqn.py' from this repository but it shows error related to avalanche training strategies. I am using version avalanche version 0.3.1 and pyhton 3.9

Comments

EliaPiccoli

Are you sure that you are using the latest version of Avalanche-RL? Because in the error the code is trying to import `BaseStrategy` which was in the old version of Avalanche and Avalanche-RL. Recently we fixed these errors aligning the two libraires and one of the changes was removing `BaseStrategy` and move to `BaseTemplate`. In fact, if you check the current version of [`metrics_definition.py`](https://github.com/ContinualAI/avalanche-rl/blob/master/avalanche_rl/evaluation/metric_definitions.py) you can see that the import is the following one: `from avalanche.training.templates.base import BaseTemplate`.