Replies: 7 comments
-
Hello, have you checked the avalanche versions are the same on your PC and server? |
Beta Was this translation helpful? Give feedback.
-
Both version is 0.4.0
|
Beta Was this translation helpful? Give feedback.
-
Damn, it's the typing-extensions library error. You can try
maybe it will fix it. But I thought that we had corrected it, the correct version of typing extension is in the requirements file ... What command did you run for the installation ? |
Beta Was this translation helpful? Give feedback.
-
I tried both:
and
|
Beta Was this translation helpful? Give feedback.
-
It does not fix the issue:
|
Beta Was this translation helpful? Give feedback.
-
Can you give me the output of conda list|grep typing ? It can happen that this library is installed in multiple ways, through pip and conda, and that the wrong one is used. It just happened to me today. |
Beta Was this translation helpful? Give feedback.
-
@COD1995 you need to start from a clean environment. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, there,
I followed the instructions in installing the Avalanche library but constantly got this error when running the code, I wonder what is going on:
File ~/miniconda3/envs/avalanche-env/lib/python3.9/site-packages/avalanche/training/templates/observation_type/batch_observation.py:16, in BatchObservation.init(self)
15 def init(self):
---> 16 super().init()
17 self.optimized_param_id = None
TypeError: init() missing 2 required positional arguments: 'model' and 'optimizer'
Thanks a lot. I checked multiple times and ensure I passed in the model and optimizer. I installed avalanche and it is working fine on my local PC but not the case in my server.
Beta Was this translation helpful? Give feedback.
All reactions