Giter Site home page Giter Site logo

Comments (5)

mchorton avatar mchorton commented on June 7, 2024

@acrlife it looks like python cannot find the module - is CVNets missing from your pythonpath? Assuming you're running from the root directory in the CVNets repository, try adding PYTHONPATH=. before your command.

from ml-cvnets.

acrlife avatar acrlife commented on June 7, 2024

@mchorton I have found reason of this problem: When I installed cvnets ,command cvnets-train can works, but it does't work after I add my own model file named "denseformer.py" to "ml-cvnets/cvnets/models/classification". I have try to reinstall cvnets by pip install --editable ., but it also does't work.
Figure 1 shows the situation after just installing CVnets, and Figure 2 shows the situation after adding my own model file.
I really want to know how to train my own model using CVNets,thank you!
5
6

from ml-cvnets.

mchorton avatar mchorton commented on June 7, 2024

The error implies you're trying to import cvnets.models.classification.config somewhere. Since the config folder isn't a module, you're getting an import error. I think you meant to remove the config from your import statement.

from ml-cvnets.

acrlife avatar acrlife commented on June 7, 2024

@mchorton I think CVNets has built a fully functional framework for the main tasks in the field of computer vision. I would like to know how to use CVNets to train my own model. Can you provide a tutorial? Thank you very much!

from ml-cvnets.

mchorton avatar mchorton commented on June 7, 2024

@acrlife we have documentation here: https://apple.github.io/ml-cvnets/getting_started.html

I believe your issue involved importing the wrong directory, as mentioned above. If you are still having trouble, try this:

  • Revert all your code changes, so that your branch matches the main branch.
  • Add your model definition to an existing .py file in which some other model is defined. That way, you can rule out an import error.

from ml-cvnets.

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.