GraphGPS icon indicating copy to clipboard operation
GraphGPS copied to clipboard

AttributeError: 'NoneType' object has no attribute 'mem'

Open OswaldoBornemann opened this issue 2 years ago • 4 comments

When i tried to run python main.py --cfg configs/GPS/actor-GPS.yaml wandb.use False, it came out the following error:

    register_act('swish', partial(SWISH, inplace=cfg.mem.inplace))
AttributeError: 'NoneType' object has no attribute 'mem'

OswaldoBornemann avatar Oct 25 '23 12:10 OswaldoBornemann

Sorry for getting back to you so late.

I get the same error if pytorch_lightning is not installed. This should be indicated somewhere in the stack trace of this error. Can you check your entire stack trace to see whether you get the same warning about pytorch_lightning? Installing with pip install pytorch_lightning fixed the issue on my side.

luis-mueller avatar Jan 05 '24 09:01 luis-mueller

pip install pytorch_lightning would possibly solve the problem.

jiaqingxie avatar May 06 '24 12:05 jiaqingxie

After I try pip install pytorch_lightning it still has this problem, can it run in the docker continer?

Sniper1-love avatar May 08 '24 06:05 Sniper1-love

The environment cannot detect the named yacs module, so this code pip install yacs would possibly solve the problem

buaaRec avatar Nov 14 '24 08:11 buaaRec