Skip to content

Commit

Permalink
Deployed 0e52f14 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
surajpaib committed Dec 4, 2023
1 parent 9e24357 commit e70efc2
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 21 deletions.
4 changes: 2 additions & 2 deletions basics/projects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ <h3 id="training-on-your-own-dataset">Training on your own dataset</h3>
<p class="admonition-title">Note</p>
<p>Lighter works with the default torchvision format of (image, target) and also with <code>dict</code> with <code>input</code> and <code>target</code> keys. The input/target key or tuple can contain complex input/target organization, e.g. multiple images for input and multiple labels for target</p>
</div>
<p>Now that you have built your dataset, all you need to do is add it to the lighter config! But wait, how will Lighter know where your code is? All lighter configs contain a <code>project</code> key that takes the full path to where your python code is located. Once you set this up, call <code>project.MyXRayDataset</code> and Lighter will pick up the dataset. </p>
<p>Now that you have built your dataset, all you need to do is add it to the lighter config! But wait, how will Lighter know where your code is? All lighter configs contain a <code>project</code> key that takes the full path to where your python code is located. Once you set this up, call <code>project.my_xray_dataset.MyXRayDataset</code> and Lighter will pick up the dataset. </p>
<p>In the above example, the path of the dataset is <code>/home/user/project/my_xray_dataset.py</code>. Copy the config shown above, make the following changes and run on the terminal</p>
<div class="annotate">
<div class="tabbed-set tabbed-alternate" data-tabs="1:2"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><input id="__tabbed_1_2" name="__tabbed_1" type="radio" /><div class="tabbed-labels"><label for="__tabbed_1_1">xray.yaml</label><label for="__tabbed_1_2">Terminal</label></div>
Expand All @@ -822,7 +822,7 @@ <h3 id="training-on-your-own-dataset">Training on your own dataset</h3>
</span><span id="__span-2-17"><a id="__codelineno-2-17" name="__codelineno-2-17" href="#__codelineno-2-17"></a>
</span><span id="__span-2-18"><a id="__codelineno-2-18" name="__codelineno-2-18" href="#__codelineno-2-18"></a><span class="nt">datasets</span><span class="p">:</span>
</span><span id="__span-2-19"><a id="__codelineno-2-19" name="__codelineno-2-19" href="#__codelineno-2-19"></a><span class="w"> </span><span class="nt">train</span><span class="p">:</span>
</span><span id="__span-2-20"><a id="__codelineno-2-20" name="__codelineno-2-20" href="#__codelineno-2-20"></a><span class="hll"><span class="w"> </span><span class="nt">_target_</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">project.MyXRayDataset</span>
</span><span id="__span-2-20"><a id="__codelineno-2-20" name="__codelineno-2-20" href="#__codelineno-2-20"></a><span class="hll"><span class="w"> </span><span class="nt">_target_</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">project.my_xray_dataset.MyXRayDataset</span>
</span></span><span id="__span-2-21"><a id="__codelineno-2-21" name="__codelineno-2-21" href="#__codelineno-2-21"></a><span class="hll"><span class="w"> </span><span class="nt">root_dir</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">.</span>
</span></span><span id="__span-2-22"><a id="__codelineno-2-22" name="__codelineno-2-22" href="#__codelineno-2-22"></a><span class="hll"><span class="w"> </span><span class="nt">annotations_file</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">label.csv</span>
</span></span><span id="__span-2-23"><a id="__codelineno-2-23" name="__codelineno-2-23" href="#__codelineno-2-23"></a><span class="hll"><span class="w"> </span><span class="nt">transform</span><span class="p">:</span>
Expand Down
42 changes: 34 additions & 8 deletions index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
:root{
--anim-duration: 1s;
--overlay-color-1: #ff0000;
--overlay-color-2: #0000ff;
}

.navigation-links2-nav {
flex: 0 0 auto;
display: flex;
Expand All @@ -14,13 +20,6 @@
margin-left: var(--dl-space-space-twounits);
}








