GithubHelp home page GithubHelp logo

scripts/train_simmc_model.sh about simmc HOT 3 CLOSED

telele77 avatar telele77 commented on May 29, 2024
scripts/train_simmc_model.sh

from simmc.

Comments (3)

billkunghappy avatar billkunghappy commented on May 29, 2024 1

Hello @satwikkottur
Thanks for the solution. In my case, after running the command export PYTHONPATH="." in simmc/mm_action_prediction/ directory, it shows the same error message.
My operating system is Ubunto 18.04 and using python 3.6.9.
After searching for solutions on internet, this may be some kind of circular import issue? Since using 'import ... as ...' in /simmc/mm_action_prediction/models/encoders/history_agnostic.py will have to wait for the whole module loaded and the modules models and models.encoders are still waiting for history_agnostic.py to be done importing.
The above problem is just my guess.
I fix this error by changing all
import models.encoders as encoders
to
from models import encoders
in four scripts: hierarchical_recurrent.py history_agnostic.py memory_network.py tf_idf_encoder.py

from simmc.

satwikkottur avatar satwikkottur commented on May 29, 2024

Hello @telele77 ,

Thanks for your interest. A similar concern has been reported here (#7). Updating your PYTHONPATH to contain the current directory would make it easier to search for the module.

Run the following (once) in your command line:

export PYTHONPATH="."

Hope this helps!-

from simmc.

satwikkottur avatar satwikkottur commented on May 29, 2024

Thank for you for your suggestion @billkunghappy. I'll add this to the README.md.

from simmc.

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.