Compare commits
9 Commits
5c2bbcb09c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a432670752 | |||
| ca7709d9d8 | |||
| 8649325b7b | |||
| 0863bde155 | |||
| 8b0126ecb3 | |||
| 1fac510f07 | |||
| 87bfcfbec5 | |||
| 4512bd2fd4 | |||
| be7b663a73 |
5
.obsidian/core-plugins.json
vendored
5
.obsidian/core-plugins.json
vendored
@@ -27,5 +27,8 @@
|
|||||||
"publish": false,
|
"publish": false,
|
||||||
"sync": false,
|
"sync": false,
|
||||||
"bookmarks": true,
|
"bookmarks": true,
|
||||||
"properties": false
|
"properties": false,
|
||||||
|
"webviewer": false,
|
||||||
|
"footnotes": false,
|
||||||
|
"bases": true
|
||||||
}
|
}
|
||||||
@@ -1,18 +1,23 @@
|
|||||||
{
|
{
|
||||||
"attachmentFolderPath": "./assets/${filename}",
|
"attachmentFolderPath": "./assets/${filename}",
|
||||||
"autoRenameFiles": true,
|
"attachmentRenameMode": "Only pasted images",
|
||||||
"autoRenameFolder": true,
|
"customTokensStr": "",
|
||||||
"convertImagesToJpeg": false,
|
|
||||||
"convertImagesOnDragAndDrop": false,
|
|
||||||
"deleteOrphanAttachments": false,
|
|
||||||
"duplicateNameSeparator": " ",
|
"duplicateNameSeparator": " ",
|
||||||
|
"emptyAttachmentFolderBehavior": "DeleteWithEmptyParents",
|
||||||
|
"excludePaths": [],
|
||||||
|
"generatedAttachmentFilename": "file-${date:YYYYMMDDHHmmssSSS}",
|
||||||
|
"includePaths": [],
|
||||||
"jpegQuality": 0.8,
|
"jpegQuality": 0.8,
|
||||||
"keepEmptyAttachmentFolders": false,
|
"shouldConvertPastedImagesToJpeg": false,
|
||||||
"pastedFileName": "file-${date:YYYYMMDDHHmmssSSS}",
|
"shouldDeleteOrphanAttachments": false,
|
||||||
"renameCollectedFiles": false,
|
"shouldRenameAttachmentFiles": true,
|
||||||
"renameOnlyImages": true,
|
"shouldRenameAttachmentFolder": true,
|
||||||
"renamePastedFilesWithKnownNames": false,
|
"shouldRenameAttachmentsToLowerCase": false,
|
||||||
"renameAttachmentsOnDragAndDrop": false,
|
"shouldRenameCollectedAttachments": false,
|
||||||
"replaceWhitespace": false,
|
"specialCharacters": "#^[]|*\\<>:?",
|
||||||
"toLowerCase": false
|
"specialCharactersReplacement": "-",
|
||||||
|
"treatAsAttachmentExtensions": [
|
||||||
|
".excalidraw.md"
|
||||||
|
],
|
||||||
|
"warningVersion": "0.0.0"
|
||||||
}
|
}
|
||||||
123
.obsidian/workspace.json
vendored
123
.obsidian/workspace.json
vendored
@@ -4,19 +4,21 @@
|
|||||||
"type": "split",
|
"type": "split",
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"id": "51fae4b613ef49a5",
|
"id": "7dedcfa144d56140",
|
||||||
"type": "tabs",
|
"type": "tabs",
|
||||||
"children": [
|
"children": [
|
||||||
{
|
{
|
||||||
"id": "58e6699d854e8535",
|
"id": "229ca4be3afd5932",
|
||||||
"type": "leaf",
|
"type": "leaf",
|
||||||
"state": {
|
"state": {
|
||||||
"type": "markdown",
|
"type": "markdown",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Study/DL/Diffusion学习笔记.md",
|
"file": "Books/代码随想录/代码模版.md",
|
||||||
"mode": "source",
|
"mode": "source",
|
||||||
"source": false
|
"source": false
|
||||||
}
|
},
|
||||||
|
"icon": "lucide-file",
|
||||||
|
"title": "代码模版"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -38,8 +40,11 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "file-explorer",
|
"type": "file-explorer",
|
||||||
"state": {
|
"state": {
|
||||||
"sortOrder": "alphabetical"
|
"sortOrder": "alphabetical",
|
||||||
}
|
"autoReveal": false
|
||||||
|
},
|
||||||
|
"icon": "lucide-folder-closed",
|
||||||
|
"title": "Files"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -54,7 +59,9 @@
|
|||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "alphabetical"
|
"sortOrder": "alphabetical"
|
||||||
}
|
},
|
||||||
|
"icon": "lucide-search",
|
||||||
|
"title": "Search"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -62,7 +69,9 @@
|
|||||||
"type": "leaf",
|
"type": "leaf",
|
||||||
"state": {
|
"state": {
|
||||||
"type": "starred",
|
"type": "starred",
|
||||||
"state": {}
|
"state": {},
|
||||||
|
"icon": "lucide-ghost",
|
||||||
|
"title": "starred"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -70,7 +79,9 @@
|
|||||||
"type": "leaf",
|
"type": "leaf",
|
||||||
"state": {
|
"state": {
|
||||||
"type": "bookmarks",
|
"type": "bookmarks",
|
||||||
"state": {}
|
"state": {},
|
||||||
|
"icon": "lucide-bookmark",
|
||||||
|
"title": "Bookmarks"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -93,7 +104,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "backlink",
|
"type": "backlink",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Study/DL/Diffusion学习笔记.md",
|
"file": "Paper/FSL Image Classification/Context Attribute words for Prompt Tuning.md",
|
||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "alphabetical",
|
"sortOrder": "alphabetical",
|
||||||
@@ -101,7 +112,9 @@
|
|||||||
"searchQuery": "",
|
"searchQuery": "",
|
||||||
"backlinkCollapsed": false,
|
"backlinkCollapsed": false,
|
||||||
"unlinkedCollapsed": true
|
"unlinkedCollapsed": true
|
||||||
}
|
},
|
||||||
|
"icon": "links-coming-in",
|
||||||
|
"title": "Backlinks for Context Attribute words for Prompt Tuning"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -110,10 +123,12 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "outgoing-link",
|
"type": "outgoing-link",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Study/DL/Diffusion学习笔记.md",
|
"file": "Paper/FSL Image Classification/Context Attribute words for Prompt Tuning.md",
|
||||||
"linksCollapsed": false,
|
"linksCollapsed": false,
|
||||||
"unlinkedCollapsed": true
|
"unlinkedCollapsed": true
|
||||||
}
|
},
|
||||||
|
"icon": "links-going-out",
|
||||||
|
"title": "Outgoing links from Context Attribute words for Prompt Tuning"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -124,7 +139,9 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"sortOrder": "frequency",
|
"sortOrder": "frequency",
|
||||||
"useHierarchy": true
|
"useHierarchy": true
|
||||||
}
|
},
|
||||||
|
"icon": "lucide-tags",
|
||||||
|
"title": "Tags"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -133,8 +150,10 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "outline",
|
"type": "outline",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Study/DL/Diffusion学习笔记.md"
|
"file": "Paper/FSL Image Classification/Context Attribute words for Prompt Tuning.md"
|
||||||
}
|
},
|
||||||
|
"icon": "lucide-list",
|
||||||
|
"title": "Outline of Context Attribute words for Prompt Tuning"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -142,77 +161,81 @@
|
|||||||
"type": "leaf",
|
"type": "leaf",
|
||||||
"state": {
|
"state": {
|
||||||
"type": "advanced-tables-toolbar",
|
"type": "advanced-tables-toolbar",
|
||||||
"state": {}
|
"state": {},
|
||||||
|
"icon": "lucide-file",
|
||||||
|
"title": "Plugin no longer active"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "b234f78dcf628209",
|
"id": "ae1094cd7db4fa21",
|
||||||
"type": "leaf",
|
"type": "leaf",
|
||||||
"state": {
|
"state": {
|
||||||
"type": "quiet-outline",
|
"type": "quiet-outline",
|
||||||
"state": {}
|
"state": {},
|
||||||
|
"icon": "lines-of-text",
|
||||||
|
"title": "Quiet Outline"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"currentTab": 3
|
"currentTab": 5
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": "horizontal",
|
"direction": "horizontal",
|
||||||
"width": 386.5,
|
"width": 386.5
|
||||||
"collapsed": true
|
|
||||||
},
|
},
|
||||||
"left-ribbon": {
|
"left-ribbon": {
|
||||||
"hiddenItems": {
|
"hiddenItems": {
|
||||||
"obsidian-excalidraw-plugin:New drawing": false,
|
"bases:Create new base": false,
|
||||||
"obsidian-git:Open Git source control": false,
|
|
||||||
"switcher:Open quick switcher": false,
|
"switcher:Open quick switcher": false,
|
||||||
"graph:Open graph view": false,
|
"graph:Open graph view": false,
|
||||||
"templates:Insert template": false,
|
"templates:Insert template": false,
|
||||||
"command-palette:Open command palette": false,
|
"command-palette:Open command palette": false,
|
||||||
"oz-clear-unused-images:Clear Unused Images": false,
|
"oz-clear-unused-images:Clear Unused Images": false,
|
||||||
"table-editor-obsidian:Advanced Tables Toolbar": false,
|
"table-editor-obsidian:Advanced Tables Toolbar": false,
|
||||||
"notion-like-tables:Create loom": false
|
"notion-like-tables:Create loom": false,
|
||||||
|
"obsidian-git:Open Git source control": false,
|
||||||
|
"obsidian-excalidraw-plugin:New drawing": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active": "58e6699d854e8535",
|
"active": "229ca4be3afd5932",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"Record/DL/LLM.md",
|
"Books/代码随想录/代码模版.md",
|
||||||
"Record/DL/CoT Prompt.md",
|
"Research/FSL/提示工程.md",
|
||||||
"Paper/FSL Image Classification/Context Attribute words for Prompt Tuning.md",
|
"Paper/FSL Image Classification/Context Attribute words for Prompt Tuning.md",
|
||||||
"Paper/FSL Image Classification",
|
"Research/FSL",
|
||||||
|
"Research",
|
||||||
|
"conflict-files-obsidian-git.md",
|
||||||
|
"Paper/CLIP/Learning Transferable Visual Models From Natural Language Supervision.md",
|
||||||
|
"Paper/CLIP/Cross-Modal Few-Shot Learning with Multimodal Models.md",
|
||||||
|
"Paper/CLIP/PromptSRC:Foundational Model Adaptation without Forgetting.md",
|
||||||
|
"Paper/CLIP/MaPLe:Multi-modal Prompt Learning.md",
|
||||||
|
"Paper/CLIP/Learning Hierarchical Prompt with Structured Linguistic Knowledge for Vision-Language Models.md",
|
||||||
|
"Record/DL/CoT Prompt.md",
|
||||||
|
"Record/DL/LLM.md",
|
||||||
"Record/DL/Loss.md",
|
"Record/DL/Loss.md",
|
||||||
|
"Paper/Diffusion/Imagic.md",
|
||||||
|
"Paper/Diffusion/MoMA.md",
|
||||||
|
"Paper/Diffusion/Tutorial on Diffusion Models for Imaging and Vision.md",
|
||||||
"Study/DL/Diffusion学习笔记.md",
|
"Study/DL/Diffusion学习笔记.md",
|
||||||
"Paper/Diffusion/assets/MoMA/img-240506141200231.png",
|
"Paper/Diffusion/assets/MoMA/img-240506141200231.png",
|
||||||
"Paper/Diffusion/assets/MoMA",
|
"Paper/Diffusion/assets/MoMA",
|
||||||
"Paper/Diffusion/MoMA.md",
|
|
||||||
"Paper/Diffusion/Tutorial on Diffusion Models for Imaging and Vision.md",
|
|
||||||
"Record/DL",
|
"Record/DL",
|
||||||
"Record/Untitled.md",
|
|
||||||
"Paper/Diffusion/Imagic.md",
|
|
||||||
"Paper/Diffusion/Diffusion Models: A Comprehensive Survey of Methods and Applications.md",
|
|
||||||
"Excalidraw/Drawing 2024-04-25 22.51.48.excalidraw.md",
|
|
||||||
"Excalidraw",
|
|
||||||
"Paper/Diffusion/assets/Imagic/img-240425225015478.png",
|
"Paper/Diffusion/assets/Imagic/img-240425225015478.png",
|
||||||
"Paper/Diffusion/assets/Imagic",
|
"Paper/Diffusion/assets/Imagic",
|
||||||
"Paper/Diffusion/assets",
|
"Paper/Diffusion/assets",
|
||||||
"Books/动手学深度学习/基础概念.md",
|
"Paper/Diffusion/Diffusion Models: A Comprehensive Survey of Methods and Applications.md",
|
||||||
"Books/动手学深度学习/引言.md",
|
"Paper/CLIP/Open-Vocabulary Semantic Segmentation.md",
|
||||||
"Study/DL/动手学深度学习/预备知识.md",
|
"Paper/Diffusion",
|
||||||
|
"Paper/FSL Image Classification",
|
||||||
|
"Paper",
|
||||||
"Books/代码随想录/数组.md",
|
"Books/代码随想录/数组.md",
|
||||||
"Books/代码随想录",
|
"Books/代码随想录",
|
||||||
"Books/Untitled.md",
|
|
||||||
"Study/DL/动手学深度学习",
|
|
||||||
"Paper/Untitled.md",
|
|
||||||
"Paper/Diffusion",
|
|
||||||
"Study/乐理",
|
|
||||||
"Paper/CLIP/Open-Vocabulary Semantic Segmentation.md",
|
|
||||||
"Paper/CLIP/Learning Transferable Visual Models From Natural Language Supervision.md",
|
|
||||||
"Paper/Open-Vocabulary Semantic Segmentation.md",
|
"Paper/Open-Vocabulary Semantic Segmentation.md",
|
||||||
"liangOpenVocabularySemanticSegmentation2023.md",
|
"Books/动手学深度学习/引言.md",
|
||||||
"Paper/未命名.md",
|
"Paper/未命名.md",
|
||||||
|
"Books/动手学深度学习/基础概念.md",
|
||||||
|
"liangOpenVocabularySemanticSegmentation2023.md",
|
||||||
"Books/HDLBits/Verilog.md",
|
"Books/HDLBits/Verilog.md",
|
||||||
"Record/Linux/常用软件.md",
|
"Record/Linux/常用软件.md"
|
||||||
"Books/编译原理/Overview.md",
|
|
||||||
"Study/DL/吴恩达深度学习课程/Lesson 1.md"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
58
Books/代码随想录/代码模版.md
Normal file
58
Books/代码随想录/代码模版.md
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
# 数组
|
||||||
|
## 二分
|
||||||
|
```python
|
||||||
|
def binary_search(nums, target):
|
||||||
|
left, right = 0, len(nums) - 1
|
||||||
|
while left <= right:
|
||||||
|
mid = left + (right - left) // 2 # 防止溢出
|
||||||
|
if nums[mid] == target:
|
||||||
|
return mid # 找到目标,返回索引
|
||||||
|
elif nums[mid] < target:
|
||||||
|
left = mid + 1 # 目标在右半部分
|
||||||
|
else:
|
||||||
|
right = mid - 1 # 目标在左半部分
|
||||||
|
return -1 # 未找到目标
|
||||||
|
|
||||||
|
# 左右边界
|
||||||
|
def left_bound(nums, target):
|
||||||
|
left, right = 0, len(nums) - 1
|
||||||
|
while left <= right:
|
||||||
|
mid = left + (right - left) // 2
|
||||||
|
if nums[mid] < target:
|
||||||
|
left = mid + 1
|
||||||
|
else:
|
||||||
|
right = mid - 1
|
||||||
|
return left if left < len(nums) and nums[left] == target else -1
|
||||||
|
def right_bound(nums, target):
|
||||||
|
left, right = 0, len(nums) - 1
|
||||||
|
while left <= right:
|
||||||
|
mid = left + (right - left) // 2
|
||||||
|
if nums[mid] <= target:
|
||||||
|
left = mid + 1
|
||||||
|
else:
|
||||||
|
right = mid - 1
|
||||||
|
return right if right >= 0 and nums[right] == target else -1
|
||||||
|
```
|
||||||
|
## 滑动窗口
|
||||||
|
```python
|
||||||
|
def lengthOfLongestSubstring(s: str) -> int:
|
||||||
|
left = 0
|
||||||
|
window = {}
|
||||||
|
result = 0
|
||||||
|
|
||||||
|
for right in range(len(s)):
|
||||||
|
char_right = s[right]
|
||||||
|
window[char_right] = window.get(char_right, 0) + 1
|
||||||
|
|
||||||
|
# 当窗口中有重复字符时,收缩窗口
|
||||||
|
while window[char_right] > 1:
|
||||||
|
char_left = s[left]
|
||||||
|
window[char_left] -= 1
|
||||||
|
if window[char_left] == 0:
|
||||||
|
del window[char_left]
|
||||||
|
left += 1
|
||||||
|
|
||||||
|
result = max(result, right - left + 1)
|
||||||
|
|
||||||
|
return result
|
||||||
|
```
|
||||||
3
Research/FSL/提示工程.md
Normal file
3
Research/FSL/提示工程.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
多角度提示
|
||||||
|
语义提示与结构化提示融合
|
||||||
|
加入视觉信息以验证提示词
|
||||||
Reference in New Issue
Block a user