Coder Social home page Coder Social logo

Comments (3)

zikai1 avatar zikai1 commented on June 1, 2024 3

Hi,

it seems like they changed the structure of the POT library which is used to get the discrete OT solution in the plotting code.

To fix the issue, in src/plotters.py, you should change ot.weak_optimal_transport to ot.weak.weak_optimal_transport.

Hope this helps!

Best wishes, Alex

Hi Alex,

I have successfully solved the above issue. The problem is that the POT version POT==0.4.0 in requirement.txt is a little bit old.

I have updated it to pip install POT==0.8.2 and the plotter.py works.

Thank you again for you work!

Best wishes,
Mingyang

from neuraloptimaltransport.

iamalexkorotin avatar iamalexkorotin commented on June 1, 2024

Hi,

it seems like they changed the structure of the POT library which is used to get the discrete OT solution in the plotting code.

To fix the issue, in src/plotters.py, you should change
ot.weak_optimal_transport
to
ot.weak.weak_optimal_transport.

Hope this helps!

Best wishes,
Alex

from neuraloptimaltransport.

zikai1 avatar zikai1 commented on June 1, 2024

Hi,

it seems like they changed the structure of the POT library which is used to get the discrete OT solution in the plotting code.

To fix the issue, in src/plotters.py, you should change ot.weak_optimal_transport to ot.weak.weak_optimal_transport.

Hope this helps!

Best wishes, Alex

Hi Alex,

Thanks! As suggested, I have changed ot.weak_optimal_transport in src/plotters.py to ot.weak.weak_optimal_transport, as shown in the following. But the above issue still exists.
1702961266781

Do you know why? Maybe I should ask for POT for some solution.

Best wishes,
Mingyang

from neuraloptimaltransport.

Related Issues (6)

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.