Code Monkey home page Code Monkey logo

Comments (6)

pwill2 avatar pwill2 commented on July 20, 2024

Can you expound more on the issue? I've run through a bunch of examples and haven't had any errors.

from sketch-code.

bibhas2 avatar bibhas2 commented on July 20, 2024

Sorry, I should have added more details. Here are the steps to reproduce.

I have Python 2.7.13.

I cloned this repo.

Installed the required packages pip install -r requirements.txt.

Downloaded the data and pretrained weights.

Then from the src folder I ran the convert_single_image.py script

python convert_single_image.py ...

I got this error:

Traceback (most recent call last):
  File "convert_single_image.py", line 7, in <module>
    from classes.inference.Sampler import *
ImportError: No module named inference.Sampler

from sketch-code.

pwill2 avatar pwill2 commented on July 20, 2024

Ah, that's the problem. The program isn't compatible with Python 2.x only Python 3.x.

Prerequisites
Python 3 (not compatible with python 2)
pip

from sketch-code.

bibhas2 avatar bibhas2 commented on July 20, 2024

Ah, thank you. I missed the prerequisites.

from sketch-code.

hasithaWalpola avatar hasithaWalpola commented on July 20, 2024

I also getting that problem my version is above 3

from sketch-code.

sir-argupta avatar sir-argupta commented on July 20, 2024

I also getting that problem my version is above 3

this will work only with python 3.6.4 version
please do perform these task in order

  1. !pip install opencv-python
  2. !apt update && apt install -y libsm6 libxext6
  3. !apt-get install -y libxrender-dev
  4. sudo apt-get install libsm6 libxrender1 libfontconfig1
  5. sudo python3 -m pip install opencv-contrib-python
  6. pip uninstall numpy
  7. pip uninstall numpy
  8. this two times becoz there are two version got installed by this time so we need to remove all of them
  9. pip install numpy

after this it will run without any problem

from sketch-code.

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.