@media(max-width: 767px) {
.navigation-links2-nav {
align-items: flex-start;
Expand Down Expand Up @@ -189,8 +188,35 @@
border-radius: var(--dl-radius-radius-radius4);
flex-direction: column;
justify-content: center;
background-image: linear-gradient(45deg, rgb(194, 229, 156) 2.00%,rgb(194, 229, 156) 11.00%,rgb(92, 152, 161) 43.00%,rgb(76, 125, 166) 100.00%);
opacity: 0.8;
position: relative;
}

@keyframes gradientAnim {
0% {
background: linear-gradient(60deg, rgb(194, 229, 156) 2.00%, rgb(194, 229, 156) 11.00%, rgb(92, 152, 161) 43.00%, rgb(76, 125, 166) 100.00%);
}
50% {
background: linear-gradient(120deg, rgb(194, 229, 156) 2.00%, rgb(194, 229, 156) 11.00%, rgb(92, 152, 161) 43.00%, rgb(76, 125, 166) 100.00%);
}
100% {
background: linear-gradient(60deg, rgb(194, 229, 156) 2.00%, rgb(194, 229, 156) 11.00%, rgb(92, 152, 161) 43.00%, rgb(76, 125, 166) 100.00%);
}
}

.home-hero1:before, .home-hero1:after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
animation: gradientAnim 10s ease-in-out 0s infinite alternate; /* Increased duration for smoother transition */
}



.home-container02 {
gap: var(--dl-space-space-twounits);
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
</div>
</header>
<div class="home-hero">
<div class="home-hero1">
<div class="home-hero1" id="gradient">
<div class="home-container02">
<h1 class="home-hero-heading heading1">Lighter</h1>
<span class="home-hero-sub-heading">
Expand Down
42 changes: 34 additions & 8 deletions overrides/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
:root{
--anim-duration: 1s;
--overlay-color-1: #ff0000;
--overlay-color-2: #0000ff;
}

.navigation-links2-nav {
flex: 0 0 auto;
display: flex;
Expand All @@ -14,13 +20,6 @@
margin-left: var(--dl-space-space-twounits);
}








@media(max-width: 767px) {
.navigation-links2-nav {
align-items: flex-start;
Expand Down Expand Up @@ -189,8 +188,35 @@
border-radius: var(--dl-radius-radius-radius4);
flex-direction: column;
justify-content: center;
background-image: linear-gradient(45deg, rgb(194, 229, 156) 2.00%,rgb(194, 229, 156) 11.00%,rgb(92, 152, 161) 43.00%,rgb(76, 125, 166) 100.00%);
opacity: 0.8;
position: relative;
}

@keyframes gradientAnim {
0% {
background: linear-gradient(60deg, rgb(194, 229, 156) 2.00%, rgb(194, 229, 156) 11.00%, rgb(92, 152, 161) 43.00%, rgb(76, 125, 166) 100.00%);
}
50% {
background: linear-gradient(120deg, rgb(194, 229, 156) 2.00%, rgb(194, 229, 156) 11.00%, rgb(92, 152, 161) 43.00%, rgb(76, 125, 166) 100.00%);
}
100% {
background: linear-gradient(60deg, rgb(194, 229, 156) 2.00%, rgb(194, 229, 156) 11.00%, rgb(92, 152, 161) 43.00%, rgb(76, 125, 166) 100.00%);
}
}

.home-hero1:before, .home-hero1:after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
animation: gradientAnim 10s ease-in-out 0s infinite alternate; /* Increased duration for smoother transition */
}



.home-container02 {
gap: var(--dl-space-space-twounits);
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion overrides/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
</div>
</header>
<div class="home-hero">
<div class="home-hero1">
<div class="home-hero1" id="gradient">
<div class="home-container02">
<h1 class="home-hero-heading heading1">Lighter</h1>
<span class="home-hero-sub-heading">
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit e70efc2

Please sign in to comment.