-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.drawio
More file actions
103 lines (103 loc) · 9.66 KB
/
README.drawio
File metadata and controls
103 lines (103 loc) · 9.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<mxfile host="65bd71144e">
<diagram id="LVOcv92nE5IVGH69_gBa" name="ページ1">
<mxGraphModel dx="770" dy="483" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1654" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="4" value="" style="edgeStyle=none;html=1;" parent="1" source="2" target="3" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="2" value="main.py" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="40" y="40" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="7" value="" style="edgeStyle=none;html=1;entryX=0;entryY=0;entryDx=0;entryDy=0;" parent="1" source="3" target="6" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="3" value="pipline.py" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="130" y="40" width="60" height="30" as="geometry"/>
</mxCell>
<mxCell id="5" value="プログラム実行手順" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry width="120" height="30" as="geometry"/>
</mxCell>
<mxCell id="15" style="edgeStyle=none;html=1;exitX=0.25;exitY=1;exitDx=0;exitDy=0;strokeColor=default;endArrow=none;endFill=0;entryX=0;entryY=0;entryDx=0;entryDy=0;" parent="1" source="6" target="14" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="340" y="160" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="6" value="generate_step_from_2d_cad_image()" style="rounded=1;whiteSpace=wrap;html=1;align=left;" parent="1" vertex="1">
<mxGeometry x="160" y="110" width="710" height="30" as="geometry"/>
</mxCell>
<mxCell id="11" value="" style="edgeStyle=none;html=1;endArrow=none;exitX=0;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0;entryDx=0;entryDy=0;strokeColor=default;" parent="1" source="6" target="10" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="160" y="150" as="sourcePoint"/>
<mxPoint x="160" y="230" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="13" style="edgeStyle=none;html=1;exitX=0.25;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0;entryDx=0;entryDy=0;endArrow=none;endFill=0;" parent="1" source="10" target="12" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="10" value="image.py" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="160" y="170" width="80" height="30" as="geometry"/>
</mxCell>
<mxCell id="12" value="図面の画像(.png)の読み込み<br>load_from_file()" style="rounded=1;whiteSpace=wrap;html=1;align=left;" parent="1" vertex="1">
<mxGeometry x="180" y="230" width="170" height="40" as="geometry"/>
</mxCell>
<mxCell id="16" value="" style="edgeStyle=none;html=1;strokeColor=default;endArrow=none;endFill=0;entryX=0;entryY=0;entryDx=0;entryDy=0;" parent="1" source="14" target="17" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="14" value="chains.py" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="340" y="170" width="80" height="30" as="geometry"/>
</mxCell>
<mxCell id="19" value="" style="edgeStyle=none;html=1;strokeColor=default;endArrow=none;endFill=0;exitX=0;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="27" target="18" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="30" value="" style="edgeStyle=orthogonalEdgeStyle;html=1;fontColor=#33FF33;curved=1;" parent="1" source="17" target="29" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="17" value="学習用の`chain`<br><span style="color: rgb(156, 220, 254); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; text-align: left; background-color: rgb(31, 31, 31);">chain =&nbsp;</span><font color="#33ff33">CadCodeGeneratorChain</font>" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="380" y="230" width="230" height="40" as="geometry"/>
</mxCell>
<mxCell id="21" value="" style="edgeStyle=none;html=1;strokeColor=default;endArrow=none;endFill=0;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0;entryY=0;entryDx=0;entryDy=0;" parent="1" source="23" target="20" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="24" style="edgeStyle=none;html=1;strokeColor=default;fontColor=#FFFFFF;endArrow=none;endFill=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="18" target="23" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="690" y="370" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="18" value="num_refinements回 学習を行う" style="rhombus;whiteSpace=wrap;html=1;rounded=1;" parent="1" vertex="1">
<mxGeometry x="620" y="290" width="140" height="60" as="geometry"/>
</mxCell>
<mxCell id="20" value="<div style="font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><font color="#ffffff">.step ファイルを svgに変換<br>render_and_export_image()</font></div>" style="whiteSpace=wrap;html=1;rounded=1;labelBackgroundColor=none;" parent="1" vertex="1">
<mxGeometry x="690" y="440" width="250" height="50" as="geometry"/>
</mxCell>
<mxCell id="23" value="render.py" style="rounded=0;whiteSpace=wrap;html=1;fontColor=#FFFFFF;" parent="1" vertex="1">
<mxGeometry x="645" y="380" width="90" height="30" as="geometry"/>
</mxCell>
<mxCell id="25" value="" style="edgeStyle=none;html=1;strokeColor=default;endArrow=none;endFill=0;entryX=0;entryY=0;entryDx=0;entryDy=0;" parent="1" source="26" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="689.9999999999998" y="230" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="28" value="" style="edgeStyle=none;html=1;entryX=0.75;entryY=1;entryDx=0;entryDy=0;" parent="1" source="26" target="6" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="26" value="chains.py" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="650" y="170" width="80" height="30" as="geometry"/>
</mxCell>
<mxCell id="27" value="本番用の`chain`<br><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 14px; line-height: 19px;"><span style="color: #4ec9b0;">CadCodeRefinerChain</span></div>" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="690" y="230" width="190" height="40" as="geometry"/>
</mxCell>
<mxCell id="33" value="" style="edgeStyle=none;html=1;" parent="1" source="29" target="31" edge="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="29" value="サンプルコードからFewShot学習したchainに回答させる<br><div style="color: rgb(204, 204, 204); background-color: rgb(31, 31, 31); font-family: Consolas, &quot;Courier New&quot;, monospace; font-weight: normal; font-size: 14px; line-height: 19px;"><div><span style="color: #9cdcfe;">result</span><span style="color: #cccccc;"> </span><span style="color: #d4d4d4;">=</span><span style="color: #9cdcfe;">chain</span><span style="color: #cccccc;">.invoke(</span><span style="color: #9cdcfe;">image_data</span><span style="color: #cccccc;">)[</span><span style="color: #ce9178;">"result"</span><span style="color: #cccccc;">]</span></div></div>" style="whiteSpace=wrap;html=1;rounded=1;align=left;" parent="1" vertex="1">
<mxGeometry x="210" y="330" width="390" height="60" as="geometry"/>
</mxCell>
<mxCell id="31" value="agents.py" style="rounded=0;whiteSpace=wrap;html=1;fontColor=#33FF33;" parent="1" vertex="1">
<mxGeometry x="340" y="420" width="90" height="30" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>