Comments (7)
Hi @Miata1z, the physical implementation seems to be an interesting idea!
To remove the semi-transparent effect, you can modify line 293 and line 314 of networks.py to the follows:
if self.rdrr.renderer in ['oilpaintbrush', 'airbrush', 'markerpen']:
Please tell me whether it works. Thanks!
from stylized-neural-painting.
Hello! The modifications that you suggested to me did not help me (I am attaching a video before / after modification networks.py). At first I was delighted when I saw how the result was rendered in the G_pred window, although at the end the model produced something completely different :) (Pic 1). Hence the question, the G pred generation window did not take into account the edits that I made to the file? (networks.py)
Yes, the intersection brushstroke effect still persists. (Pic 2)
While I settled on the oilbrush model, but ran into a gradient problem (pic 3), it would be difficult to repeat physically :)
(I changed the brush sprite for the oilbrush to make it easier to compute the brush stroke later :) )(Pic 4)
The question is off topic. Could you tell me how to save generation strokes separately? I mean... (Pic 5)
Thanks!
Pic 4
Pic 5
Generation was performed with the parameter --keep_aspect_ratio True (default False)
rendering video (original networks.py)
https://youtu.be/6uU8g-wyd2E
face animated (original networks.py)
https://youtu.be/ECYNNnTnUzU
rendering video (modified networks.py)
https://youtu.be/l3WN1DdJM78
face animated (modified networks.py)
https://www.youtube.com/watch?v=wdo0NLU67o4
output files (png strokes, etc)
modified : https://drive.google.com/file/d/1j6GoNqs_zHuGt5t0-CuBJW6fYDfhhKm_/view?usp=sharing
original: https://drive.google.com/file/d/1HkUwQuFO0b1LX7ORpUyFFpO7tLFjzhCf/view?usp=sharing
from stylized-neural-painting.
@Miata1z, sorry it was my bad. You can ignore my last suggestion and update the line 64 and line 94 of demo_prog.py to:
pt.x_alpha.data = torch.clamp(pt.x_alpha.data, 0.99, 1)
This will constraint the alpha value of the strokes close to 1.0 both in the optimization and the final rendering phases.
Please let me know whether it helps this time.
from stylized-neural-painting.
@Miata1z By the way, I think your idea of physical painting with a robot arm is amazing. I really want to see if you can achieve that. Would you like to share the physical painting results with me when it is ready? No matter it succeeds or not will be interesting.
from stylized-neural-painting.
Of course I will. In turn, I want to say that without your repository nothing would have happened :)
from stylized-neural-painting.
pt.x_alpha.data = torch.clamp(pt.x_alpha.data, 0.99, 1)
Thanks. That helped. Result (face animated/strokes) https://drive.google.com/file/d/1vyaX9WcVYSJw0C3IqoT806EakZ-vIUDF/view?usp=sharing
If you don't mind, I have a couple more questions :)
Could you tell me how to save generation strokes separately?
I don't think this will affect the result, but is it possible to somehow remove these artifacts?
As you already know in what follows, I want to transfer the coordinates of the strokes to the plotter. Perhaps I'm complicating it and your algorithm already contains coordinates that I can convert and send to the plotter?
Thanks!
from stylized-neural-painting.
@Miata1z, good questions are sorry for the late reply.
For the step-by-step strokes, you can find them in the ./output
folder. If you load the stroke vector file ./output/*_strokes.npz
correctly, you will see the step-by-step parameters. You can refer to line 377-386 of ./painter.py
for more details.
For the configuration of the stroke coordinates, you can refer to the supplementary material of our paper.
from stylized-neural-painting.
Related Issues (20)
- MacBook HOT 4
- brush_alpha erro HOT 2
- Google drive not letting me download the oil pretrained HOT 1
- Style Transfer Colab Notebook error HOT 2
- 文件版许可证与readme中的内容不符 HOT 1
- Rendering Vector To Image
- About training new painting styles HOT 1
- style transfer in demo_nst.py
- ImportError: cannot import name 'is_url' from 'runway.utils'
- Graphics card not working
- The difference of _render and _drawing_step_states
- Cannot find zipfile directory HOT 2
- Limiting brush stroke sizes
- 2 Questions about the method of this paper
- Ask some questions about this project
- How can change the color and shape parameter of the input picture?
- 詢問資料集相關事宜
- What Exactly AI do?
- Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stylized-neural-painting.