Git Product home page Git Product logo

Comments (8)

xinntao avatar xinntao commented on July 28, 2024
  1. First pad the image with zero/reflection to make the height and weight be a multiplication of 4.
  2. After processing, crop the extra pixels.

from edvr.

qingchuanhuajuan avatar qingchuanhuajuan commented on July 28, 2024

Hi,Thank you very much for sharing!
My pytorch version is 1.0.1,cuda=9.0. I can install the relevant package for this code. I can also successfully run "bash make.sh". However, running "python test_Vid4_REDS4_with_GT.py" has the following error: "ImportError: Failed to import DCNv2 module". I made the relevant changes, but it didn't work. What is the correct way to open?

from edvr.

xinntao avatar xinntao commented on July 28, 2024

If with this error "ImportError: Failed to import DCNv2 module, it means the installation of DCN failed.

from edvr.

kenrubiooo avatar kenrubiooo commented on July 28, 2024

Hi @xinntao,

I did invoke make.sh command in /models/modules/DCNv2. The result is

Installed ./codes/models/modules/DCNv2
Processing dependencies for DCNv2==0.1
Finished processing dependencies for DCNv2==0.1

However, I still encountered this problem,

ImportError: Failed to import DCNv2 module

What could be the problem? Thank you.

from edvr.

siyuhsu avatar siyuhsu commented on July 28, 2024

Hi @xinntao,

I did invoke make.sh command in /models/modules/DCNv2. The result is

Installed ./codes/models/modules/DCNv2
Processing dependencies for DCNv2==0.1
Finished processing dependencies for DCNv2==0.1

However, I still encountered this problem,

ImportError: Failed to import DCNv2 module

What could be the problem? Thank you.

I have used several hours to solve this problem. It caused by your gcc compiler version. If your gcc compiler version lower than 4.9, please update to 4.9 or higher. I recommend you use 5.4.0, because I update my gcc compiler to 7.3.0 and I get another "undefined symbol..." error. I didn't want to reinstall my gcc compiler because it will cost 1~2hours. So, I solved the new error by this: SeanNaren/warp-ctc#103 (comment)

from edvr.

kenrubiooo avatar kenrubiooo commented on July 28, 2024

Hi @xinntao,
I did invoke make.sh command in /models/modules/DCNv2. The result is

Installed ./codes/models/modules/DCNv2
Processing dependencies for DCNv2==0.1
Finished processing dependencies for DCNv2==0.1

However, I still encountered this problem,

ImportError: Failed to import DCNv2 module

What could be the problem? Thank you.

I have used several hours to solve this problem. It caused by your gcc compiler version. If your gcc compiler version lower than 4.9, please update to 4.9 or higher. I recommend you use 5.4.0, because I update my gcc compiler to 7.3.0 and I get another "undefined symbol..." error. I didn't want to reinstall my gcc compiler because it will cost 1~2hours. So, I solved the new error by this: SeanNaren/warp-ctc#103 (comment)

Thank you, @siyux. However, I already have the gcc-5.4.0 version. The test_Vid4_REDS4_with_GT_DUF.py is working perfectly but the test_Vid4_REDS4_with_GT.py is encountering the above stated problem.

from edvr.

siyuhsu avatar siyuhsu commented on July 28, 2024

Hi @xinntao,
I did invoke make.sh command in /models/modules/DCNv2. The result is

Installed ./codes/models/modules/DCNv2
Processing dependencies for DCNv2==0.1
Finished processing dependencies for DCNv2==0.1

However, I still encountered this problem,

ImportError: Failed to import DCNv2 module

What could be the problem? Thank you.

I have used several hours to solve this problem. It caused by your gcc compiler version. If your gcc compiler version lower than 4.9, please update to 4.9 or higher. I recommend you use 5.4.0, because I update my gcc compiler to 7.3.0 and I get another "undefined symbol..." error. I didn't want to reinstall my gcc compiler because it will cost 1~2hours. So, I solved the new error by this: SeanNaren/warp-ctc#103 (comment)

Thank you, @siyux. However, I already have the gcc-5.4.0 version. The test_Vid4_REDS4_with_GT_DUF.py is working perfectly but the test_Vid4_REDS4_with_GT.py is encountering the above stated problem.

I have a similar problem. So, I recompiled DCNv2 and everything goes well! Hope it also can help you.

from edvr.

BaohaoLiao avatar BaohaoLiao commented on July 28, 2024

Hi @xinntao,
I did invoke make.sh command in /models/modules/DCNv2. The result is

Installed ./codes/models/modules/DCNv2
Processing dependencies for DCNv2==0.1
Finished processing dependencies for DCNv2==0.1

However, I still encountered this problem,

ImportError: Failed to import DCNv2 module

What could be the problem? Thank you.

I have used several hours to solve this problem. It caused by your gcc compiler version. If your gcc compiler version lower than 4.9, please update to 4.9 or higher. I recommend you use 5.4.0, because I update my gcc compiler to 7.3.0 and I get another "undefined symbol..." error. I didn't want to reinstall my gcc compiler because it will cost 1~2hours. So, I solved the new error by this: SeanNaren/warp-ctc#103 (comment)

Thank you, @siyux. However, I already have the gcc-5.4.0 version. The test_Vid4_REDS4_with_GT_DUF.py is working perfectly but the test_Vid4_REDS4_with_GT.py is encountering the above stated problem.

I have a similar problem. So, I recompiled DCNv2 and everything goes well! Hope it also can help you.

You mean delete "build" folder and re-run python setup.py develop? I can not fix this problem in this way.
It seems it doesn't work for torch1.3 and cuda10. It works when I use torch1.1 and cuda9.0

from edvr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.