Compare commits
11 Commits
63f81386a9
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a432670752 | |||
| ca7709d9d8 | |||
| 8649325b7b | |||
| 0863bde155 | |||
| 8b0126ecb3 | |||
| 1fac510f07 | |||
| 87bfcfbec5 | |||
| 4512bd2fd4 | |||
| be7b663a73 | |||
| 5c2bbcb09c | |||
| 31e18c8f73 |
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"
|
||||||
}
|
}
|
||||||
27
.obsidian/workspace.json
vendored
27
.obsidian/workspace.json
vendored
@@ -13,12 +13,12 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "markdown",
|
"type": "markdown",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "Paper/FSL Image Classification/Context Attribute words for Prompt Tuning.md",
|
"file": "Books/代码随想录/代码模版.md",
|
||||||
"mode": "source",
|
"mode": "source",
|
||||||
"source": false
|
"source": false
|
||||||
},
|
},
|
||||||
"icon": "lucide-file",
|
"icon": "lucide-file",
|
||||||
"title": "Context Attribute words for Prompt Tuning"
|
"title": "代码模版"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -40,7 +40,8 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "file-explorer",
|
"type": "file-explorer",
|
||||||
"state": {
|
"state": {
|
||||||
"sortOrder": "alphabetical"
|
"sortOrder": "alphabetical",
|
||||||
|
"autoReveal": false
|
||||||
},
|
},
|
||||||
"icon": "lucide-folder-closed",
|
"icon": "lucide-folder-closed",
|
||||||
"title": "Files"
|
"title": "Files"
|
||||||
@@ -69,8 +70,8 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "starred",
|
"type": "starred",
|
||||||
"state": {},
|
"state": {},
|
||||||
"icon": "lucide-file",
|
"icon": "lucide-ghost",
|
||||||
"title": "Plugin no longer active"
|
"title": "starred"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -184,6 +185,7 @@
|
|||||||
},
|
},
|
||||||
"left-ribbon": {
|
"left-ribbon": {
|
||||||
"hiddenItems": {
|
"hiddenItems": {
|
||||||
|
"bases:Create new base": 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,
|
||||||
@@ -191,14 +193,18 @@
|
|||||||
"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-excalidraw-plugin:Create new drawing": false,
|
|
||||||
"obsidian-git:Open Git source control": false,
|
"obsidian-git:Open Git source control": false,
|
||||||
"obsidian-excalidraw-plugin:New drawing": false
|
"obsidian-excalidraw-plugin:New drawing": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active": "37c3469d51811935",
|
"active": "229ca4be3afd5932",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
|
"Books/代码随想录/代码模版.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",
|
||||||
|
"Research/FSL",
|
||||||
|
"Research",
|
||||||
|
"conflict-files-obsidian-git.md",
|
||||||
"Paper/CLIP/Learning Transferable Visual Models From Natural Language Supervision.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/Cross-Modal Few-Shot Learning with Multimodal Models.md",
|
||||||
"Paper/CLIP/PromptSRC:Foundational Model Adaptation without Forgetting.md",
|
"Paper/CLIP/PromptSRC:Foundational Model Adaptation without Forgetting.md",
|
||||||
@@ -213,7 +219,6 @@
|
|||||||
"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",
|
||||||
"conflict-files-obsidian-git.md",
|
|
||||||
"Record/DL",
|
"Record/DL",
|
||||||
"Paper/Diffusion/assets/Imagic/img-240425225015478.png",
|
"Paper/Diffusion/assets/Imagic/img-240425225015478.png",
|
||||||
"Paper/Diffusion/assets/Imagic",
|
"Paper/Diffusion/assets/Imagic",
|
||||||
@@ -228,13 +233,9 @@
|
|||||||
"Paper/Open-Vocabulary Semantic Segmentation.md",
|
"Paper/Open-Vocabulary Semantic Segmentation.md",
|
||||||
"Books/动手学深度学习/引言.md",
|
"Books/动手学深度学习/引言.md",
|
||||||
"Paper/未命名.md",
|
"Paper/未命名.md",
|
||||||
"Study/乐理",
|
|
||||||
"Books/动手学深度学习/基础概念.md",
|
"Books/动手学深度学习/基础概念.md",
|
||||||
"liangOpenVocabularySemanticSegmentation2023.md",
|
"liangOpenVocabularySemanticSegmentation2023.md",
|
||||||
"Books/HDLBits/Verilog.md",
|
"Books/HDLBits/Verilog.md",
|
||||||
"Record/Linux/常用软件.md",
|
"Record/Linux/常用软件.md"
|
||||||
"Record/Linux",
|
|
||||||
"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 @@
|
|||||||
|
多角度提示
|
||||||
|
语义提示与结构化提示融合
|
||||||
|
加入视觉信息以验证提示词
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
# 证据下界(Evidence Lower Bound)
|
·# 证据下界(Evidence Lower Bound)
|
||||||
|
|
||||||
$\text{ELBO} = \mathbb{E}_{q(z)}\left[\log p(x \mid z)\right] - \text{KL}(q(z) \parallel p(z))$
|
$\text{ELBO} = \mathbb{E}_{q(z)}\left[\log p(x \mid z)\right] - \text{KL}(q(z) \parallel p(z))$
|
||||||
|
|||||||
Reference in New Issue
Block a user