You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think OMP_NUM_THREADS needs to be set before the first time one of our libraries (numpy, if memory serves) is used. We do try set it in IMPALA, but have found that setting it as the env variable in the command is more reliable. It could be that by doing the dummy_env we are using numpy too early, and OMP_NUM_THREADS isn't getting picked up properly.
By the way, thanks for debugging in and finding a fix that works.
Hi, thanks for sharing your code.
I am trying to run with IMPALA-based policy in configuration-file mode, with configs/procgen/impala_procgen.json
The command that I used:
python main.py --config-file configs/procgen/impala_procgen.json
However, I got all mean_episdoe_return equal to nan as follows (the outputs for setup are ignored):
I found that while interacting with the environment, the act() function is stopped at this point https://github.com/AGI-Labs/continual_rl/blob/bcf17d879e8a983340be233ff8f740c424d0f303/continual_rl/policies/impala/torchbeast/monobeast.py#L226. I have tried to check in forward() in the class ImpalaNet() and saw that it stopped at
x = self._conv_net(x)
https://github.com/AGI-Labs/continual_rl/blob/bcf17d879e8a983340be233ff8f740c424d0f303/continual_rl/policies/impala/nets.py#L55. I did some modifications by replacing itx = torch.rand(x.shape[0], 512)
, and the code can run successfully.I guess the problem may be caused by the shared memory of the actor's model? Can you give some hints to fix that?
I have set up for 1 actor and 1 learner
Here is some OS information:
Update:
In
ConvNet84x84
class, I manually set theintermediate_dim=1024
(for Procgen) and comment out this line https://github.com/AGI-Labs/continual_rl/blob/bcf17d879e8a983340be233ff8f740c424d0f303/continual_rl/utils/common_nets.py#L62, so code is runnable now. Maybe when forwarding the model with dummy input before calling init() causes problem?The text was updated successfully, but these errors were encountered: