CLIP/docs/tree.html

134 lines
6.8 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="github-markdown.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
<style>
.directory:hover {
cursor: pointer;
text-decoration: underline;
}
:target {
background-color: yellow !important;
}
.folded::before {
content: '\25B6';
margin-right: 8px;
/* Add space between marker and text */
}
.expanded::before {
content: '\25BC';
margin-right: 8px;
/* Add space between marker and text */
}
</style>
<script>
function toggleVisibility(element) {
let mclass = element.getAttribute("class");
if (mclass == "expanded") {
element.setAttribute('class', 'folded');
} else {
element.setAttribute('class', 'expanded');
}
const siblings = element.parentNode.children;
for (const sibling of siblings) {
if (sibling !== element) {
sibling.style.display = (sibling.style.display === 'none') ? 'block' : 'none';
}
}
}
</script>
<style>
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
}
@media (max-width: 767px) {
.markdown-body {
padding: 15px;
}
.partial-repository-url {
display: none;
}
}
ul {
list-style: none;
}
</style>
</head>
<body>
<article class="markdown-body">
<h2>Project Structure<span hierarchy="0" class="partial-repository-url"> of: openai/CLIP</span><div style="float: right;"><a href="index.html"><i class="bi bi-search"></i></a></div></h2>
<ul>
<li><span hierarchy="0" class="expanded" onclick="toggleVisibility(this)" ><strong class="directory" id="/"><code>CLIP</code></strong> <em>CLIP model experiments, data, and utilities</em></span><ul>
<li><a href="index.html?q=/README.md" id="/README.md"><code>README&period;md</code></a> <em>CLIP feature extraction for CIFAR100 and logistic regression</em></li>
<li><span hierarchy="1" class="expanded" onclick="toggleVisibility(this)" ><strong class="directory" id="/clip/"><code>clip</code></strong> <em>CLIP model and tokenizer downloader</em></span><ul>
<li><a href="index.html?q=/clip/__init__.py" id="/clip/__init__.py"><code>&UnderBar;&UnderBar;init&UnderBar;&UnderBar;&period;py</code></a> <em>Imports "clip" module functions and classes.</em></li>
<li><a href="index.html?q=/clip/clip.py" id="/clip/clip.py"><code>clip&period;py</code></a> <em>CLIP model downloader and tokenizer.</em></li>
<li><a href="index.html?q=/clip/model.py" id="/clip/model.py"><code>model&period;py</code></a> <em>CLIP models, deep learning, attention mechanisms, ConvNeuralNetworks, VisionTransformers.</em></li>
<li><a href="index.html?q=/clip/simple_tokenizer.py" id="/clip/simple_tokenizer.py"><code>simple&UnderBar;tokenizer&period;py</code></a> <em>SimpleTokenizer: BPE-based text tokenization, cleaning, encoding, and decoding.</em></li>
</ul>
</li>
<li><span hierarchy="1" class="expanded" onclick="toggleVisibility(this)" ><strong class="directory" id="/data/"><code>data</code></strong> <em>Geo-Tagged, Rendered SST2, YFCC100M Dataset Directory</em></span><ul>
<li><a href="index.html?q=/data/country211.md" id="/data/country211.md"><code>country211&period;md</code></a> <em>Download, Extract &amp; Classify Country211 Geo-Tagged Images</em></li>
<li><a href="index.html?q=/data/rendered-sst2.md" id="/data/rendered-sst2.md"><code>rendered-sst2&period;md</code></a> <em>Rendered SST2 dataset: Image Classification.</em></li>
<li><a href="index.html?q=/data/yfcc100m.md" id="/data/yfcc100m.md"><code>yfcc100m&period;md</code></a> <em>YFCC100M dataset: 14M+ images, Creative Commons licenses.</em></li>
</ul>
</li>
<li><a href="index.html?q=/hubconf.py" id="/hubconf.py"><code>hubconf&period;py</code></a> <em>Create CLIP model entry points, convert PIL images to tensors.</em></li>
<li><a href="index.html?q=/model-card.md" id="/model-card.md"><code>model-card&period;md</code></a> <em>Multimodal AI for vision, classification, biases.</em></li>
<li><span hierarchy="1" class="expanded" onclick="toggleVisibility(this)" ><strong class="directory" id="/notebooks/"><code>notebooks</code></strong> <em>Notebooks: Machine Learning Experiments</em></span><ul>
<li><a href="index.html?q=/notebooks/Interacting_with_CLIP.py" id="/notebooks/Interacting_with_CLIP.py"><code>Interacting&UnderBar;with&UnderBar;CLIP&period;py</code></a> <em>Interacting with CLIP: Image-Text Similarity Analysis</em></li>
<li><a href="index.html?q=/notebooks/Prompt_Engineering_for_ImageNet.py" id="/notebooks/Prompt_Engineering_for_ImageNet.py"><code>Prompt&UnderBar;Engineering&UnderBar;for&UnderBar;ImageNet&period;py</code></a> <em>Zero-shot ImageNet classification with CLIP model.</em></li>
</ul>
</li>
<li><a href="index.html?q=/requirements.txt" id="/requirements.txt"><code>requirements&period;txt</code></a> <em>Install necessary packages for project.</em></li>
<li><a href="index.html?q=/setup.py" id="/setup.py"><code>setup&period;py</code></a> <em>Set up Python package 'clip' with setuptools.</em></li>
<li><span hierarchy="1" class="expanded" onclick="toggleVisibility(this)" ><strong class="directory" id="/tests/"><code>tests</code></strong></span><ul>
<li><a href="index.html?q=/tests/test_consistency.py" id="/tests/test_consistency.py"><code>test&UnderBar;consistency&period;py</code></a> <em>CLIP model consistency test.</em></li>
</ul>
</li>
</ul>
</li>
</ul>
</article>
<script type="text/javascript">
function getQueryParams() {
var search = window.location.search.substring(1); // Remove leading '?'
var queryParams = {};
search.split('&').forEach(function (pair) {
var parts = pair.split('=');
var key = decodeURIComponent(parts[0]);
var value = decodeURIComponent(parts[1]);
queryParams[key] = value;
});
return queryParams;
}
const queryParams = getQueryParams(window.location.search);
const show_full = queryParams.full == "true";
if (!show_full) {
const spans = document.querySelectorAll('span');
for (let span of spans) {
if (span.getAttribute("hierarchy") == '0') { continue }
toggleVisibility(span);
}
}
</script>
</body>
</html>