lllyasviel / paintinglight Goto Github PK
View Code? Open in Web Editor NEWGenerating Digital Painting Lighting Effects via RGB-space Geometry (SIGGRAPH2020/TOG2020)
License: Apache License 2.0
Generating Digital Painting Lighting Effects via RGB-space Geometry (SIGGRAPH2020/TOG2020)
License: Apache License 2.0
pip instal tensorflow==1.4.0
should be install
instead of instal
how much quality will be degraded?
Because if check only the closest hit, then ray tracer can be accelerated using opencl.
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.
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?
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.
I'm personally looking forward to seeing when you release it. I'd like to know a tentative timeline. Or have you abandoned the idea?
(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'
out-of-date
how exactly do i save my results? i've been loving playing arround with this but i just wish i knew how to save some angles since some of these look very impressive
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.
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!
out-of-date
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
Am trying to reproduce the install and my system fails to find tensorflow 1.4.0.
Where can I get one for amd64?
sir, can you tell me which is the main file or which file I need to run
how to mimic the effect of lighting with multiple colors , and don't change the color of the entire image, thank you
This error comes out
fatal: unable to access 'https://github.com/lllyasviel/PaintingLight.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.