Giter Club home page Giter Club logo

Comments (7)

imfing avatar imfing commented on June 14, 2024

First, make sure you could run the backend server.
For example, python app_stylize.py, and it will listen to the localhost port.

Uncomment this line # CORS(app) in both app_pix.py and app_stylize.py to allow CORS
Then, rerun the two scripts separately

You could also use F12 in your browser to check the console output of the frontend webpage and see if the backend service is working.
Good luck

from sketch-to-art.

Liameternal avatar Liameternal commented on June 14, 2024

Thank you for your reply, but there still have some problems,
OSError: File models/pix2pix/export.meta does not exist.
image

from sketch-to-art.

imfing avatar imfing commented on June 14, 2024

The pretrained pix2pix model is here: https://github.com/mtobeiyf/sketch-to-art/releases
Please download and put it in the ./models/pix2pix directory.
And other models could be downloaded via the scripts provided under the ./models directory.

from sketch-to-art.

Liameternal avatar Liameternal commented on June 14, 2024

ah...Maybe it does work,
image
What's the problem?

from sketch-to-art.

imfing avatar imfing commented on June 14, 2024

Have you run the app_stylize.py script?
And you have to make sure the models are placed under the ./models folder
See https://github.com/mtobeiyf/sketch-to-art/blob/master/server/README.md and
https://github.com/mtobeiyf/sketch-to-art/blob/master/server/models/download_models.sh

from sketch-to-art.

Liameternal avatar Liameternal commented on June 14, 2024

I tyied, but i always got this issue, "ImportError: cannot import name 'preserve_colors_np' from 'utils' (E:\Workspace\VirtualEnv\sketch-to-art\lib\site-packages\utils_init_.py)", I can't find a way to solve it on the web...

from sketch-to-art.

imfing avatar imfing commented on June 14, 2024

Please go to the server root by $cd server and run $ python app_stylize.py
not $ python server/app_stylize.py

from sketch-to-art.

Related Issues (12)

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.