2architecture.tex 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. \TODO{some text}
  2. \section{Input File Format}\label{sec:inputFileFormat}
  3. The input to \appname is a JSON file.
  4. The data structure is modeled as a higher order entity relationship model in figure~\ref{fig:iff}.
  5. An example is displayed in figure~\ref{fig:json-example}
  6. \begin{figure}[tp]
  7. \centering
  8. \includegraphics[width=0.9\textwidth]{img/json.png}
  9. \caption[Input file format]{Input file format illustrated as a HERM diagram}
  10. \label{fig:iff}
  11. \end{figure}
  12. \begin{figure}
  13. % \lstinputlisting[language=Python,emph={Conv2D,MaxPooling2D,Dropout,Flatten,Sequential,Dense}]{src/keras_example_conv.py}
  14. \begin{lstlisting}[language=json,emph={Conv2D,MaxPooling2D,Dropout,Flatten,Sequential,Dense}]
  15. {
  16. "layers":[
  17. [
  18. {
  19. "name":"n2",
  20. "width":10,
  21. "height":10,
  22. "x":0,
  23. "y":0
  24. },
  25. {
  26. "name":"n2",
  27. "width":10,
  28. "height":10,
  29. "x":20,
  30. "y":0,
  31. "layers":[
  32. [
  33. {
  34. "name":"n2",
  35. "width":10,
  36. "height":10,
  37. "x":0,
  38. "y":0
  39. }
  40. ]
  41. ]
  42. }
  43. ]
  44. ],
  45. "name":"n0"
  46. }
  47. \end{lstlisting}
  48. \caption[Example Input File]{Example Input file that is understood by \appname.}
  49. \label{fig:json-example}
  50. \end{figure}