Compare commits
8 Commits
be7b663a73
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a432670752 | |||
| ca7709d9d8 | |||
| 8649325b7b | |||
| 0863bde155 | |||
| 8b0126ecb3 | |||
| 1fac510f07 | |||
| 87bfcfbec5 | |||
| 4512bd2fd4 |
5
.obsidian/core-plugins.json
vendored
5
.obsidian/core-plugins.json
vendored
@@ -27,5 +27,8 @@
|
||||
"publish": false,
|
||||
"sync": false,
|
||||
"bookmarks": true,
|
||||
"properties": false
|
||||
"properties": false,
|
||||
"webviewer": false,
|
||||
"footnotes": false,
|
||||
"bases": true
|
||||
}
|
||||
123
.obsidian/workspace.json
vendored
123
.obsidian/workspace.json
vendored
@@ -4,19 +4,21 @@
|
||||
"type": "split",
|
||||
"children": [
|
||||
{
|
||||
"id": "51fae4b613ef49a5",
|
||||
"id": "7dedcfa144d56140",
|
||||
"type": "tabs",
|
||||
"children": [
|
||||
{
|
||||
"id": "58e6699d854e8535",
|
||||
"id": "229ca4be3afd5932",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "Study/DL/Diffusion学习笔记.md",
|
||||
"file": "Books/代码随想录/代码模版.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
}
|
||||
},
|
||||
"icon": "lucide-file",
|
||||
"title": "代码模版"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -38,8 +40,11 @@
|
||||
"state": {
|
||||
"type": "file-explorer",
|
||||
"state": {
|
||||
"sortOrder": "alphabetical"
|
||||
}
|
||||
"sortOrder": "alphabetical",
|
||||
"autoReveal": false
|
||||
},
|
||||
"icon": "lucide-folder-closed",
|
||||
"title": "Files"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -54,7 +59,9 @@
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical"
|
||||
}
|
||||
},
|
||||
"icon": "lucide-search",
|
||||
"title": "Search"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -62,7 +69,9 @@
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "starred",
|
||||
"state": {}
|
||||
"state": {},
|
||||
"icon": "lucide-ghost",
|
||||
"title": "starred"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -70,7 +79,9 @@
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "bookmarks",
|
||||
"state": {}
|
||||
"state": {},
|
||||
"icon": "lucide-bookmark",
|
||||
"title": "Bookmarks"
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -93,7 +104,7 @@
|
||||
"state": {
|
||||
"type": "backlink",
|
||||
"state": {
|
||||
"file": "Study/DL/Diffusion学习笔记.md",
|
||||
"file": "Paper/FSL Image Classification/Context Attribute words for Prompt Tuning.md",
|
||||
"collapseAll": false,
|
||||
"extraContext": false,
|
||||
"sortOrder": "alphabetical",
|
||||
@@ -101,7 +112,9 @@
|
||||
"searchQuery": "",
|
||||
"backlinkCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
}
|
||||
},
|
||||
"icon": "links-coming-in",
|
||||
"title": "Backlinks for Context Attribute words for Prompt Tuning"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -110,10 +123,12 @@
|
||||
"state": {
|
||||
"type": "outgoing-link",
|
||||
"state": {
|
||||
"file": "Study/DL/Diffusion学习笔记.md",
|
||||
"file": "Paper/FSL Image Classification/Context Attribute words for Prompt Tuning.md",
|
||||
"linksCollapsed": false,
|
||||
"unlinkedCollapsed": true
|
||||
}
|
||||
},
|
||||
"icon": "links-going-out",
|
||||
"title": "Outgoing links from Context Attribute words for Prompt Tuning"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -124,7 +139,9 @@
|
||||
"state": {
|
||||
"sortOrder": "frequency",
|
||||
"useHierarchy": true
|
||||
}
|
||||
},
|
||||
"icon": "lucide-tags",
|
||||
"title": "Tags"
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -133,8 +150,10 @@
|
||||
"state": {
|
||||
"type": "outline",
|
||||
"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",
|
||||
"state": {
|
||||
"type": "advanced-tables-toolbar",
|
||||
"state": {}
|
||||
"state": {},
|
||||
"icon": "lucide-file",
|
||||
"title": "Plugin no longer active"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "b234f78dcf628209",
|
||||
"id": "ae1094cd7db4fa21",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "quiet-outline",
|
||||
"state": {}
|
||||
"state": {},
|
||||
"icon": "lines-of-text",
|
||||
"title": "Quiet Outline"
|
||||
}
|
||||
}
|
||||
],
|
||||
"currentTab": 3
|
||||
"currentTab": 5
|
||||
}
|
||||
],
|
||||
"direction": "horizontal",
|
||||
"width": 386.5,
|
||||
"collapsed": true
|
||||
"width": 386.5
|
||||
},
|
||||
"left-ribbon": {
|
||||
"hiddenItems": {
|
||||
"obsidian-excalidraw-plugin:New drawing": false,
|
||||
"obsidian-git:Open Git source control": false,
|
||||
"bases:Create new base": false,
|
||||
"switcher:Open quick switcher": false,
|
||||
"graph:Open graph view": false,
|
||||
"templates:Insert template": false,
|
||||
"command-palette:Open command palette": false,
|
||||
"oz-clear-unused-images:Clear Unused Images": 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": [
|
||||
"Record/DL/LLM.md",
|
||||
"Record/DL/CoT Prompt.md",
|
||||
"Books/代码随想录/代码模版.md",
|
||||
"Research/FSL/提示工程.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",
|
||||
"Paper/Diffusion/Imagic.md",
|
||||
"Paper/Diffusion/MoMA.md",
|
||||
"Paper/Diffusion/Tutorial on Diffusion Models for Imaging and Vision.md",
|
||||
"Study/DL/Diffusion学习笔记.md",
|
||||
"Paper/Diffusion/assets/MoMA/img-240506141200231.png",
|
||||
"Paper/Diffusion/assets/MoMA",
|
||||
"Paper/Diffusion/MoMA.md",
|
||||
"Paper/Diffusion/Tutorial on Diffusion Models for Imaging and Vision.md",
|
||||
"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",
|
||||
"Paper/Diffusion/assets",
|
||||
"Books/动手学深度学习/基础概念.md",
|
||||
"Books/动手学深度学习/引言.md",
|
||||
"Study/DL/动手学深度学习/预备知识.md",
|
||||
"Paper/Diffusion/Diffusion Models: A Comprehensive Survey of Methods and Applications.md",
|
||||
"Paper/CLIP/Open-Vocabulary Semantic Segmentation.md",
|
||||
"Paper/Diffusion",
|
||||
"Paper/FSL Image Classification",
|
||||
"Paper",
|
||||
"Books/代码随想录/数组.md",
|
||||
"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",
|
||||
"liangOpenVocabularySemanticSegmentation2023.md",
|
||||
"Books/动手学深度学习/引言.md",
|
||||
"Paper/未命名.md",
|
||||
"Books/动手学深度学习/基础概念.md",
|
||||
"liangOpenVocabularySemanticSegmentation2023.md",
|
||||
"Books/HDLBits/Verilog.md",
|
||||
"Record/Linux/常用软件.md",
|
||||
"Books/编译原理/Overview.md",
|
||||
"Study/DL/吴恩达深度学习课程/Lesson 1.md"
|
||||
"Record/Linux/常用软件.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