134 lines
6.8 KiB
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.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>__init__.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.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.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_tokenizer.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.md</code></a> <em>Download, Extract & 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.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.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.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.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_with_CLIP.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_Engineering_for_ImageNet.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.txt</code></a> <em>Install necessary packages for project.</em></li>
|
|
<li><a href="index.html?q=/setup.py" id="/setup.py"><code>setup.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_consistency.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> |