HarisIqbal88 / PlotNeuralNet

Latex code for making neural networks diagrams
MIT License
21.74k stars 2.84k forks source link

[Can you push FCN8 code] #48

Open Vietdung113 opened 5 years ago

Vietdung113 commented 5 years ago

Thank you for your publish code. Can you add code of FCN-8 or shorcut connection code?

luotuoqingshan commented 5 years ago

I read the examples carefully. I think the latex version is easy to understand too. You can use latex directly.

beaniubideren commented 4 years ago

I also need, especially how to program the addition of the two outputs!!!

AlexandreBourrieau commented 2 years ago

Yes please post the code to create skip connexions with pyton which are on a connexion...

cwreynolds commented 1 year ago

Thanks for this utility from 2018. The diagrams are nice, but the instructions for use are rather cryptic.

Is the intent primarily to show some examples of how to use LaTeX to generate diagrams of neural nets? If so, is the idea I should pick one in PlotNeuralNet/examples/ most like my net, then modify its LaTeX code by hand to get what I need?

And if so, why does Getting Started (in README) seem to assume it will be used from Python? And if it is supposed to be used from Python, why is there no Python code in PlotNeuralNet/examples/

My assumption is that hand-modifying the LaTeX examples, ignoring Python, is the best way to go. But as a LaTeX newbie, before I go down that path I was hoping for reassurance that was the correct approach.

cwreynolds commented 1 year ago

Just in case anyone else comes across my previous comment: that is what I did, copied one of the examples at Overleaf, then modified it to meet my needs.

This was slow going at first since I am new to LaTeX, and knew nothing of tikz, but eventually puzzled out what was going on. Using this copy-and-modify approach (versus say generating the LaTeX from python) makes it easy to customize the graphics by simply modifying my local copy of RightBandedBox.sty

EG for my diagram, I turned off the “Banded-ness” (by commenting out the code that drew it) and changed the placement for xlabel, ylabel, and zlabel relative to the oblique boxes, as mentioned here: https://tex.stackexchange.com/questions/475055/how-to-align-the-label-to-centre#comment1654334_484098