Git Product home page Git Product logo

paintinglight's Introduction

paintinglight's People

Contributors

lllyasviel avatar lrisviel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

paintinglight's Issues

Cv2 Module Not Found

I get an error when execute python default.py my_image.png
This:
Traceback (most recent call last):
File "default.py", line 1, in
import cv2
ModuleNotFoundError: No module named 'cv2'

What can i do?

SRCNN.NET does not load

Expected Output: Model would load and proceed to show lighting of examples/custom image

Obtained Output: Failure to load model with the correct dependencies installed. Error reason is unknown but can be guessed at where the root issue is.

Code snippet

Traceback (most recent call last): File "example001.py", line 18, in <module> from ProjectPaintingLight import run File "C:\Users\prome\PycharmProjects\PaintingLight\PaintingLight-master\code\ProjectPaintingLight.py", line 26, in <module> srcnn = tf.keras.models.load_model('srcnn.net') File "C:\Users\prome\PycharmProjects\PaintingLight\core\lib\site-packages\tensorflow\python\keras\_impl\keras\models.py", line 244, in load_model model_config = json.loads(model_config.decode('utf-8')) AttributeError: 'str' object has no attribute 'decode'

I have gotten this program to work in the past, varies on day I installed python, some builds it will work, some builds it won't, even if they use the same dependencies and so on... A standalone version (packaged) or even a docker image might be useful, as this "app" is touchy enough to break from a number of other factors.

AttributeError: 'str' object has no attribute 'decode'

(PaintingLight) F:\PaintingLight\code>python default.py F:\PaintingLight\code\imgs\001.jpg
F:\1\envs\PaintingLight\lib\site-packages\tensorflow\python\framework\dtypes.py:469: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
F:\1\envs\PaintingLight\lib\site-packages\tensorflow\python\framework\dtypes.py:470: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
F:\1\envs\PaintingLight\lib\site-packages\tensorflow\python\framework\dtypes.py:471: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
F:\1\envs\PaintingLight\lib\site-packages\tensorflow\python\framework\dtypes.py:472: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
F:\1\envs\PaintingLight\lib\site-packages\tensorflow\python\framework\dtypes.py:473: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
F:\1\envs\PaintingLight\lib\site-packages\tensorflow\python\framework\dtypes.py:476: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
2023-06-01 16:27:14.741294: I C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
Traceback (most recent call last):
  File "default.py", line 19, in <module>
    from ProjectPaintingLight import run
  File "F:\PaintingLight\code\ProjectPaintingLight.py", line 26, in <module>
    srcnn = tf.keras.models.load_model('srcnn.net')
  File "F:\1\envs\PaintingLight\lib\site-packages\tensorflow\python\keras\_impl\keras\models.py", line 244, in load_model
    model_config = json.loads(model_config.decode('utf-8'))
AttributeError: 'str' object has no attribute 'decode'

Attribute Error: 'str' object has no attribute 'decode'

Hi, I have followed the instructions on both Weight and Biases and GitHub Readme. I was using anaconda, created a Python 3.6.12, I have successfully installed everything except Pyembree.
However, as I tried to run an example, I was greeted with Attribute Error: 'str' object has no attribute 'decode'
Note: I am new to Github, so I don't know if there is something I did wrong.

Kind regards
Ian
Attribute error

"cannot connect to X server" on ubuntu 16.04

Issue :

"cannot connect to X server" on ubuntu 16.04

Summary:

Running default.py with custom image or directly trying the examples results in the above error.
Ubuntu desktop with 16 04 version was setup as per : https://gist.github.com/pseudokool/c7707937f075dd74cfa905edc80de39b

This issue appears to be happening on lines 209-210 in ProjectPaintingLight.py where mouse is being accessed.

Installed versions:

Ubuntu : 16.04
Python : 3.6


As per here : https://github.com/lllyasviel/PaintingLight/issues/13

I have installed below specific version of required libraries in the same sequence.

pip install opencv-python==4.2.0.34
pip install opencv-contrib-python==4.2.0.34
pip install h5py==2.10.0

pip install tensorflow==1.4.0
pip install scipy==1.1.0
pip install trimesh==2.37.1

Steps to replicate:

python default.py test-img.png
python example001.py

Error logs


	2023-02-17 05:45:06.736604: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
	WARNING:tensorflow:No training configuration found in save file: the model was *not* compiled. Compile it manually.
	model-output<tensorflow.python.keras._impl.keras.engine.training.Model object at 0x7f2d8d56b2e8>
	Begin ray intersecting ...
	Intersecting finished.
	: cannot connect to X server :0

@lllyasviel @lllyasviel @78Alpha @jeexop @lrisviel @jeexop

License issue

Hey,

The artwork here:
https://github.com/lllyasviel/PaintingLight/blob/master/index_files/paintlight_title.jpg
published on
https://lllyasviel.github.io/PaintingLight/
is an artwork traced from my art and a copy of my OC and design of Shichimi... source comic page for proof:
https://www.peppercarrot.com/0_sources/0ther/artworks/hi-res/2016-08-16_comic-page_from-A-to-Z_tutorial_by-David-Revoy.jpg

But! I publish this art under Creative Commons attribution 4.0 International to "David Revoy"; it allows you to do use it, do derivation, etc. I just request here you write somewhere "artwork traced by <insertnamehere> from an artwork by David Revoy under CC-BY license, www.peppercarrot.com" . Thanks!

Seriously, the licence needs fixed.

There's been interest in adding this to Krita, but given people will use Krita for commercial works it's necessary to know how this project can be used. The Apache Licences in this repo would permit it; however, the copyright claim on the project's page would not.

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.