portrait_matting icon indicating copy to clipboard operation
portrait_matting copied to clipboard

no gpu support for Matting mode?

Open shartoo opened this issue 5 years ago • 3 comments

Thank you for your sharing.When i want to train matting mode,i found it can be trained in CPU mode but can never be trained on GPU mode with envirnoment as below

  • cuda 9.0
  • cudnn 7.3.1
  • chainer (3.4 or 6.0rc)
  • cupy (4.0rc or 6.0rc)

There are always sth related with cuda version or option error.Can this repo be trained on matting mode with GPU support?

shartoo avatar Apr 29 '19 07:04 shartoo

Hav

Thank you for your sharing.When i want to train matting mode,i found it can be trained in CPU mode but can never be trained on GPU mode with envirnoment as below

  • cuda 9.0
  • cudnn 7.3.1
  • chainer (3.4 or 6.0rc)
  • cupy (4.0rc or 6.0rc)

There are always sth related with cuda version or option error.Can this repo be trained on matting mode with GPU support?

Have you resolved ?

billzw avatar May 17 '19 04:05 billzw

00616703d4ae

def to_gpu(self, device=None): ''' Send layers to GPU except matting_link. ''' with chainer.cuda._get_device(device): super(chainer.Chain, self).to_gpu() d = self.dict for name in self._children: if name == 'matting_link': logger.info('Skip sending matting_link to GPU') continue d[name].to_gpu() return self matting_link

billzw avatar May 17 '19 04:05 billzw

Not yet,it seems that this repo is not well written ,there are many code bug refer here

shartoo avatar May 18 '19 07:05 shartoo