OpenGVLab / InternImage

[CVPR 2023 Highlight] InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutions
https://arxiv.org/abs/2211.05778
MIT License
2.47k stars 231 forks source link

[Solved] RuntimeError: Not implemented on the CPU #296

Closed jeonga0303 closed 3 months ago

jeonga0303 commented 3 months ago
image

When I searched for the issue, I found that I could change 'core_op=DCNv3' to 'core_op=DCNv3_pytorch' in the config file configuration.

So, as a result of running it, the following error occurred again. ValueError: SyncBatchNorm expected input tensor to be on GPU

image

Please tell me the exact solution

jeonga0303 commented 3 months ago

You may try to change the SyncBN to BN in your configfile.