Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#396 Trainer constructor cleanup

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:feature/SG-266_clean_trainer_ctor
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
  1. <!DOCTYPE html>
  2. <html class="writer-html5" lang="en" >
  3. <head>
  4. <meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>&lt;no title&gt; &mdash; SuperGradients 1.0 documentation</title>
  7. <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
  8. <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  9. <link rel="stylesheet" href="_static/graphviz.css" type="text/css" />
  10. <!--[if lt IE 9]>
  11. <script src="_static/js/html5shiv.min.js"></script>
  12. <![endif]-->
  13. <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
  14. <script src="_static/jquery.js"></script>
  15. <script src="_static/underscore.js"></script>
  16. <script src="_static/doctools.js"></script>
  17. <script src="_static/js/theme.js"></script>
  18. <link rel="index" title="Index" href="genindex.html" />
  19. <link rel="search" title="Search" href="search.html" />
  20. </head>
  21. <body class="wy-body-for-nav">
  22. <div class="wy-grid-for-nav">
  23. <nav data-toggle="wy-nav-shift" class="wy-nav-side">
  24. <div class="wy-side-scroll">
  25. <div class="wy-side-nav-search" >
  26. <a href="index.html" class="icon icon-home"> SuperGradients
  27. </a>
  28. <div role="search">
  29. <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
  30. <input type="text" name="q" placeholder="Search docs" />
  31. <input type="hidden" name="check_keywords" value="yes" />
  32. <input type="hidden" name="area" value="default" />
  33. </form>
  34. </div>
  35. </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
  36. <p class="caption"><span class="caption-text">Welcome To SuperGradients</span></p>
  37. <ul>
  38. <li class="toctree-l1"><a class="reference internal" href="welcome.html">Fill our 4-question quick survey! We will raffle free SuperGradients swag between those who will participate -&gt; Fill Survey</a></li>
  39. <li class="toctree-l1"><a class="reference internal" href="welcome.html#supergradients">SuperGradients</a></li>
  40. </ul>
  41. <p class="caption"><span class="caption-text">Technical Documentation</span></p>
  42. <ul>
  43. <li class="toctree-l1"><a class="reference internal" href="super_gradients.common.html">Common package</a></li>
  44. <li class="toctree-l1"><a class="reference internal" href="super_gradients.training.html">Training package</a></li>
  45. </ul>
  46. <p class="caption"><span class="caption-text">User Guide</span></p>
  47. <ul>
  48. <li class="toctree-l1"><a class="reference internal" href="user_guide.html">What is SuperGradients?</a></li>
  49. <li class="toctree-l1"><a class="reference internal" href="user_guide.html#introducing-the-supergradients-library">Introducing the SuperGradients library</a></li>
  50. <li class="toctree-l1"><a class="reference internal" href="user_guide.html#installation">Installation</a></li>
  51. <li class="toctree-l1"><a class="reference internal" href="user_guide.html#integrating-your-training-code-complete-walkthrough">Integrating Your Training Code - Complete Walkthrough</a></li>
  52. <li class="toctree-l1"><a class="reference internal" href="user_guide.html#training-parameters">Training Parameters</a></li>
  53. <li class="toctree-l1"><a class="reference internal" href="user_guide.html#logs-and-checkpoints">Logs and Checkpoints</a></li>
  54. <li class="toctree-l1"><a class="reference internal" href="user_guide.html#dataset-parameters">Dataset Parameters</a></li>
  55. <li class="toctree-l1"><a class="reference internal" href="user_guide.html#network-architectures">Network Architectures</a></li>
  56. <li class="toctree-l1"><a class="reference internal" href="user_guide.html#pretrained-models">Pretrained Models</a></li>
  57. <li class="toctree-l1"><a class="reference internal" href="user_guide.html#how-to-reproduce-our-training-recipes">How To Reproduce Our Training Recipes</a></li>
  58. <li class="toctree-l1"><a class="reference internal" href="user_guide.html#professional-tools-integration">Professional Tools Integration</a></li>
  59. <li class="toctree-l1"><a class="reference internal" href="user_guide.html#supergradients-faq">SuperGradients FAQ</a></li>
  60. </ul>
  61. </div>
  62. </div>
  63. </nav>
  64. <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
  65. <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
  66. <a href="index.html">SuperGradients</a>
  67. </nav>
  68. <div class="wy-nav-content">
  69. <div class="rst-content">
  70. <div role="navigation" aria-label="Page navigation">
  71. <ul class="wy-breadcrumbs">
  72. <li><a href="index.html" class="icon icon-home"></a> &raquo;</li>
  73. <li>&lt;no title&gt;</li>
  74. <li class="wy-breadcrumbs-aside">
  75. <a href="_sources/LICENSE.md.txt" rel="nofollow"> View page source</a>
  76. </li>
  77. </ul>
  78. <hr/>
  79. </div>
  80. <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
  81. <div itemprop="articleBody">
  82. <div class="highlight-none notranslate"><div class="highlight"><pre><span></span> Apache License
  83. Version 2.0, January 2004
  84. http://www.apache.org/licenses/
  85. </pre></div>
  86. </div>
  87. <p>TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION</p>
  88. <ol class="arabic">
  89. <li><p>Definitions.</p>
  90. <p>“License” shall mean the terms and conditions for use, reproduction,
  91. and distribution as defined by Sections 1 through 9 of this document.</p>
  92. <p>“Licensor” shall mean the copyright owner or entity authorized by
  93. the copyright owner that is granting the License.</p>
  94. <p>“Legal Entity” shall mean the union of the acting entity and all
  95. other entities that control, are controlled by, or are under common
  96. control with that entity. For the purposes of this definition,
  97. “control” means (i) the power, direct or indirect, to cause the
  98. direction or management of such entity, whether by contract or
  99. otherwise, or (ii) ownership of fifty percent (50%) or more of the
  100. outstanding shares, or (iii) beneficial ownership of such entity.</p>
  101. <p>“You” (or “Your”) shall mean an individual or Legal Entity
  102. exercising permissions granted by this License.</p>
  103. <p>“Source” form shall mean the preferred form for making modifications,
  104. including but not limited to software source code, documentation
  105. source, and configuration files.</p>
  106. <p>“Object” form shall mean any form resulting from mechanical
  107. transformation or translation of a Source form, including but
  108. not limited to compiled object code, generated documentation,
  109. and conversions to other media types.</p>
  110. <p>“Work” shall mean the work of authorship, whether in Source or
  111. Object form, made available under the License, as indicated by a
  112. copyright notice that is included in or attached to the work
  113. (an example is provided in the Appendix below).</p>
  114. <p>“Derivative Works” shall mean any work, whether in Source or Object
  115. form, that is based on (or derived from) the Work and for which the
  116. editorial revisions, annotations, elaborations, or other modifications
  117. represent, as a whole, an original work of authorship. For the purposes
  118. of this License, Derivative Works shall not include works that remain
  119. separable from, or merely link (or bind by name) to the interfaces of,
  120. the Work and Derivative Works thereof.</p>
  121. <p>“Contribution” shall mean any work of authorship, including
  122. the original version of the Work and any modifications or additions
  123. to that Work or Derivative Works thereof, that is intentionally
  124. submitted to Licensor for inclusion in the Work by the copyright owner
  125. or by an individual or Legal Entity authorized to submit on behalf of
  126. the copyright owner. For the purposes of this definition, “submitted”
  127. means any form of electronic, verbal, or written communication sent
  128. to the Licensor or its representatives, including but not limited to
  129. communication on electronic mailing lists, source code control systems,
  130. and issue tracking systems that are managed by, or on behalf of, the
  131. Licensor for the purpose of discussing and improving the Work, but
  132. excluding communication that is conspicuously marked or otherwise
  133. designated in writing by the copyright owner as “Not a Contribution.”</p>
  134. <p>“Contributor” shall mean Licensor and any individual or Legal Entity
  135. on behalf of whom a Contribution has been received by Licensor and
  136. subsequently incorporated within the Work.</p>
  137. </li>
  138. <li><p>Grant of Copyright License. Subject to the terms and conditions of
  139. this License, each Contributor hereby grants to You a perpetual,
  140. worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  141. copyright license to reproduce, prepare Derivative Works of,
  142. publicly display, publicly perform, sublicense, and distribute the
  143. Work and such Derivative Works in Source or Object form.</p></li>
  144. <li><p>Grant of Patent License. Subject to the terms and conditions of
  145. this License, each Contributor hereby grants to You a perpetual,
  146. worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  147. (except as stated in this section) patent license to make, have made,
  148. use, offer to sell, sell, import, and otherwise transfer the Work,
  149. where such license applies only to those patent claims licensable
  150. by such Contributor that are necessarily infringed by their
  151. Contribution(s) alone or by combination of their Contribution(s)
  152. with the Work to which such Contribution(s) was submitted. If You
  153. institute patent litigation against any entity (including a
  154. cross-claim or counterclaim in a lawsuit) alleging that the Work
  155. or a Contribution incorporated within the Work constitutes direct
  156. or contributory patent infringement, then any patent licenses
  157. granted to You under this License for that Work shall terminate
  158. as of the date such litigation is filed.</p></li>
  159. <li><p>Redistribution. You may reproduce and distribute copies of the
  160. Work or Derivative Works thereof in any medium, with or without
  161. modifications, and in Source or Object form, provided that You
  162. meet the following conditions:</p>
  163. <p>(a) You must give any other recipients of the Work or
  164. Derivative Works a copy of this License; and</p>
  165. <p>(b) You must cause any modified files to carry prominent notices
  166. stating that You changed the files; and</p>
  167. <p>(c) You must retain, in the Source form of any Derivative Works
  168. that You distribute, all copyright, patent, trademark, and
  169. attribution notices from the Source form of the Work,
  170. excluding those notices that do not pertain to any part of
  171. the Derivative Works; and</p>
  172. <p>(d) If the Work includes a “NOTICE” text file as part of its
  173. distribution, then any Derivative Works that You distribute must
  174. include a readable copy of the attribution notices contained
  175. within such NOTICE file, excluding those notices that do not
  176. pertain to any part of the Derivative Works, in at least one
  177. of the following places: within a NOTICE text file distributed
  178. as part of the Derivative Works; within the Source form or
  179. documentation, if provided along with the Derivative Works; or,
  180. within a display generated by the Derivative Works, if and
  181. wherever such third-party notices normally appear. The contents
  182. of the NOTICE file are for informational purposes only and
  183. do not modify the License. You may add Your own attribution
  184. notices within Derivative Works that You distribute, alongside
  185. or as an addendum to the NOTICE text from the Work, provided
  186. that such additional attribution notices cannot be construed
  187. as modifying the License.</p>
  188. <p>You may add Your own copyright statement to Your modifications and
  189. may provide additional or different license terms and conditions
  190. for use, reproduction, or distribution of Your modifications, or
  191. for any such Derivative Works as a whole, provided Your use,
  192. reproduction, and distribution of the Work otherwise complies with
  193. the conditions stated in this License.</p>
  194. </li>
  195. <li><p>Submission of Contributions. Unless You explicitly state otherwise,
  196. any Contribution intentionally submitted for inclusion in the Work
  197. by You to the Licensor shall be under the terms and conditions of
  198. this License, without any additional terms or conditions.
  199. Notwithstanding the above, nothing herein shall supersede or modify
  200. the terms of any separate license agreement you may have executed
  201. with Licensor regarding such Contributions.</p></li>
  202. <li><p>Trademarks. This License does not grant permission to use the trade
  203. names, trademarks, service marks, or product names of the Licensor,
  204. except as required for reasonable and customary use in describing the
  205. origin of the Work and reproducing the content of the NOTICE file.</p></li>
  206. <li><p>Disclaimer of Warranty. Unless required by applicable law or
  207. agreed to in writing, Licensor provides the Work (and each
  208. Contributor provides its Contributions) on an “AS IS” BASIS,
  209. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  210. implied, including, without limitation, any warranties or conditions
  211. of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
  212. PARTICULAR PURPOSE. You are solely responsible for determining the
  213. appropriateness of using or redistributing the Work and assume any
  214. risks associated with Your exercise of permissions under this License.</p></li>
  215. <li><p>Limitation of Liability. In no event and under no legal theory,
  216. whether in tort (including negligence), contract, or otherwise,
  217. unless required by applicable law (such as deliberate and grossly
  218. negligent acts) or agreed to in writing, shall any Contributor be
  219. liable to You for damages, including any direct, indirect, special,
  220. incidental, or consequential damages of any character arising as a
  221. result of this License or out of the use or inability to use the
  222. Work (including but not limited to damages for loss of goodwill,
  223. work stoppage, computer failure or malfunction, or any and all
  224. other commercial damages or losses), even if such Contributor
  225. has been advised of the possibility of such damages.</p></li>
  226. <li><p>Accepting Warranty or Additional Liability. While redistributing
  227. the Work or Derivative Works thereof, You may choose to offer,
  228. and charge a fee for, acceptance of support, warranty, indemnity,
  229. or other liability obligations and/or rights consistent with this
  230. License. However, in accepting such obligations, You may act only
  231. on Your own behalf and on Your sole responsibility, not on behalf
  232. of any other Contributor, and only if You agree to indemnify,
  233. defend, and hold each Contributor harmless for any liability
  234. incurred by, or claims asserted against, such Contributor by reason
  235. of your accepting any such warranty or additional liability.</p></li>
  236. </ol>
  237. <p>END OF TERMS AND CONDITIONS</p>
  238. <p>APPENDIX: How to apply the Apache License to your work.</p>
  239. <div class="highlight-none notranslate"><div class="highlight"><pre><span></span> To apply the Apache License to your work, attach the following
  240. boilerplate notice, with the fields enclosed by brackets &quot;[]&quot;
  241. replaced with your own identifying information. (Don&#39;t include
  242. the brackets!) The text should be enclosed in the appropriate
  243. comment syntax for the file format. We also recommend that a
  244. file or class name and description of purpose be included on the
  245. same &quot;printed page&quot; as the copyright notice for easier
  246. identification within third-party archives.
  247. </pre></div>
  248. </div>
  249. <p>Copyright [2022] [Deci-AI]</p>
  250. <p>Licensed under the Apache License, Version 2.0 (the “License”);
  251. you may not use this file except in compliance with the License.
  252. You may obtain a copy of the License at</p>
  253. <div class="highlight-none notranslate"><div class="highlight"><pre><span></span> http://www.apache.org/licenses/LICENSE-2.0
  254. </pre></div>
  255. </div>
  256. <p>Unless required by applicable law or agreed to in writing, software
  257. distributed under the License is distributed on an “AS IS” BASIS,
  258. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  259. See the License for the specific language governing permissions and
  260. limitations under the License.</p>
  261. </div>
  262. </div>
  263. <footer>
  264. <hr/>
  265. <div role="contentinfo">
  266. <p>&#169; Copyright 2021, SuperGradients team.</p>
  267. </div>
  268. Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
  269. <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
  270. provided by <a href="https://readthedocs.org">Read the Docs</a>.
  271. </footer>
  272. </div>
  273. </div>
  274. </section>
  275. </div>
  276. <script>
  277. jQuery(function () {
  278. SphinxRtdTheme.Navigation.enable(true);
  279. });
  280. </script>
  281. </body>
  282. </html>
Discard
Tip!

Press p or to see the previous file or, n or to see the next file