suprosanna / relationformer

Apache License 2.0
105 stars 15 forks source link

Graphics memory keeps changing during training on scene_graph branch #4

Closed Retickence closed 1 year ago

Retickence commented 1 year ago

Hi, authors. I am trying to use your framework for scene graph generation(python3 train.py --config configs/scene_2d.yaml --cuda_visible_device 0 --nproc_per_node 1 -b 6), I find that the graphics memory keeps changing during training. I tried to remove gc.collect() and torch.cuda.empty_cache(), but it didn't work. Is there any way to fix the graphics memory? Thanks.