mjq11302010044 / Real-CE

Real-CE: A Benchmark for Chinese-English Scene Text Image Super-resolution (ICCV2023)
66 stars 6 forks source link

cannot import name '_C' from 'basicsr.ops' #4

Open ZY1234-pixel opened 8 months ago

ZY1234-pixel commented 8 months ago

I‘ve run python setup.py develop, but the error `cannot import name '_C' from 'basicsr.ops' still existed. Would you tell me the way to resolve it?

GrayChan813 commented 8 months ago

Have you found a solution? I also encountered the same problem.

mjq11302010044 commented 8 months ago

@ZY1234-pixel @GrayChan813 Please see #2 for a temporary solution, we are refactoring the code and will solve this issue. Thanks.

GrayChan813 commented 8 months ago

@mjq11302010044 Thank you for your attention to my question. I'm sorry that I don't understand the solution of #2 . Does he mean to clone the detectron2 and then execute "python detectron2/setup.py develop"? If that's the case, I've tried it but it didn't solve the problem. Are there any other code changes that need to be made?

mjq11302010044 commented 8 months ago

@GrayChan813 Or you can try to remove all imports related to _C, this package is not used in the current code base.

GrayChan813 commented 8 months ago

@mjq11302010044 OK, thanks a lot. I will try.