0?u:["plain"],s=m):(u=H(u,m.type),m.alias&&(u=H(u,m.alias)),s=m.content),"string"==typeof s){var d=s.split(j),p=d.length;l.push({types:u,content:d[0]});for(var f=1;fo.createElement("span",(0,a.Z)({key:t},l({token:e,key:t})))));return o.createElement("span",s,r?o.createElement(o.Fragment,null,o.createElement("span",{className:P.codeLineNumber}),o.createElement("span",{className:P.codeLineContent},u)):u,o.createElement("br",null))}var M=n(5999);function D(e){return o.createElement("svg",(0,a.Z)({viewBox:"0 0 24 24"},e),o.createElement("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"}))}function W(e){return o.createElement("svg",(0,a.Z)({viewBox:"0 0 24 24"},e),o.createElement("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}const R={copyButtonCopied:"copyButtonCopied_obH4",copyButtonIcons:"copyButtonIcons_eSgA",copyButtonIcon:"copyButtonIcon_y97N",copyButtonSuccessIcon:"copyButtonSuccessIcon_LjdS"};function V(e){let{code:t,className:n}=e;const[r,a]=(0,o.useState)(!1),c=(0,o.useRef)(void 0),l=(0,o.useCallback)((()=>{!function(e,{target:t=document.body}={}){if("string"!=typeof e)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof e}\`.`);const n=document.createElement("textarea"),o=document.activeElement;n.value=e,n.setAttribute("readonly",""),n.style.contain="strict",n.style.position="absolute",n.style.left="-9999px",n.style.fontSize="12pt";const r=document.getSelection(),a=r.rangeCount>0&&r.getRangeAt(0);t.append(n),n.select(),n.selectionStart=0,n.selectionEnd=e.length;let c=!1;try{c=document.execCommand("copy")}catch{}n.remove(),a&&(r.removeAllRanges(),r.addRange(a)),o&&o.focus()}(t),a(!0),c.current=window.setTimeout((()=>{a(!1)}),1e3)}),[t]);return(0,o.useEffect)((()=>()=>window.clearTimeout(c.current)),[]),o.createElement("button",{type:"button","aria-label":r?(0,M.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,M.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,M.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,i.Z)("clean-btn",n,R.copyButton,r&&R.copyButtonCopied),onClick:l},o.createElement("span",{className:R.copyButtonIcons,"aria-hidden":"true"},o.createElement(D,{className:R.copyButtonIcon}),o.createElement(W,{className:R.copyButtonSuccessIcon})))}function $(e){return o.createElement("svg",(0,a.Z)({viewBox:"0 0 24 24"},e),o.createElement("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"}))}const q={wordWrapButtonIcon:"wordWrapButtonIcon_Bwma",wordWrapButtonEnabled:"wordWrapButtonEnabled_EoeP"};function F(e){let{className:t,onClick:n,isEnabled:r}=e;const a=(0,M.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return o.createElement("button",{type:"button",onClick:n,className:(0,i.Z)("clean-btn",t,r&&q.wordWrapButtonEnabled),"aria-label":a,title:a},o.createElement($,{className:q.wordWrapButtonIcon,"aria-hidden":"true"}))}function U(e){let{children:t,className:n="",metastring:r,title:c,showLineNumbers:l,language:s}=e;const{prism:{defaultLanguage:d,magicComments:p}}=(0,u.L)(),f=s??function(e){const t=e.split(" ").find((e=>e.startsWith("language-")));return t?.replace(/language-/,"")}(n)??d,g=m(),y=function(){const[e,t]=(0,o.useState)(!1),[n,r]=(0,o.useState)(!1),a=(0,o.useRef)(null),c=(0,o.useCallback)((()=>{const n=a.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t((e=>!e))}),[a,e]),l=(0,o.useCallback)((()=>{const{scrollWidth:e,clientWidth:t}=a.current,n=e>t||a.current.querySelector("code").hasAttribute("style");r(n)}),[a]);return B(a,l),(0,o.useEffect)((()=>{l()}),[e,l]),(0,o.useEffect)((()=>(window.addEventListener("resize",l,{passive:!0}),()=>{window.removeEventListener("resize",l)})),[l]),{codeBlockRef:a,isEnabled:e,isCodeScrollable:n,toggle:c}}(),v=function(e){return e?.match(h)?.groups.title??""}(r)||c,{lineClassNames:E,code:C}=b(t,{metastring:r,language:f,magicComments:p}),L=l??function(e){return Boolean(e?.includes("showLineNumbers"))}(r);return o.createElement(k,{as:"div",className:(0,i.Z)(n,f&&!n.includes(`language-${f}`)&&`language-${f}`)},v&&o.createElement("div",{className:N.codeBlockTitle},v),o.createElement("div",{className:N.codeBlockContent},o.createElement(I,(0,a.Z)({},T,{theme:g,code:C,language:f??"text"}),(e=>{let{className:t,tokens:n,getLineProps:r,getTokenProps:a}=e;return o.createElement("pre",{tabIndex:0,ref:y.codeBlockRef,className:(0,i.Z)(t,N.codeBlock,"thin-scrollbar")},o.createElement("code",{className:(0,i.Z)(N.codeBlockLines,L&&N.codeBlockLinesWithNumbering)},n.map(((e,t)=>o.createElement(z,{key:t,line:e,getLineProps:r,getTokenProps:a,classNames:E[t],showLineNumbers:L})))))})),o.createElement("div",{className:N.buttonGroup},(y.isEnabled||y.isCodeScrollable)&&o.createElement(F,{className:N.codeButton,onClick:()=>y.toggle(),isEnabled:y.isEnabled}),o.createElement(V,{className:N.codeButton,code:C}))))}function G(e){let{children:t,...n}=e;const r=(0,l.Z)(),c=function(e){return o.Children.toArray(e).some((e=>(0,o.isValidElement)(e)))?e:Array.isArray(e)?e.join(""):e}(t),i="string"==typeof c?U:C;return o.createElement(i,(0,a.Z)({key:String(r)},n),c)}var Y=n(9960);var Q=n(6043);const X={details:"details_lb9f",isBrowser:"isBrowser_bmU9",collapsibleContent:"collapsibleContent_i85q"};function J(e){return!!e&&("SUMMARY"===e.tagName||J(e.parentElement))}function K(e,t){return!!e&&(e===t||K(e.parentElement,t))}function ee(e){let{summary:t,children:n,...r}=e;const c=(0,l.Z)(),s=(0,o.useRef)(null),{collapsed:u,setCollapsed:m}=(0,Q.u)({initialState:!r.open}),[d,p]=(0,o.useState)(r.open),f=o.isValidElement(t)?t:o.createElement("summary",null,t??"Details");return o.createElement("details",(0,a.Z)({},r,{ref:s,open:d,"data-collapsed":u,className:(0,i.Z)(X.details,c&&X.isBrowser,r.className),onMouseDown:e=>{J(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();const t=e.target;J(t)&&K(t,s.current)&&(e.preventDefault(),u?(m(!1),p(!0)):m(!0))}}),f,o.createElement(Q.z,{lazy:!1,collapsed:u,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{m(e),p(!e)}},o.createElement("div",{className:X.collapsibleContent},n)))}const te={details:"details_b_Ee"},ne="alert alert--info";function oe(e){let{...t}=e;return o.createElement(ee,(0,a.Z)({},t,{className:(0,i.Z)(ne,te.details,t.className)}))}var re=n(2503);function ae(e){return o.createElement(re.Z,e)}const ce={containsTaskList:"containsTaskList_mC6p"};function le(e){if(void 0!==e)return(0,i.Z)(e,e?.includes("contains-task-list")&&ce.containsTaskList)}const ie={img:"img_ev3q"};const se="admonition_LlT9",ue="admonitionHeading_tbUL",me="admonitionIcon_kALy",de="admonitionContent_S0QG";const pe={note:{infimaClassName:"secondary",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 14 16"},o.createElement("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))},label:o.createElement(M.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)"},"note")},tip:{infimaClassName:"success",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 12 16"},o.createElement("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))},label:o.createElement(M.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)"},"tip")},danger:{infimaClassName:"danger",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 12 16"},o.createElement("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"}))},label:o.createElement(M.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)"},"danger")},info:{infimaClassName:"info",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 14 16"},o.createElement("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))},label:o.createElement(M.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)"},"info")},caution:{infimaClassName:"warning",iconComponent:function(){return o.createElement("svg",{viewBox:"0 0 16 16"},o.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"}))},label:o.createElement(M.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)"},"caution")}},fe={secondary:"note",important:"info",success:"tip",warning:"danger"};function he(e){const{mdxAdmonitionTitle:t,rest:n}=function(e){const t=o.Children.toArray(e),n=t.find((e=>o.isValidElement(e)&&"mdxAdmonitionTitle"===e.props?.mdxType)),r=o.createElement(o.Fragment,null,t.filter((e=>e!==n)));return{mdxAdmonitionTitle:n,rest:r}}(e.children);return{...e,title:e.title??t,children:n}}const ge={head:function(e){const t=o.Children.map(e.children,(e=>o.isValidElement(e)?function(e){if(e.props?.mdxType&&e.props.originalType){const{mdxType:t,originalType:n,...r}=e.props;return o.createElement(e.props.originalType,r)}return e}(e):e));return o.createElement(c.Z,e,t)},code:function(e){const t=["a","abbr","b","br","button","cite","code","del","dfn","em","i","img","input","ins","kbd","label","object","output","q","ruby","s","small","span","strong","sub","sup","time","u","var","wbr"];return o.Children.toArray(e.children).every((e=>"string"==typeof e&&!e.includes("\n")||(0,o.isValidElement)(e)&&t.includes(e.props?.mdxType)))?o.createElement("code",e):o.createElement(G,e)},a:function(e){return o.createElement(Y.Z,e)},pre:function(e){return o.createElement(G,(0,o.isValidElement)(e.children)&&"code"===e.children.props?.originalType?e.children.props:{...e})},details:function(e){const t=o.Children.toArray(e.children),n=t.find((e=>o.isValidElement(e)&&"summary"===e.props?.mdxType)),r=o.createElement(o.Fragment,null,t.filter((e=>e!==n)));return o.createElement(oe,(0,a.Z)({},e,{summary:n}),r)},ul:function(e){return o.createElement("ul",(0,a.Z)({},e,{className:le(e.className)}))},img:function(e){return o.createElement("img",(0,a.Z)({loading:"lazy"},e,{className:(t=e.className,(0,i.Z)(t,ie.img))}));var t},h1:e=>o.createElement(ae,(0,a.Z)({as:"h1"},e)),h2:e=>o.createElement(ae,(0,a.Z)({as:"h2"},e)),h3:e=>o.createElement(ae,(0,a.Z)({as:"h3"},e)),h4:e=>o.createElement(ae,(0,a.Z)({as:"h4"},e)),h5:e=>o.createElement(ae,(0,a.Z)({as:"h5"},e)),h6:e=>o.createElement(ae,(0,a.Z)({as:"h6"},e)),admonition:function(e){const{children:t,type:n,title:r,icon:a}=he(e),c=function(e){const t=fe[e]??e,n=pe[t];return n||(console.warn(`No admonition config found for admonition type "${t}". Using Info as fallback.`),pe.info)}(n),l=r??c.label,{iconComponent:s}=c,u=a??o.createElement(s,null);return o.createElement("div",{className:(0,i.Z)(d.k.common.admonition,d.k.common.admonitionType(e.type),"alert",`alert--${c.infimaClassName}`,se)},o.createElement("div",{className:ue},o.createElement("span",{className:me},u),l),o.createElement("div",{className:de},t))},mermaid:()=>null};function ye(e){let{children:t}=e;return o.createElement(r.Zo,{components:ge},t)}},3743:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var o=n(7462),r=n(7294),a=n(6668);function c(e){const t=e.map((e=>({...e,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);t.forEach(((e,t)=>{const o=n.slice(2,e.level);e.parentIndex=Math.max(...o),n[e.level]=t}));const o=[];return t.forEach((e=>{const{parentIndex:n,...r}=e;n>=0?t[n].children.push(r):o.push(r)})),o}function l(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:o}=e;return t.flatMap((e=>{const t=l({toc:e.children,minHeadingLevel:n,maxHeadingLevel:o});return function(e){return e.level>=n&&e.level<=o}(e)?[{...e,children:t}]:t}))}function i(e){const t=e.getBoundingClientRect();return t.top===t.bottom?i(e.parentNode):t}function s(e,t){let{anchorTopOffset:n}=t;const o=e.find((e=>i(e).top>=n));if(o){return function(e){return e.top>0&&e.bottom{e.current=t?0:document.querySelector(".navbar").clientHeight}),[t]),e}function m(e){const t=(0,r.useRef)(void 0),n=u();(0,r.useEffect)((()=>{if(!e)return()=>{};const{linkClassName:o,linkActiveClassName:r,minHeadingLevel:a,maxHeadingLevel:c}=e;function l(){const e=function(e){return Array.from(document.getElementsByClassName(e))}(o),l=function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e;const o=[];for(let r=t;r<=n;r+=1)o.push(`h${r}.anchor`);return Array.from(document.querySelectorAll(o.join()))}({minHeadingLevel:a,maxHeadingLevel:c}),i=s(l,{anchorTopOffset:n.current}),u=e.find((e=>i&&i.id===function(e){return decodeURIComponent(e.href.substring(e.href.indexOf("#")+1))}(e)));e.forEach((e=>{!function(e,n){n?(t.current&&t.current!==e&&t.current.classList.remove(r),e.classList.add(r),t.current=e):e.classList.remove(r)}(e,e===u)}))}return document.addEventListener("scroll",l),document.addEventListener("resize",l),l(),()=>{document.removeEventListener("scroll",l),document.removeEventListener("resize",l)}}),[e,n])}function d(e){let{toc:t,className:n,linkClassName:o,isChild:a}=e;return t.length?r.createElement("ul",{className:a?void 0:n},t.map((e=>r.createElement("li",{key:e.id},r.createElement("a",{href:`#${e.id}`,className:o??void 0,dangerouslySetInnerHTML:{__html:e.value}}),r.createElement(d,{isChild:!0,toc:e.children,className:n,linkClassName:o}))))):null}const p=r.memo(d);function f(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:i="table-of-contents__link",linkActiveClassName:s,minHeadingLevel:u,maxHeadingLevel:d,...f}=e;const h=(0,a.L)(),g=u??h.tableOfContents.minHeadingLevel,y=d??h.tableOfContents.maxHeadingLevel,v=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:o}=e;return(0,r.useMemo)((()=>l({toc:c(t),minHeadingLevel:n,maxHeadingLevel:o})),[t,n,o])}({toc:t,minHeadingLevel:g,maxHeadingLevel:y});return m((0,r.useMemo)((()=>{if(i&&s)return{linkClassName:i,linkActiveClassName:s,minHeadingLevel:g,maxHeadingLevel:y}}),[i,s,g,y])),r.createElement(p,(0,o.Z)({toc:v,className:n,linkClassName:i},f))}},9407:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var o=n(7462),r=n(7294),a=n(6010),c=n(3743);const l={tableOfContents:"tableOfContents_bqdL",docItemContainer:"docItemContainer_F8PC"},i="table-of-contents__link toc-highlight",s="table-of-contents__link--active";function u(e){let{className:t,...n}=e;return r.createElement("div",{className:(0,a.Z)(l.tableOfContents,"thin-scrollbar",t)},r.createElement(c.Z,(0,o.Z)({},n,{linkClassName:i,linkActiveClassName:s})))}},7594:(e,t)=>{function n(e){let t,n=[];for(let o of e.split(",").map((e=>e.trim())))if(/^-?\d+$/.test(o))n.push(parseInt(o,10));else if(t=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[e,o,r,a]=t;if(o&&a){o=parseInt(o),a=parseInt(a);const e=o{t.d(e,{Zo:()=>o,kt:()=>h});var n=t(7294);function s(a,e,t){return e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(a,e).enumerable}))),t.push.apply(t,n)}return t}function p(a){for(var e=1;e=0||(s[t]=a[t]);return s}(a,e);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(a);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(a,t)&&(s[t]=a[t])}return s}var l=n.createContext({}),i=function(a){var e=n.useContext(l),t=e;return a&&(t="function"==typeof a?a(e):p(p({},e),a)),t},o=function(a){var e=i(a.components);return n.createElement(l.Provider,{value:e},a.children)},N="mdxType",k={inlineCode:"code",wrapper:function(a){var e=a.children;return n.createElement(n.Fragment,{},e)}},c=n.forwardRef((function(a,e){var t=a.components,s=a.mdxType,m=a.originalType,l=a.parentName,o=r(a,["components","mdxType","originalType","parentName"]),N=i(t),c=s,h=N["".concat(l,".").concat(c)]||N[c]||k[c]||m;return t?n.createElement(h,p(p({ref:e},o),{},{components:t})):n.createElement(h,p({ref:e},o))}));function h(a,e){var t=arguments,s=e&&e.mdxType;if("string"==typeof a||s){var m=t.length,p=new Array(m);p[0]=c;var r={};for(var l in e)hasOwnProperty.call(e,l)&&(r[l]=e[l]);r.originalType=a,r[N]="string"==typeof a?a:s,p[1]=r;for(var i=2;i{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>p,default:()=>k,frontMatter:()=>m,metadata:()=>r,toc:()=>i});var n=t(7462),s=(t(7294),t(3905));const m={},p="\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",r={unversionedId:"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",id:"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",title:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76",description:"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e IPL \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece IPL-Zero-Shot-Generative-Model-Adaptation fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002",source:"@site/docs/Deep-Learning/5-\u5927\u6a21\u578b/Prompt Learning/1-Undergraduate-Dissertation.md",sourceDirName:"Deep-Learning/5-\u5927\u6a21\u578b/Prompt Learning",slug:"/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation",draft:!1,tags:[],version:"current",sidebarPosition:1,frontMatter:{},sidebar:"deep_learning",previous:{title:"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09",permalink:"/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model"},next:{title:"NeurIPS 2017: Attention Is All You Need",permalink:"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need"}},l={},i=[{value:"\u4f9d\u8d56",id:"\u4f9d\u8d56",level:2},{value:"\u521b\u5efa Anaconda \u865a\u62df\u73af\u5883",id:"\u521b\u5efa-anaconda-\u865a\u62df\u73af\u5883",level:3},{value:"\u5b89\u88c5\u4f9d\u8d56",id:"\u5b89\u88c5\u4f9d\u8d56",level:3},{value:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668",id:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668",level:3},{value:"\u6982\u8ff0",id:"\u6982\u8ff0",level:2},{value:"\u6280\u672f\u7ec6\u8282",id:"\u6280\u672f\u7ec6\u8282",level:2},{value:"prompts \u7684\u521d\u59cb\u5316",id:"prompts-\u7684\u521d\u59cb\u5316",level:3},{value:"prompts \u7684 tokenize \u4e0e embedding",id:"prompts-\u7684-tokenize-\u4e0e-embedding",level:3},{value:"compute_text_features \u7684\u5b9e\u73b0\u7ec6\u8282",id:"compute_text_features-\u7684\u5b9e\u73b0\u7ec6\u8282",level:3},{value:"\u8bad\u7ec3 stage 1",id:"\u8bad\u7ec3-stage-1",level:3},{value:"Z\u7a7a\u95f4\u4e0eW\u7a7a\u95f4",id:"z\u7a7a\u95f4\u4e0ew\u7a7a\u95f4",level:4},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570",level:4},{value:"\u8bad\u7ec3 stage 2",id:"\u8bad\u7ec3-stage-2",level:3},{value:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42",id:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42",level:4},{value:"\u635f\u5931\u51fd\u6570",id:"\u635f\u5931\u51fd\u6570-1",level:4},{value:"\u5b9a\u91cf\u5206\u6790\u6307\u6807",id:"\u5b9a\u91cf\u5206\u6790\u6307\u6807",level:2},{value:"\u65b0\u589e\u529f\u80fd",id:"\u65b0\u589e\u529f\u80fd",level:2},{value:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb",id:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb",level:3},{value:"\u4fee\u6539\u65e5\u5fd7",id:"\u4fee\u6539\u65e5\u5fd7",level:4},{value:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb",id:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb",level:2},{value:"\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5 prompts \u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f",id:"\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5-prompts-\u7684\u4f5c\u7528\u662f\u4ec0\u4e48",level:3},{value:"\u4f5c\u7528",id:"\u4f5c\u7528",level:4},{value:"\u601d\u8003",id:"\u601d\u8003",level:4},{value:"Mapper \u7ed3\u6784\u7684\u8bbe\u8ba1",id:"mapper-\u7ed3\u6784\u7684\u8bbe\u8ba1",level:3}],o={toc:i},N="wrapper";function k(a){let{components:e,...t}=a;return(0,s.kt)(N,(0,n.Z)({},o,t,{components:e,mdxType:"MDXLayout"}),(0,s.kt)("h1",{id:"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\u57fa\u4e8e-prompt-learning-\u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76"},"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76"),(0,s.kt)("p",null,"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e ",(0,s.kt)("a",{parentName:"p",href:"https://arxiv.org/pdf/2304.03119.pdf"},"IPL")," \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece ",(0,s.kt)("a",{parentName:"p",href:"https://github.com/Picsart-AI-Research/IPL-Zero-Shot-Generative-Model-Adaptation"},"IPL-Zero-Shot-Generative-Model-Adaptation")," fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002"),(0,s.kt)("h2",{id:"\u4f9d\u8d56"},"\u4f9d\u8d56"),(0,s.kt)("h3",{id:"\u521b\u5efa-anaconda-\u865a\u62df\u73af\u5883"},"\u521b\u5efa Anaconda \u865a\u62df\u73af\u5883"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-powershell"},"conda create -n ipl python=3.8\nconda activate ipl\n")),(0,s.kt)("h3",{id:"\u5b89\u88c5\u4f9d\u8d56"},"\u5b89\u88c5\u4f9d\u8d56"),(0,s.kt)("p",null,"\u8bf7\u786e\u4fdd NVIDIA \u9a71\u52a8\u3001CUDA \u4ee5\u53ca PyTorch \u4e4b\u95f4\u7248\u672c\u4e92\u76f8\u5339\u914d\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-powershell"},"conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia\npip install ftfy regex tqdm ninja\npip install git+https://github.com/openai/CLIP.git\n")),(0,s.kt)("h3",{id:"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668"},"\u4e0b\u8f7d\u9884\u8bad\u7ec3\u751f\u6210\u5668"),(0,s.kt)("p",null,"\u9884\u8bad\u7ec3\u7684\u6e90\u57df\u751f\u6210\u5668\u53ef\u4ee5\u901a\u8fc7 ",(0,s.kt)("a",{parentName:"p",href:"https://drive.google.com/drive/folders/1FW8XfDbTg9MLEodEeIl6zJEaCVyZ053L?usp=sharing"},"Google Drive "),"\u6216\u8005 ",(0,s.kt)("a",{parentName:"p",href:"https://cloud.tsinghua.edu.cn/d/dbd0955d9a9547dc99f2/"},"Tsinghua Cloud")," \u4e0b\u8f7d\uff0c\u5e76\u5c06\u5176\u7f6e\u4e8e ",(0,s.kt)("inlineCode",{parentName:"p"},"./pre_stylegan")," \u6587\u4ef6\u5939\u4e2d\u3002"),(0,s.kt)("h2",{id:"\u6982\u8ff0"},"\u6982\u8ff0"),(0,s.kt)("h2",{id:"\u6280\u672f\u7ec6\u8282"},"\u6280\u672f\u7ec6\u8282"),(0,s.kt)("h3",{id:"prompts-\u7684\u521d\u59cb\u5316"},"prompts \u7684\u521d\u59cb\u5316"),(0,s.kt)("p",null,(0,s.kt)("inlineCode",{parentName:"p"},"ctx_init "),"\u53c2\u6570\u7528\u4e8e\u521d\u59cb\u5316 prompts\uff0c\u5b98\u65b9\u63d0\u4f9b\u7684\u6f14\u793a context \u662f",(0,s.kt)("inlineCode",{parentName:"p"},"a photo of a"),"\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},'source_prompts = [prompt_prefix + " " + args.source_class]\n target_prompts = [prompt_prefix + " " + args.target_class]\n')),(0,s.kt)("p",null,"\u6e90\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd ",(0,s.kt)("inlineCode",{parentName:"p"},"source_prompts")," \u662f ctx_init \u4e0e\u6e90\u57df\u6807\u7b7e\u7684\u7ec4\u5408\u3002\u82e5\u6e90\u57df\u6807\u7b7e\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"photo"),"\uff0c\u5219\u6e90\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"a photo of a photo"),"\u3002\u76ee\u6807\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u540c\u7406\u3002"),(0,s.kt)("h3",{id:"prompts-\u7684-tokenize-\u4e0e-embedding"},"prompts \u7684 tokenize \u4e0e embedding"),(0,s.kt)("p",null,"\u6e90\u57df\u4ee5\u53ca\u76ee\u6807\u57df\u7684\u521d\u59cb\u63d0\u793a\u8bcd\u63a5\u4e0b\u6765\u4f1a\u8fdb\u884c tokenize\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"source_tokenized_prompts = torch.cat([clip.tokenize(p) for p in source_prompts]).to(device)\n# (1, 77) 'sot a photo of a photo eot' \u5728\u7ecf\u8fc7tokenize\u540e\u4e3atensor [[49406, 320, 1125, 539, 320, 1125, 49407, etc]]\n# 77\u662fCLIP\u5728tokenize\u65b9\u6cd5\u4e2d\u7f3a\u7701\u7684context_length\uff0c\u8d85\u8fc7context_length\u5c06\u88abtruncate\uff0c\u4e0d\u8db3\u7684\u5c06\u75280\u8865\u9f50\ntarget_tokenized_prompts = torch.cat([clip.tokenize(p) for p in target_prompts]).to(device)\n# (1, 77) 'sot a photo of a disney' \u5728\u7ecf\u8fc7tokenize\u540e\u4e3atensor [[49406, 320, 1125, 539, 320, 4696, 49407, etc]]\n# 77\u662fCLIP\u5728tokenize\u65b9\u6cd5\u4e2d\u7f3a\u7701\u7684context_length\uff0c\u8d85\u8fc7context_length\u5c06\u88abtruncate\uff0c\u4e0d\u8db3\u7684\u5c06\u75280\u8865\u9f50\n")),(0,s.kt)("p",null,"tokenize \u662f CLIP \u5bf9\u9001\u5165\u7684 prompt \u5b57\u7b26\u4e32\u8fdb\u884c\u6807\u8bb0\u5316\u5904\u7406\uff0c\u5728\u5934\u90e8\u548c\u5c3e\u90e8\u6dfb\u52a0 startoftext \u4ee5\u53ca endoftext \u6807\u8bb0\uff0c\u6700\u7ec8\u4e3a\u4e24\u4e2a\u9996\u5c3e\u6807\u8bb0\u548c\u5168\u90e8\u5355\u8bcd\u751f\u6210 int \u6807\u8bb0\u3002\u5176\u4e2d CLIP \u6a21\u578b\u7f3a\u7701\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"context_length")," \u662f77\uff0c\u82e5 prompt \u5927\u4e8e 77 \u4f1a\u8fdb\u884c\u622a\u65ad\uff08truncate\uff09\uff0c\u82e5\u5c0f\u4e8e 77 \u4f1a\u8fdb\u884c\u8865\u96f6\uff0c\u56e0\u6b64 ",(0,s.kt)("inlineCode",{parentName:"p"},"source_tokenized_prompts")," \u4e0e ",(0,s.kt)("inlineCode",{parentName:"p"},"target_tokenized_prompts")," \u7684\u5f62\u72b6\u5747\u4e3a (1, 77)\u3002"),(0,s.kt)("p",null,"\u5728\u63d0\u793a\u8bcd\u6807\u8bb0\u5316\u4e4b\u540e\uff0c\u5c06\u8fdb\u884c\u5d4c\u5165\u8868\u793a embedding\uff1a"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"source_embedding = clip_model.token_embedding(source_tokenized_prompts).type(clip_model.dtype)\n# (1, 77, 512) \u5176\u4e2d512\u662fCLIP\u4e2d\u7684n_dim\uff0ctoken_embedding\u5c42\u7684\u8bcd\u5d4c\u5165\u7684\u7ef4\u5ea6\ntarget_embedding = clip_model.token_embedding(target_tokenized_prompts).type(clip_model.dtype)\n# (1, 77, 512) \u5176\u4e2d512\u662fCLIP\u4e2d\u7684n_dim\uff0ctoken_embedding\u5c42\u7684\u8bcd\u5d4c\u5165\u7684\u7ef4\u5ea6\n")),(0,s.kt)("h3",{id:"compute_text_features-\u7684\u5b9e\u73b0\u7ec6\u8282"},"compute_text_features \u7684\u5b9e\u73b0\u7ec6\u8282"),(0,s.kt)("p",null,"\u5728 Mapper \u751f\u6210 prompts \u540e\u8fdb\u884c prompts \u7684\u7279\u5f81\u63d0\u53d6\u65f6\uff0c\u9700\u8981\u4f20\u5165 tokenize \u4e4b\u540e\u7684\u4eba\u5de5\u521d\u59cb\u5316 prompt\uff08\u2018a photo of a photo.\u2019\u6216\u2018a photo of a disney.\u2019\uff09\uff0c\u7528\u4e8e\u9009\u62e9 eot \u7b26\u53f7\u5bf9\u5e94\u7684\u7ef4\u5ea6\u6765\u8fdb\u884c\u7279\u5f81\u6295\u5f71\uff08",(0,s.kt)("strong",{parentName:"p"},"\u56e0\u4e3a eot \u4f5c\u4e3a\u6574\u4e2a\u53e5\u5b50\u7684\u7ed3\u5c3e\uff0c\u88ab\u8ba4\u4e3a\u8be5\u7ef4\u5ea6\u5305\u542b\u66f4\u591a\u7684\u4fe1\u606f"),"\u3002\u5177\u4f53\u505a\u6cd5\uff1a\u7531\u4e8e\u5728 tokenize \u4e4b\u540e\uff0ceot \u7b26\u53f7\u5bf9\u5e94\u7684\u7ef4\u5ea6\u7684\u503c\u6700\u5927\uff0c\u56e0\u6b64\u53ef\u4f7f\u7528 argmax \u6765\u5b9a\u4f4d\uff09\uff0c\u4ee5\u4fdd\u8bc1\u6700\u540e\u5f97\u5230\u7684\u7279\u5f81\u5f62\u72b6\u4e0e\u56fe\u50cf\u7279\u5f81\u63d0\u53d6\u7684\u8f93\u51fa\u5f62\u72b6\u76f8\u540c\uff0c\u4f7f\u5f97\u540e\u7eed\u53ef\u4ee5\u8fdb\u884c\u5bf9\u6bd4\u5b66\u4e60\u7684\u635f\u5931\u8ba1\u7b97\u3002"),(0,s.kt)("h3",{id:"\u8bad\u7ec3-stage-1"},"\u8bad\u7ec3 stage 1"),(0,s.kt)("h4",{id:"z\u7a7a\u95f4\u4e0ew\u7a7a\u95f4"},"Z\u7a7a\u95f4\u4e0eW\u7a7a\u95f4"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"# Z\u7a7a\u95f4\u5230W\u7a7a\u95f4\u7684\u53d8\u6362\nsample_z = mixing_noise(args.batch_mapper, 512, args.mixing, device)\n# (batch_size, 512)\nsample_w = net.generator_frozen.style(sample_z)\n# (batch_size, 512)\n")),(0,s.kt)("p",null,"Z \u7a7a\u95f4\u548c W \u7a7a\u95f4\u662f StyleGAN \u6a21\u578b\u4e2d\u4e24\u79cd\u4e0d\u540c\u7684\u9690\u53d8\u91cf\u7a7a\u95f4\uff0c\u5206\u522b\u7528\u4e8e\u63a7\u5236\u751f\u6210\u56fe\u50cf\u7684\u968f\u673a\u7279\u5f81\u548c\u6837\u5f0f\u4fe1\u606f\u3002W \u7a7a\u95f4\u901a\u8fc7\u5bf9 Z \u7a7a\u95f4\u7684\u6620\u5c04\u5f97\u5230\u3002"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"Z \u7a7a\u95f4\uff08Latent Space Z\uff09"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},"Z \u7a7a\u95f4\u662f\u968f\u673a\u566a\u58f0\u7a7a\u95f4\uff0c\u901a\u5e38\u7531\u968f\u673a\u566a\u58f0\u5411\u91cf\u7ec4\u6210\uff0c\u8868\u793a\u4e86\u56fe\u50cf\u7684\u968f\u673a\u7279\u5f81\u3002"),(0,s.kt)("li",{parentName:"ul"},"\u5728 StyleGAN \u4e2d\uff0cZ \u7a7a\u95f4\u7684\u7ef4\u5ea6\u901a\u5e38\u4e3a 512 \u7ef4\u3002\u8fd9\u610f\u5473\u7740\u4e00\u4e2a Z \u5411\u91cf\u7531 512 \u4e2a\u6570\u5b57\u7ec4\u6210\uff0c\u6bcf\u4e2a\u6570\u5b57\u8868\u793a\u4e86\u56fe\u50cf\u7684\u4e00\u4e2a\u968f\u673a\u7279\u5f81\u7684\u5f3a\u5ea6\u6216\u8005\u65b9\u5411\u3002"))),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"W \u7a7a\u95f4\uff08Style Space W\uff09"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("p",{parentName:"li"},"W \u7a7a\u95f4\u7ecf\u8fc7\u7279\u5f81\u89e3\u8026\u7684\u9690\u7a7a\u95f4\uff0c\u4e0e Z \u7a7a\u95f4\u76f8\u6bd4\u66f4\u52a0\u89e3\u8026\u5408\u3002")),(0,s.kt)("li",{parentName:"ul"},(0,s.kt)("p",{parentName:"li"},"\u5728 StyleGAN \u4e2d\uff0cW \u7a7a\u95f4\u7684\u7ef4\u5ea6\u4e5f\u901a\u5e38\u4e3a 512 \u7ef4\uff0c\u662f\u901a\u8fc7mapping network\u8fdb\u884c\u6620\u5c04\u5f97\u5230\u7684\uff0cmapping network\u7531PixelNorm\u5c42\u4e0eEqualLinear\u5c42\u6784\u6210\u3002\u4ee5\u4e0b\u4ee3\u7801\u8282\u9009\u81ea",(0,s.kt)("inlineCode",{parentName:"p"},"sg2_model.py")),(0,s.kt)("pre",{parentName:"li"},(0,s.kt)("code",{parentName:"pre",className:"language-python"},"'''mapping network'''\nlayers = [PixelNorm()]\n\nfor i in range(n_mlp):\n layers.append(\n EqualLinear(\n style_dim, style_dim, lr_mul=lr_mlp, activation=\"fused_lrelu\"\n )\n )\n\nself.style = nn.Sequential(*layers)\n"))))),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"Z \u7a7a\u95f4\u4e0e W \u7a7a\u95f4\u7684\u5173\u7cfb"),"\uff1a"),(0,s.kt)("ul",{parentName:"li"},(0,s.kt)("li",{parentName:"ul"},"\u5728 StyleGAN \u4e2d\uff0c\u901a\u5e38\u4f1a\u5148\u5c06\u4e00\u4e2a Z \u5411\u91cf\u6620\u5c04\u5230 W \u7a7a\u95f4\uff0c\u7136\u540e\u518d\u5c06 W \u5411\u91cf\u8f93\u5165\u5230\u751f\u6210\u5668\u7f51\u7edc\u4e2d\u751f\u6210\u56fe\u50cf\u3002"),(0,s.kt)("li",{parentName:"ul"},"Z \u7a7a\u95f4\u63d0\u4f9b\u4e86\u521d\u59cb\u968f\u673a\u566a\u58f0\uff0c\u800c W \u7a7a\u95f4\u5219\u901a\u8fc7\u7279\u5f81\u89e3\u8026\u63d0\u4f9b\u66f4\u591a\u63a7\u5236\u56fe\u50cf\u98ce\u683c\u7684\u7075\u6d3b\u6027\u3002\u901a\u8fc7\u5bf9 Z \u548c W \u4e4b\u95f4\u7684\u6620\u5c04\u4ee5\u53ca W \u5728\u751f\u6210\u5668\u4e2d\u7684\u5e94\u7528\uff0cStyleGan \u5b9e\u73b0\u4e86\u9ad8\u5ea6\u53ef\u63a7\u4e14\u5177\u6709\u826f\u597d\u751f\u6210\u6548\u679c\u7684\u56fe\u50cf\u5408\u6210\u3002")))),(0,s.kt)("h4",{id:"\u635f\u5931\u51fd\u6570"},"\u635f\u5931\u51fd\u6570"),(0,s.kt)("p",null,"\u5728\u4ee3\u7801\u4e2d\uff0cstage 1 \u7684\u635f\u5931\u51fd\u6570\u662f ",(0,s.kt)("inlineCode",{parentName:"p"},"global_clip_loss"),"\uff0c\u8be5\u635f\u5931\u7531\u4e09\u90e8\u5206\u7ec4\u6210\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\uff1aMapper \u751f\u6210\u7684\u6e90\u57df prompts \u7684\u7279\u5f81",(0,s.kt)("strong",{parentName:"li"},"\uff08\u6ce8\u610f\uff0c\u8fd9\u91cc\u7684 prompts \u7279\u5f81\u662f\u4e0e\u4eba\u5de5\u521d\u59cb\u5316\u7684 prompts \u7684\u7279\u5f81\u505a\u8fc7 element-wise \u76f8\u52a0\u540e\u7684\u7279\u5f81\uff09"),"\u4e0e\u6e90\u57df\u56fe\u50cf\u7279\u5f81\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\u7ec4\u6210\u7684\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\uff1b"),(0,s.kt)("li",{parentName:"ol"},"\u76ee\u6807\u57df\u6b63\u5219\u5316\u635f\u5931\uff1aMapper \u751f\u6210\u7684\u76ee\u6807\u57df prompts \u7684\u7279\u5f81\u4e0e\u76ee\u6807\u57df\u6587\u672c\u6807\u7b7e\u7279\u5f81\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\uff0c\u8fd9\u91cc\u751f\u6210\u7684\u76ee\u6807\u57df prompts \u7279\u5f81\u540c\u6837\u4e5f\u662f\u4e0e\u4eba\u5de5\u521d\u59cb\u5316\u7684 prompts \u505a\u8fc7\u52a0\u6cd5\u7684\u3002\u6ce8\u610f\u8be5\u635f\u5931\u6709\u6743\u91cd ",(0,s.kt)("inlineCode",{parentName:"li"},"lambda_l"),"\u3002"),(0,s.kt)("li",{parentName:"ol"},"\u6e90\u57df\u6b63\u5219\u5316\uff1a\u8ba1\u7b97\u751f\u6210\u7684\u6e90\u57dfprompts\u4e0e\u6e90\u57df\u6807\u7b7e\u4e4b\u95f4\u7684\u4f59\u5f26\u76f8\u4f3c\u5ea6\uff0c\u7531 ",(0,s.kt)("inlineCode",{parentName:"li"},"lambda_src")," \u63a7\u5236\uff0c\u9ed8\u8ba4\u662f 0\u3002")),(0,s.kt)("h3",{id:"\u8bad\u7ec3-stage-2"},"\u8bad\u7ec3 stage 2"),(0,s.kt)("h4",{id:"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42"},"\u786e\u5b9a\u76ee\u6807\u57df\u751f\u6210\u57df\u9700\u8981\u66f4\u65b0\u7684\u5c42"),(0,s.kt)("p",null,"\u5728\u8bad\u7ec3\u7684\u7b2c\u4e8c\u9636\u6bb5\u8fdb\u884c\u524d\u5411\u4f20\u64ad\u65f6\uff0c\u9700\u8981\u5148\u5bf9\u76ee\u6807\u57df\u751f\u6210\u5668\uff08generator_trainable\uff09\u7684\u6240\u6709\u5c42\u8fdb\u884c unfreeze\uff0c\u7136\u540e\u5bf9\u66f4\u65b0\u54ea\u4e9b\u5c42\u505a\u51fa\u9009\u62e9\uff0c\u627f\u62c5\u9009\u62e9\u4efb\u52a1\u7684\u529f\u80fd\u51fd\u6570\uff1amodel.ZSSGAN.ZSSGAN.determine_opt_layers\uff0c\u6700\u540e freeze \u6240\u6709\u5c42\u540e\u518d unfreeze \u9009\u62e9\u7684\u7f51\u7edc\u5c42\u3002"),(0,s.kt)("pre",null,(0,s.kt)("code",{parentName:"pre",className:"language-python"},"if self.training and self.auto_layer_iters > 0:\n self.generator_trainable.unfreeze_layers() # unfreeze\n train_layers = self.determine_opt_layers() # layer to train\n\n if not isinstance(train_layers, list):\n train_layers = [train_layers]\n\n self.generator_trainable.freeze_layers()\n self.generator_trainable.unfreeze_layers(train_layers) # unfreeze\n")),(0,s.kt)("p",null,"\u5177\u4f53\u9009\u62e9\u5e26\u66f4\u65b0\u7f51\u7edc\u5c42\u7684\u7b56\u7565\uff1a"),(0,s.kt)("p",null,"\u5c06 W \u7a7a\u95f4\u7684\u9690\u5411\u91cf\u9001\u5165\u76ee\u6807\u57df\u751f\u6210\u5668\uff08SG2Generator\uff09\u4e2d\uff0c\u5e76\u8fdb\u884c\u53cd\u5411\u4f20\u64ad\uff0c\u6b64\u65f6\u53ef\u4ee5\u901a\u8fc7\u53cd\u5411\u4f20\u64ad\u540e W \u7a7a\u95f4\u9690\u5411\u91cf\u4e0d\u540c\u7ef4\u5ea6\u7684\u66f4\u65b0\u5e45\u5ea6\u6765\u8861\u91cf\u4e0d\u540c\u7f51\u7edc\u5c42\u7684\u5f71\u54cd\u529b\uff0c\u56e0\u6b64\u9009\u51fa\u66f4\u65b0\u5e45\u5ea6\u6700\u5927\u7684\u7ef4\u5ea6\u5c31\u53ef\u4ee5\u786e\u5b9a\u5728 Model Adaption \u4e2d\u9700\u8981\u66f4\u65b0\u7684\u7f51\u7edc\u5c42\u3002"),(0,s.kt)("p",null,(0,s.kt)("strong",{parentName:"p"},"\u4e4b\u6240\u4ee5 W \u7a7a\u95f4\u7f16\u7801\u5728 n_latent \u7ef4\u5ea6\u4e0a\u7684\u5e8f\u53f7\u5c31\u4ee3\u8868\u7740\u5bf9\u5e94\u7684\u7f51\u7edc\u5c42\u6570\u7684\u5e8f\u53f7\uff0c\u662f\u56e0\u4e3a StyleGAN \u751f\u6210\u5668\u7684\u7ed3\u6784\u51b3\u5b9a\u4e86\u8fd9\u4e00\u70b9\uff1aStyleGAN \u751f\u6210\u5668\u4e2d\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u4e0d\u540c\u7ef4\u5ea6\u4f1a\u88ab\u9001\u5165\u751f\u6210\u5668\u7f51\u7edc\u7684\u4e0d\u540c\u5c42\uff0c\u63a7\u5236\u8fd9\u4e9b\u5c42\u7684\u7279\u5f81\u6620\u5c04 (feature mapping)\u3002\u5177\u4f53\u6765\u8bf4\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u6bcf\u4e2a\u7ef4\u5ea6\u4f1a\u88ab\u91cd\u590d n_latent \u6b21\uff0c\u4f5c\u4e3a\u8be5\u5c42\u7684\u98ce\u683c\u5411\u91cf (style vector)\uff0c\u901a\u8fc7 AdaIN (Adaptive Instance Normalization) \u5c42\u63a7\u5236\u8be5\u5c42\u7684\u7279\u5f81\u6620\u5c04\u3002\u56e0\u6b64\uff0cW \u7a7a\u95f4\u7f16\u7801\u7684\u7b2c i \u4e2a\u7ef4\u5ea6\u4f1a\u5f71\u54cd\u751f\u6210\u5668\u7f51\u7edc\u4e2d\u7b2c i \u5c42\u7684\u7279\u5f81\u6620\u5c04\u3002\u5f53\u67d0\u4e2a\u7ef4\u5ea6\u7684 W \u503c\u88ab\u66f4\u65b0\u7684\u7a0b\u5ea6\u8f83\u5927\u65f6\uff0c\u5c31\u610f\u5473\u7740\u8be5\u7ef4\u5ea6\u5bf9\u5e94\u7684\u5c42\u5728\u751f\u6210\u76ee\u6807\u56fe\u50cf\u65f6\u8d77\u5230\u4e86\u91cd\u8981\u4f5c\u7528\uff0c\u9700\u8981\u88ab\u4f18\u5316\u3002")),(0,s.kt)("h4",{id:"\u635f\u5931\u51fd\u6570-1"},"\u635f\u5931\u51fd\u6570"),(0,s.kt)("p",null,"stage 2 \u7684\u635f\u5931\u51fd\u6570\u662f CLIP Loss \u7c7b\u4e2d\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"clip_directional_loss"),"\uff0c\u8be5\u635f\u5931\u51fd\u6570\u7531\u4e24\u90e8\u5206\u7ec4\u6210\uff1a"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("inlineCode",{parentName:"li"},"edit_direciton"),"\uff1a\u6e90\u57df\u751f\u6210\u5668\u4e0e\u76ee\u6807\u57df\u751f\u6210\u5668\u751f\u6210\u7684\u56fe\u7247\u5728\u7ecf\u8fc7 image encdoer \u540e\u505a element-wise \u7684\u76f8\u51cf\uff0c\u6700\u540e\u9664\u4ee5\u81ea\u8eab\u7684 L2 Norm \u65b9\u4fbf\u540e\u7eed\u4e0e target_direction \u8ba1\u7b97\u4f59\u5f26\u76f8\u4f3c\u5ea6"),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("inlineCode",{parentName:"li"},"target_direction"),"\uff1aMapper \u4ea7\u751f\u7684\u6e90\u57df\u548c\u76ee\u6807\u57df prompts \u7684 text_features \u505aelement-wise\u76f8\u51cf\u540e\uff0c\u6700\u540e\u521d\u4e00\u81ea\u8eab\u7684 L2 Norm \u4ee5\u4fbf\u540e\u7eed\u4e0e edit_direction \u8ba1\u7b97\u4f59\u5f26\u76f8\u4f3c\u5ea6")),(0,s.kt)("h2",{id:"\u5b9a\u91cf\u5206\u6790\u6307\u6807"},"\u5b9a\u91cf\u5206\u6790\u6307\u6807"),(0,s.kt)("p",null,"\u53c2\u8003\u6587\u732e\uff1a",(0,s.kt)("a",{parentName:"p",href:"https://blog.csdn.net/qq_35586657/article/details/98478508"},"GAN \u7684\u51e0\u79cd\u8bc4\u4ef7\u6307\u6807")),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Inception Score\uff08IS\uff09"),(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u8d28\u91cf\u548c\u591a\u6837\u6027")),(0,s.kt)("p",{parentName:"li"},"\u8d28\u91cf\uff1a\u628a\u751f\u6210\u7684\u56fe\u7247 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"x")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"x")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.4306em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x")))))," \u8f93\u5165 Inception V3 \u4e2d\uff0c\u5f97\u5230\u8f93\u51fa 1000 \u7ef4\u7684\u5411\u91cf ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"y")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"y")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"0.625em",verticalAlign:"-0.1944em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"))))),"\uff0c\u5411\u91cf\u7684\u6bcf\u4e2a\u7ef4\u5ea6\u7684\u503c\u5bf9\u5e94\u56fe\u7247\u5c5e\u4e8e\u67d0\u7c7b\u7684\u6982\u7387\u3002\u5bf9\u4e8e\u4e00\u4e2a\u6e05\u6670\u7684\u56fe\u7247\uff0c\u5b83\u5c5e\u4e8e\u67d0\u4e00\u7c7b\u7684\u6982\u7387\u5e94\u8be5\u975e\u5e38\u5927\uff0c\u800c\u5c5e\u4e8e\u5176\u5b83\u7c7b\u7684\u6982\u7387\u5e94\u8be5\u5f88\u5c0f\u3002\u7528\u4e13\u4e1a\u672f\u8bed\u8bf4\uff0c ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y|x)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u200b \u7684\u71b5\u5e94\u8be5\u5f88\u5c0f\uff08\u71b5\u4ee3\u8868\u6df7\u4e71\u5ea6\uff0c\u5747\u5300\u5206\u5e03\u7684\u6df7\u4e71\u5ea6\u6700\u5927\uff0c\u71b5\u6700\u5927\uff09\u3002"),(0,s.kt)("p",{parentName:"li"},"\u591a\u6837\u6027\uff1a \u5982\u679c\u4e00\u4e2a\u6a21\u578b\u80fd\u751f\u6210\u8db3\u591f\u591a\u6837\u7684\u56fe\u7247\uff0c\u90a3\u4e48\u5b83\u751f\u6210\u7684\u56fe\u7247\u5728\u5404\u4e2a\u7c7b\u522b\u4e2d\u7684\u5206\u5e03\u5e94\u8be5\u662f\u5e73\u5747\u7684\uff0c\u5047\u8bbe\u751f\u6210\u4e86 10000 \u5f20\u56fe\u7247\uff0c\u90a3\u4e48\u6700\u7406\u60f3\u7684\u60c5\u51b5\u662f\uff0c1000 \u7c7b\u4e2d\u6bcf\u7c7b\u751f\u6210\u4e86 10 \u5f20\u3002\u8f6c\u6362\u6210\u672f\u8bed\uff0c\u5c31\u662f\u751f\u6210\u56fe\u7247\u5728\u6240\u6709\u7c7b\u522b\u6982\u7387\u7684\u8fb9\u7f18\u5206\u5e03 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u200b \u71b5\u5f88\u5927\uff08\u5747\u5300\u5206\u5e03\uff09\u3002"),(0,s.kt)("p",{parentName:"li"},"\u56e0\u6b64\uff0c\u5bf9\u4e8e IS \u6211\u4eec\u9700\u8981\u6c42\u7684\u4e24\u4e2a\u91cf\u5c31\u662f ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y|x)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))," \u548c ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u3002\u5b9e\u9645\u4e2d\uff0c\u9009\u53d6\u5927\u91cf\u751f\u6210\u6837\u672c\uff0c\u7528\u7ecf\u9a8c\u5206\u5e03\u6a21\u62df ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\uff1a"),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mover",{parentName:"mrow",accent:"true"},(0,s.kt)("mi",{parentName:"mover"},"p"),(0,s.kt)("mo",{parentName:"mover"},"^")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mfrac",{parentName:"mrow"},(0,s.kt)("mn",{parentName:"mfrac"},"1"),(0,s.kt)("mi",{parentName:"mfrac"},"N")),(0,s.kt)("munderover",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"munderover"},"\u2211"),(0,s.kt)("mrow",{parentName:"munderover"},(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mn",{parentName:"mrow"},"1")),(0,s.kt)("mi",{parentName:"munderover"},"N")),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("msup",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msup",mathvariant:"bold"},"x"),(0,s.kt)("mrow",{parentName:"msup"},(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"i"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"))),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\hat{p}(y)=\\frac{1}{N}\\sum_{i=1}^{N}p(y|\\mathbf{x}^{(i)})")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord accent"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.6944em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p")),(0,s.kt)("span",{parentName:"span",style:{top:"-3em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"accent-body",style:{left:"-0.1667em"}},(0,s.kt)("span",{parentName:"span",className:"mord"},"^")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1944em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"3.106em",verticalAlign:"-1.2777em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mopen nulldelimiter"}),(0,s.kt)("span",{parentName:"span",className:"mfrac"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.3214em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.314em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.10903em"}},"N"))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.23em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"frac-line",style:{borderBottomWidth:"0.04em"}})),(0,s.kt)("span",{parentName:"span",style:{top:"-3.677em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord"},"1")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.686em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mclose nulldelimiter"})),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mop op-limits"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.8283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-1.8723em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"="),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},"1")))),(0,s.kt)("span",{parentName:"span",style:{top:"-3.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span"},(0,s.kt)("span",{parentName:"span",className:"mop op-symbol large-op"},"\u2211"))),(0,s.kt)("span",{parentName:"span",style:{top:"-4.3em",marginLeft:"0em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"3.05em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.10903em"}},"N"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"1.2777em"}},(0,s.kt)("span",{parentName:"span"}))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.938em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-3.113em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mopen mtight"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"i"),(0,s.kt)("span",{parentName:"span",className:"mclose mtight"},")"))))))))),(0,s.kt)("span",{parentName:"span",className:"mclose"},")")))))),(0,s.kt)("p",{parentName:"li"},"Inception Score \u7684\u5b8c\u6574\u516c\u5f0f\u5982\u4e0b\uff1a"),(0,s.kt)("div",{parentName:"li",className:"math math-display"},(0,s.kt)("span",{parentName:"div",className:"katex-display"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML",display:"block"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"I"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"S")),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"G"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow"},"="),(0,s.kt)("mi",{parentName:"mrow"},"exp"),(0,s.kt)("mo",{parentName:"mrow"},"\u2061"),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub",mathvariant:"double-struck"},"E"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"x"),(0,s.kt)("mo",{parentName:"mrow"},"\u223c"),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"p"),(0,s.kt)("mi",{parentName:"msub"},"g")))),(0,s.kt)("msub",{parentName:"mrow"},(0,s.kt)("mi",{parentName:"msub"},"D"),(0,s.kt)("mrow",{parentName:"msub"},(0,s.kt)("mi",{parentName:"mrow"},"K"),(0,s.kt)("mi",{parentName:"mrow"},"L"))),(0,s.kt)("mrow",{parentName:"mrow"},(0,s.kt)("mo",{parentName:"mrow",fence:"true"},"("),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"bold"},"x"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow",mathvariant:"normal"},"\u2223"),(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")"),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")")),(0,s.kt)("mo",{parentName:"mrow",fence:"true"},")"))),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"\\mathbf{IS}(G)=\\exp\\left(\\mathbb{E}_{\\mathbf{x}\\sim p_g}D_{KL}\\left(p(y|\\mathbf{x})||p(y)\\right)\\right)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"IS")),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"G"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}}),(0,s.kt)("span",{parentName:"span",className:"mrel"},"="),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.2778em"}})),(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1.2em",verticalAlign:"-0.35em"}}),(0,s.kt)("span",{parentName:"span",className:"mop"},"exp"),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size1"},"(")),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathbb"},"E"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1611em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"0em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathbf mtight"},"x"),(0,s.kt)("span",{parentName:"span",className:"mrel mtight"},"\u223c"),(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"p"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.1645em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.357em",marginLeft:"0em",marginRight:"0.0714em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.5em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size3 size1 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.03588em"}},"g")))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.2819em"}},(0,s.kt)("span",{parentName:"span"})))))))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3473em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mord"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.02778em"}},"D"),(0,s.kt)("span",{parentName:"span",className:"msupsub"},(0,s.kt)("span",{parentName:"span",className:"vlist-t vlist-t2"},(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.3283em"}},(0,s.kt)("span",{parentName:"span",style:{top:"-2.55em",marginLeft:"-0.0278em",marginRight:"0.05em"}},(0,s.kt)("span",{parentName:"span",className:"pstrut",style:{height:"2.7em"}}),(0,s.kt)("span",{parentName:"span",className:"sizing reset-size6 size3 mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mtight"},(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight",style:{marginRight:"0.07153em"}},"K"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal mtight"},"L"))))),(0,s.kt)("span",{parentName:"span",className:"vlist-s"},"\u200b")),(0,s.kt)("span",{parentName:"span",className:"vlist-r"},(0,s.kt)("span",{parentName:"span",className:"vlist",style:{height:"0.15em"}},(0,s.kt)("span",{parentName:"span"})))))),(0,s.kt)("span",{parentName:"span",className:"mspace",style:{marginRight:"0.1667em"}}),(0,s.kt)("span",{parentName:"span",className:"minner"},(0,s.kt)("span",{parentName:"span",className:"mopen delimcenter",style:{top:"0em"}},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathbf"},"x"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mord"},"\u2223\u2223"),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},")")),(0,s.kt)("span",{parentName:"span",className:"mclose delimcenter",style:{top:"0em"}},(0,s.kt)("span",{parentName:"span",className:"delimsizing size1"},")")))))))),(0,s.kt)("p",{parentName:"li"},"\u901a\u5e38\u8ba1\u7b97 Inception Score \u65f6\uff0c\u4f1a\u751f\u6210 50000 \u4e2a\u56fe\u7247\uff0c\u7136\u540e\u628a\u5b83\u5206\u6210 10 \u4efd\uff0c\u6bcf\u4efd 5000 \u4e2a\uff0c\u5206\u522b\u4ee3\u5165\u516c\u5f0f\u8ba1\u7b97 10 \u6b21 Inception Score\uff0c\u518d\u8ba1\u7b97\u5747\u503c\u548c\u65b9\u5dee\uff0c\u4f5c\u4e3a\u6700\u7ec8\u7684\u8861\u91cf\u6307\u6807\uff08\u5747\u503c\xb1\u65b9\u5dee\uff09\u3002\u4f46\u662f 5000 \u4e2a\u6837\u672c\u5f80\u5f80\u4e0d\u8db3\u4ee5\u5f97\u5230\u51c6\u786e\u7684\u8fb9\u7f18\u5206\u5e03 ",(0,s.kt)("span",{parentName:"p",className:"math math-inline"},(0,s.kt)("span",{parentName:"span",className:"katex"},(0,s.kt)("span",{parentName:"span",className:"katex-mathml"},(0,s.kt)("math",{parentName:"span",xmlns:"http://www.w3.org/1998/Math/MathML"},(0,s.kt)("semantics",{parentName:"math"},(0,s.kt)("mrow",{parentName:"semantics"},(0,s.kt)("mi",{parentName:"mrow"},"p"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},"("),(0,s.kt)("mi",{parentName:"mrow"},"y"),(0,s.kt)("mo",{parentName:"mrow",stretchy:"false"},")")),(0,s.kt)("annotation",{parentName:"semantics",encoding:"application/x-tex"},"p(y)")))),(0,s.kt)("span",{parentName:"span",className:"katex-html","aria-hidden":"true"},(0,s.kt)("span",{parentName:"span",className:"base"},(0,s.kt)("span",{parentName:"span",className:"strut",style:{height:"1em",verticalAlign:"-0.25em"}}),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal"},"p"),(0,s.kt)("span",{parentName:"span",className:"mopen"},"("),(0,s.kt)("span",{parentName:"span",className:"mord mathnormal",style:{marginRight:"0.03588em"}},"y"),(0,s.kt)("span",{parentName:"span",className:"mclose"},")"))))),"\u200b\uff0c\u5c24\u5176\u662f\u50cf ImageNet \u8fd9\u79cd\u5305\u542b 1000 \u4e2a\u7c7b\u7684\u6570\u636e\u96c6\u3002"),(0,s.kt)("p",{parentName:"li"},"StyleGAN-nada \u4ee5\u53ca IPL \u5728\u7ecf\u8fc7 batch_size \u4e3a 2\uff0citeration \u4e3a 300 \u7684\u8bad\u7ec3\u540e\uff08\u5176\u4e2d IPL \u7684 Mapper \u662f\u4ee5 batch_size \u4e3a 32\uff0citeration \u4e3a 300 \u8fdb\u884c\u8bad\u7ec3\u7684\uff09\uff0c\u4e8c\u8005\u7684 IS \u5206\u522b\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"(2.2960, 0.2042)")," \u4ee5\u53ca ",(0,s.kt)("inlineCode",{parentName:"p"},"(2.6420, 0.1959)"),"\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Fr\xe9chet Inception Distance\uff08FID\uff09"),(0,s.kt)("p",{parentName:"li"},(0,s.kt)("strong",{parentName:"p"},"\u8bc4\u4f30\u76ee\u6807\u57df\u7684\u98ce\u683c")),(0,s.kt)("p",{parentName:"li"},"\u8ba1\u7b97 IS \u65f6\u53ea\u8003\u8651\u4e86\u751f\u6210\u6837\u672c\uff0c\u6ca1\u6709\u8003\u8651\u771f\u5b9e\u6570\u636e\uff0c\u5373 ",(0,s.kt)("strong",{parentName:"p"},"IS \u65e0\u6cd5\u53cd\u6620\u771f\u5b9e\u6570\u636e\u548c\u6837\u672c\u4e4b\u95f4\u7684\u8ddd\u79bb"),"\uff0cIS \u5224\u65ad\u6570\u636e\u771f\u5b9e\u6027\u7684\u4f9d\u636e\uff0c\u6e90\u4e8e Inception V3 \u7684\u8bad\u7ec3\u96c6 ImageNet\uff0c\u5728 Inception V3 \u7684\u201c\u4e16\u754c\u89c2\u201d\u4e0b\uff0c\u51e1\u662f\u4e0d\u50cf ImageNet \u7684\u6570\u636e\uff0c\u90fd\u662f\u4e0d\u771f\u5b9e\u7684\uff0c\u90fd\u4e0d\u80fd\u4fdd\u8bc1\u8f93\u51fa\u4e00\u4e2a sharp \u7684 predition distribution\u3002\u56e0\u6b64\uff0c\u8981\u60f3\u66f4\u597d\u5730\u8bc4\u4ef7\u751f\u6210\u7f51\u7edc\uff0c\u5c31\u8981\u4f7f\u7528\u66f4\u52a0\u6709\u6548\u7684\u65b9\u6cd5\u8ba1\u7b97\u771f\u5b9e\u5206\u5e03\u4e0e\u751f\u6210\u6837\u672c\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002"),(0,s.kt)("p",{parentName:"li"},"FID \u8ddd\u79bb\u8ba1\u7b97\u771f\u5b9e\u6837\u672c\uff0c\u751f\u6210\u6837\u672c\u5728\u7279\u5f81\u7a7a\u95f4\u4e4b\u95f4\u7684\u8ddd\u79bb\u3002\u9996\u5148\u5229\u7528 Inception \u7f51\u7edc\u6765\u63d0\u53d6\u7279\u5f81\uff0c\u7136\u540e\u4f7f\u7528\u9ad8\u65af\u6a21\u578b\u5bf9\u7279\u5f81\u7a7a\u95f4\u8fdb\u884c\u5efa\u6a21\uff0c\u518d\u53bb\u6c42\u89e3\u4e24\u4e2a\u7279\u5f81\u4e4b\u95f4\u7684\u8ddd\u79bb\uff0c\u8f83\u4f4e\u7684 FID \u610f\u5473\u7740\u8f83\u9ad8\u56fe\u7247\u7684\u8d28\u91cf\u548c\u591a\u6837\u6027\u3002"),(0,s.kt)("p",{parentName:"li"},"StyleGAN-nada \u4ee5\u53ca IPL \u5728\u7ecf\u8fc7 batch_size \u4e3a 2\uff0citeration \u4e3a 300 \u7684\u8bad\u7ec3\u540e\uff08\u5176\u4e2d IPL \u7684 Mapper \u662f\u4ee5 batch_size \u4e3a 32\uff0citeration \u4e3a 300 \u8fdb\u884c\u8bad\u7ec3\u7684\uff09\uff0c\u4e8c\u8005\u7684 FID \u5206\u522b\u4e3a ",(0,s.kt)("inlineCode",{parentName:"p"},"84")," \u4ee5\u53ca ",(0,s.kt)("inlineCode",{parentName:"p"},"58"),"\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Single Image Fr\xe9chet Inception Score\uff08SIFID\uff09"),(0,s.kt)("p",{parentName:"li"},"FID \u6d4b\u91cf\u751f\u6210\u7684\u56fe\u50cf\u7684\u6df1\u5c42\u7279\u5f81\u5206\u5e03\u4e0e\u771f\u5b9e\u56fe\u50cf\u7684\u5206\u5e03\u4e4b\u95f4\u7684\u504f\u5dee\u3002\u5728 ICCV 2019 Best Paper \u4e2d\u63d0\u51fa\u4e86 SIFID\uff0c\u53ea\u4f7f\u7528\u4e00\u5f20\u771f\u5b9e\u76ee\u6807\u57df\u7684\u56fe\u50cf\u3002\u4e0e FID \u4e0d\u540c\uff0cSFID \u4e0d\u4f7f\u7528 Inception Network \u4e2d\u6700\u540e\u4e00\u4e2a\u6c60\u5316\u5c42\u4e4b\u540e\u7684\u6fc0\u6d3b\u77e2\u91cf\uff08\u6bcf\u4e2a\u56fe\u50cf\u4e00\u4e2a\u5411\u91cf\uff09\uff0c\u800c\u662f\u5728\u7b2c\u4e8c\u4e2a\u6c60\u5c42\u4e4b\u524d\u7684\u5377\u79ef\u5c42\u8f93\u51fa\u5904\u4f7f\u7528\u6df1\u5c42\u7279\u5f81\u7684\u5185\u90e8\u5206\u5e03\uff08feature map \u4e2d\u6bcf\u4e2a\u4f4d\u7f6e\u4e00\u4e2a\u5411\u91cf\uff09\u3002\u6700\u7ec8 SIFID \u662f\u771f\u5b9e\u56fe\u50cf\u548c\u751f\u6210\u7684\u6837\u672c\u4e2d\u8fd9\u4e9b\u7279\u5f81\u7684\u7edf\u8ba1\u6570\u636e\u4e4b\u95f4\u7684 FID\u3002")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Structural Consistency Score\uff08SCS\uff09"),(0,s.kt)("p",{parentName:"li"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u7ed3\u6784\u4fdd\u5b58\u80fd\u529b")),(0,s.kt)("li",{parentName:"ol"},(0,s.kt)("p",{parentName:"li"},"Identity Similarity\uff08ID\uff09"),(0,s.kt)("p",{parentName:"li"},"\u8bc4\u4f30\u56fe\u50cf\u7684\u7279\u5f81\u4fdd\u5b58\u80fd\u529b"))),(0,s.kt)("h2",{id:"\u65b0\u589e\u529f\u80fd"},"\u65b0\u589e\u529f\u80fd"),(0,s.kt)("h3",{id:"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb"},"\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb"),(0,s.kt)("p",null,"\u65b0\u589e\u4e86\u81ea\u5b9a\u4e49\u56fe\u50cf\u98ce\u683c\u8fc1\u79fb\u529f\u80fd\u3002"),(0,s.kt)("p",null," ",(0,s.kt)("a",{parentName:"p",href:"https://yuval-alaluf.github.io/hyperstyle/"},"HyperStyle "),"\u4e2d\u7684 e4e encoder \u5c06\u81ea\u5b9a\u4e49\u7684\u771f\u5b9e\u56fe\u50cf\u7f16\u7801\u81f3 StyleGAN2 \u4e2d\u7684 W \u7a7a\u95f4\u751f\u6210 latent codes\uff0c\u518d\u5c06\u5176\u5206\u522b\u8f93\u5165\u81f3\u6e90\u57df\u751f\u6210\u5668\u4ee5\u53ca\u76ee\u6807\u57df\u751f\u6210\u5668\u4ee5\u4ee3\u66ff\u539f\u59cb\u7684\u4ece\u6b63\u6001\u5206\u5e03\u4e2d sample \u51fa\u7684\u968f\u673a\u5411\u91cf\u751f\u6210\u7684 ",(0,s.kt)("inlineCode",{parentName:"p"},"w_codes"),"\uff0c\u4ece\u800c\u5f97\u5230\u76f8\u5e94\u7684\u56fe\u7247\u3002\u5176\u4e2d e4e encoder \u6765\u6e90\u4e8e HyperStyle \u63d0\u4f9b\u7684\u9884\u8bad\u7ec3 checkpoint\u3002"),(0,s.kt)("p",null,"\u4f7f\u7528\u65b9\u6cd5\uff1a\u8fd0\u884c ",(0,s.kt)("inlineCode",{parentName:"p"},"inference.py"),"\uff0c\u8bbe\u7f6e\u5bf9\u5e94\u7684\u53c2\u6570\uff0c\u5982\u751f\u6210\u5668\u4ee5\u53ca e4e encoder \u7684\u8def\u5f84\u3001\u56fe\u50cf\u8def\u5f84\u7b49\uff0c\u6700\u540e\u8fd0\u884c\u5373\u53ef\u3002"),(0,s.kt)("h4",{id:"\u4fee\u6539\u65e5\u5fd7"},"\u4fee\u6539\u65e5\u5fd7"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u53ea\u52a0\u8f7d\u4e86 ",(0,s.kt)("inlineCode",{parentName:"li"},"w_encoder")," \u7c7b\u53ca\u5176\u5bf9\u5e94 checkpoint \u53c2\u6570\uff0c\u5bfc\u81f4\u5e76\u672a\u5c06\u771f\u5b9e\u56fe\u7247\u7f16\u7801\u5230 StyleGAN \u7684 W \u7a7a\u95f4\u4e2d\uff0c\u6ca1\u6709 inversion \u51fa\u5408\u7406\u7684\u7ed3\u679c"),(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e8c\u6b21\u5c1d\u8bd5\u4f7f\u7528\u4e86 ",(0,s.kt)("inlineCode",{parentName:"li"},"restyle_e4e_encoder"),"\uff0c\u4f46\u662f\u6ca1\u6709\u4f7f\u7528 dlib \u8fdb\u884c alignment\uff0c\u4e5f\u6ca1\u6709\u4f7f\u7528 restyle \u6a21\u578b\u5728\u53cd\u6f14\u65f6\u4f7f\u7528\u7684\u591a\u6b21\u8fdb\u884c\u524d\u5411\u4f20\u64ad\u6765\u4fee\u6b63 latent code \u7684\u7b56\u7565\u3002\u6b64\u6b21\u5c1d\u8bd5\u867d\u7136\u53cd\u6f14\u51fa\u4e86\u5408\u7406\u7684\u4eba\u50cf\uff0c\u4f46\u662f\u4eba\u50cf\u7684\u7279\u5f81\u4fdd\u5b58\u80fd\u529b\u975e\u5e38\u5f31"),(0,s.kt)("li",{parentName:"ol"},"\u7b2c\u4e09\u6b21\u5c1d\u8bd5\u89e3\u51b3\u4e86\u4e0a\u4e00\u6b21\u53d1\u73b0\u7684\u95ee\u9898\uff0c\u52a0\u5165 dlib \u63d0\u4f9b\u7684 landmark \u68c0\u6d4b\u4ee5\u5b9e\u73b0 alignment\uff0c\u5e76\u4e14\u4f7f\u7528 ",(0,s.kt)("inlineCode",{parentName:"li"},"run_loop")," \u51fd\u6570\u5728 restyle_e4e_encoder \u4e2d\u8fdb\u884c\u591a\u6b21\u524d\u5411\u4f20\u64ad\u4ee5\u4fee\u6b63\u5f97\u5230\u7684 W \u7a7a\u95f4\u7684 latent code\uff0c\u6548\u679c\u8f83\u597d"),(0,s.kt)("li",{parentName:"ol"},"\u5bf9\u6bd4 pSp \u548c e4e encoder\uff0cpSp \u5bf9\u4eba\u8138\u56fe\u50cf\u7684\u8fd8\u539f\u80fd\u529b\u8f83\u5f3a\uff0c\u4f46\u662f\u4f1a\u5bfc\u81f4\u76ee\u6807\u57df\u56fe\u50cf\u5177\u6709\u968f\u673a\u7684\u5f69\u8272\u5149\u6655")),(0,s.kt)("h2",{id:"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb"},"\u95ee\u9898\u63d0\u51fa\u4e0e\u6539\u8fdb"),(0,s.kt)("h3",{id:"\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5-prompts-\u7684\u4f5c\u7528\u662f\u4ec0\u4e48"},"\u8bad\u7ec3\u9636\u6bb5\u4eba\u5de5 prompts \u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f"),(0,s.kt)("h4",{id:"\u4f5c\u7528"},"\u4f5c\u7528"),(0,s.kt)("ol",null,(0,s.kt)("li",{parentName:"ol"},"\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u5728\u8ba1\u7b97 ",(0,s.kt)("inlineCode",{parentName:"li"},"text_features")," \u65f6\u7528\u4e8e\u5b9a\u4f4d ",(0,s.kt)("inlineCode",{parentName:"li"},"eot")," \u5c42\u7b26\u53f7\u6240\u8868\u793a\u7684\u7ef4\u5ea6\u6765\u8fdb\u884c\u6295\u5f71\uff0c\u4f46\u4e0d\u53c2\u4e0e ",(0,s.kt)("inlineCode",{parentName:"li"},"text_features")," \u7684\u5b9e\u9645\u8ba1\u7b97"),(0,s.kt)("li",{parentName:"ol"},"\u5728\u8bad\u7ec3 Mapper \u7684 stage 1 \u7684\u635f\u5931\u51fd\u6570\u4e2d\uff0c\u5728\u8ba1\u7b97\u5bf9\u6bd4\u635f\u5931\u51fd\u6570\u65f6\uff0cMapper \u5b66\u4e60\u5230\u7684 prompts \u7684\u6587\u5b57\u7279\u5f81\u7279\u5f81\u4f1a\u4e0e\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u7684\u6587\u5b57\u7279\u5f81\u8fdb\u884c element-wise \u7684\u76f8\u52a0\uff0c\u6700\u540e\u518d\u4e0e \u6e90\u57df\u751f\u6210\u5668\u5f97\u5230\u7684\u56fe\u7247\u7684\u56fe\u50cf\u7279\u5f81\u8fdb\u884c\u5bf9\u6bd4\u635f\u5931\u8ba1\u7b97")),(0,s.kt)("h4",{id:"\u601d\u8003"},"\u601d\u8003"),(0,s.kt)("p",null,"IPL \u65b9\u6cd5\u5bf9 Mapper \u5b66\u4e60\u5230\u7684 prompts \u9664\u4e86\uff081\uff09\u4f7f\u7528\u5bf9\u6bd4\u5b66\u4e60\u4f7f prompts \u5b66\u4e60\u5230\u6e90\u57df\u56fe\u7247\u7684\u7279\u5f81\u4ee5\u53ca\uff082\uff09\u4f7f\u7528\u57df\u6b63\u5219\u5316\u4f7f\u5f97 prompts \u5411\u76ee\u6807\u57df\u6807\u7b7e\u5bf9\u9f50\u4e4b\u5916\uff0c\u5e76\u6ca1\u6709\u4f7f\u7528\u5176\u4ed6\u4e0e\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u6709\u5173\u7684\u6b63\u5219\u5316\u65b9\u5f0f\u6765\u7ea6\u675f prompts \u7684\u5b66\u4e60\uff0c\u56e0\u6b64\u4eba\u5de5\u8bbe\u8ba1\u7684 prompts \u53ef\u80fd\u5e76\u6ca1\u6709\u8d77\u5230\u592a\u5927\u7684\u7ea6\u675f\u4f5c\u7528\u3002"),(0,s.kt)("p",null,"\u5982\u679c\u5bf9\u6bd4\u5b66\u4e60\u635f\u5931\u662f\u4e3a\u4e86\u8ba9 Mapper \u81ea\u76d1\u7763\u5b66\u4e60\u5230\u56fe\u7247\u7684\u7279\u5f81\u5916\uff0c\u90a3\u4e48\u662f\u5426\u53ef\u4ee5\u5bf9\u57df\u6b63\u5219\u5316\u635f\u5931\u8fdb\u884c\u6539\u8fdb\uff0c\u7ea6\u675f\u5b66\u4e60\u5230\u7684 prompts \u5411\u4eba\u5de5\u8bbe\u8ba1\u7684\u521d\u59cb\u5316 prompts \u5bf9\u9f50\uff0c\u4ee5\u5b9e\u73b0\u7c7b\u4f3c\u4e8e Stable Diffusion \u7c7b\u4f3c\u7684 prompts \u63a7\u5236\u56fe\u50cf\u751f\u6210\u7684\u6548\u679c\u3002"),(0,s.kt)("h3",{id:"mapper-\u7ed3\u6784\u7684\u8bbe\u8ba1"},"Mapper \u7ed3\u6784\u7684\u8bbe\u8ba1"),(0,s.kt)("p",null,"Mapper \u7684\u4f5c\u7528\u662f\u4ece W \u7a7a\u95f4\u7684\u9690\u5f0f\u4ee3\u7801\u4e2d\u5b66\u4e60\u51fa\u7b26\u5408\u6e90\u57df\u56fe\u7247\u7279\u5f81\u4ee5\u53ca\u7b26\u5408\u76ee\u6807\u57df\u6587\u5b57\u7279\u5f81\u7684 prompts\u3002"),(0,s.kt)("p",null,"\u539f\u59cb"))}k.isMDXComponent=!0}}]);
\ No newline at end of file
diff --git a/assets/js/86cc22d4.aa8c1fa6.js b/assets/js/86cc22d4.aa8c1fa6.js
new file mode 100644
index 000000000..627b113d7
--- /dev/null
+++ b/assets/js/86cc22d4.aa8c1fa6.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3576],{5745:e=>{e.exports=JSON.parse('{"name":"docusaurus-plugin-content-pages","id":"default"}')}}]);
\ No newline at end of file
diff --git a/assets/js/935f2afb.9fcb2a88.js b/assets/js/935f2afb.9fcb2a88.js
new file mode 100644
index 000000000..5e9f2ddee
--- /dev/null
+++ b/assets/js/935f2afb.9fcb2a88.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"deep_learning":[{"type":"link","label":"Welcome","href":"/docs/Deep-Learning/intro","docId":"Deep-Learning/intro"},{"type":"link","label":"\u67e5\u6f0f\u8865\u7f3a","href":"/docs/Deep-Learning/Fill-The-Gaps","docId":"Deep-Learning/Fill-The-Gaps"},{"type":"category","label":"\u57fa\u7840\u77e5\u8bc6","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"AlexNet","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet"},{"type":"link","label":"\u5377\u79ef\u5c42","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer"},{"type":"link","label":"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer"},{"type":"link","label":"K-fold cross-validation","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation"},{"type":"link","label":"LeNet","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet"},{"type":"link","label":"\u5173\u4e8eLogistic Regression","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression"},{"type":"link","label":"Perceptron","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron"},{"type":"link","label":"\u6c60\u5316\u5c42","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer"},{"type":"link","label":"PyTorch\u57fa\u7840","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics"},{"type":"link","label":"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000"},{"type":"link","label":"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef"},{"type":"link","label":"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","href":"/docs/Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","docId":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6"}]},{"type":"category","label":"\u5b9e\u6218\u7ec3\u4e60","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Visdom\u53ef\u89c6\u5316","href":"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization","docId":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization"},{"type":"link","label":"Speaker Classification","href":"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification","docId":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification"},{"type":"link","label":"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76","href":"/docs/Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation","docId":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation"}]},{"type":"category","label":"\u5927\u6a21\u578b","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Attention","docId":"Deep-Learning/\u5927\u6a21\u578b/Self-Attention"},{"type":"link","label":"NeurIPS 2017: Attention Is All You Need","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need","docId":"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need"},{"type":"link","label":"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning","docId":"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning"},{"type":"link","label":"\u56fe\u50cf\u751f\u6210\u6a21\u578b","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models","docId":"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models"},{"type":"link","label":"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/GAN","docId":"Deep-Learning/\u5927\u6a21\u578b/GAN"},{"type":"link","label":"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model","docId":"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model"},{"type":"category","label":"Prompt Learning","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76","href":"/docs/Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation","docId":"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation"}]}]},{"type":"category","label":"\u8bba\u6587\u7b14\u8bb0","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"NeurIPS 2017: Attention Is All You Need","href":"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need","docId":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need"},{"type":"link","label":"NeurIPS 2020: Denoising Diffusion Probabilistic Models","href":"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models","docId":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models"},{"type":"link","label":"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models","href":"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models","docId":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models"},{"type":"link","label":"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","href":"/docs/Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","docId":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning"}]}],"tui_mian":[{"type":"link","label":"Welcome","href":"/docs/Tui-Mian/intro","docId":"Tui-Mian/intro"},{"type":"link","label":"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386","href":"/docs/Tui-Mian/Summary","docId":"Tui-Mian/Summary"},{"type":"category","label":"\u6570\u5b66","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","href":"/docs/Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","docId":"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60"},{"type":"link","label":"\u6982\u7387\u8bba","href":"/docs/Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba","docId":"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba"},{"type":"link","label":"\u7ebf\u6027\u4ee3\u6570","href":"/docs/Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570","docId":"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570"}]},{"type":"category","label":"\u673a\u8bd5","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u5927\u6570\u9664\u6cd5","href":"/docs/Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5","docId":"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5"}]},{"type":"category","label":"\u7b80\u5386","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u7b80\u5386\u9762\u8bd5\u51c6\u5907","href":"/docs/Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907","docId":"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907"}]},{"type":"category","label":"\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u6570\u636e\u7ed3\u6784","href":"/docs/Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784","docId":"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784"}]}],"algorithms":[{"type":"link","label":"Welcome","href":"/docs/Algorithms/intro","docId":"Algorithms/intro"},{"type":"link","label":"STL\u6a21\u677f","href":"/docs/Algorithms/STL\u6a21\u677f","docId":"Algorithms/STL\u6a21\u677f"},{"type":"link","label":"\u673a\u8bd5\u6280\u5de7\u4e0eSTL","href":"/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL","docId":"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL"},{"type":"category","label":"\u9898\u89e3","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","href":"/docs/Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","docId":"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09"},{"type":"link","label":"\u53cd\u5e8f\u8f93\u51fa","href":"/docs/Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa","docId":"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa"},{"type":"link","label":"\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","href":"/docs/Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","docId":"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09"}]}],"curriculum":[{"type":"link","label":"Welcome","href":"/docs/Curriculum/intro","docId":"Curriculum/intro"},{"type":"category","label":"\u6570\u5b57\u56fe\u50cf\u5904\u7406","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0","href":"/docs/Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note","docId":"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note"}]},{"type":"category","label":"\u7f16\u8bd1\u539f\u7406","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0","href":"/docs/Curriculum/\u7f16\u8bd1\u539f\u7406/Note","docId":"Curriculum/\u7f16\u8bd1\u539f\u7406/Note"}]},{"type":"category","label":"\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e","href":"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration","docId":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration"},{"type":"link","label":"GeekOS project 0\u7684\u5b9e\u73b0","href":"/docs/Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0","docId":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0"}]}],"others":[{"type":"link","label":"Welcome","href":"/docs/Others/intro","docId":"Others/intro"},{"type":"category","label":"Linux","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"\u5b9e\u7528\u5de5\u5177","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u7ec8\u7aef\u4ee3\u7406","href":"/docs/Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406","docId":"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406"}]},{"type":"category","label":"\u5ba2\u5236\u5316","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS","href":"/docs/Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS","docId":"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS"}]},{"type":"category","label":"\u95ee\u9898\u89e3\u51b3","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","href":"/docs/Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","docId":"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6"}]}]},{"type":"category","label":"\u535a\u5ba2\u642d\u5efa","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u544a\u793a\u680f","href":"/docs/Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f","docId":"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f"}]}],"acknowledgement":[{"type":"link","label":"\u9e23\u8c22","href":"/docs/Acknowledgement/intro","docId":"Acknowledgement/intro"}]},"docs":{"Acknowledgement/intro":{"id":"Acknowledgement/intro","title":"\u9e23\u8c22","description":"\u996e\u6c34\u601d\u6e90","sidebar":"acknowledgement"},"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL":{"id":"Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL","title":"\u673a\u8bd5\u6280\u5de7\u4e0eSTL","description":"\u8f6c\u8f7d\u81eaSonder\u7684\u7b14\u8bb0\u672c","sidebar":"algorithms"},"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa":{"id":"Algorithms/\u9898\u89e3/\u53cd\u5e8f\u8f93\u51fa","title":"\u53cd\u5e8f\u8f93\u51fa","description":"\u8bbeN\u662f\u4e00\u4e2a\u56db\u4f4d\u6570\uff0c\u5b83\u76849\u500d\u6070\u597d\u662f\u5176\u53cd\u5e8f\u6570\uff08\u4f8b\u5982\uff1a1234\u7684\u53cd\u5e8f\u6570\u662f4321\uff09\uff0c\u6c42N\u7684\u503c","sidebar":"algorithms"},"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09":{"id":"Algorithms/\u9898\u89e3/\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","title":"\u6392\u5217\u7ec4\u5408\uff08\u6c4230\u7684\u500d\u6570\uff09","description":"\u8f93\u5165\u4e00\u4e2a\u6570\uff0c\u6bd4\u5982201\uff0c\u8ba9\u6570\u5b57\u968f\u610f\u7ec4\u5408\uff0c\u662f\u5426\u80fd\u7ec4\u5408\u51fa30\u7684\u500d\u6570\uff0c\u5982\u679c\u80fd\u591f\u7ec4\u5408\u621030\u7684\u500d\u6570\uff0c\u5c31\u8f93\u51fa\u6700\u5927\u7684\u500d\u6570\uff0c\u4e0d\u80fd\u5c31\u8f93\u51fa-1","sidebar":"algorithms"},"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09":{"id":"Algorithms/\u9898\u89e3/\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","title":"\u4e00\u7ef4\u524d\u7f00\u548c\uff08\u5237\u51fa\u4e00\u9053\u5899\uff09","description":"\u5728\u4e00\u9762\u5f88\u957f\u7684\u5899\u58c1\u4e0a\uff0c\u5de5\u4eba\u4eec\u7528\u4e0d\u540c\u7684\u6cb9\u6f06\u53bb\u5237\u5899\uff0c\u7136\u800c\u53ef\u80fd\u6709\u4e9b\u5730\u65b9\u5237\u8fc7\u4ee5\u540e\u89c9\u5f97\u4e0d\u597d\u770b\uff0c\u4ed6\u4eec\u4f1a\u91cd\u65b0\u5237\u4e00\u4e0b\u3002\u6709\u4e9b\u90e8\u5206\u56e0\u4e3a\u91cd\u590d\u5237\u4e86\u5f88\u591a\u6b21\u8986\u76d6\u4e86\u5f88\u591a\u5c42\u6cb9\u6f06\uff0c\u5c0f\u8bfa\u5f88\u597d\u5947\u90a3\u4e9b\u5730\u65b9\u88ab\u5237\u8fc7\u591a\u5c11\u79cd\u989c\u8272\u7684\u6cb9\u6f06\u3002","sidebar":"algorithms"},"Algorithms/intro":{"id":"Algorithms/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u7b97\u6cd5\u90e8\u5206","sidebar":"algorithms"},"Algorithms/STL\u6a21\u677f":{"id":"Algorithms/STL\u6a21\u677f","title":"STL\u6a21\u677f","description":"\u8f6c\u8f7d\u81eaSonder\u7684\u7b14\u8bb0\u672c","sidebar":"algorithms"},"Curriculum/\u7f16\u8bd1\u539f\u7406/Note":{"id":"Curriculum/\u7f16\u8bd1\u539f\u7406/Note","title":"\u7f16\u8bd1\u539f\u7406\u7b14\u8bb0","description":"\u7b2c\u4e00\u7ae0\uff1a\u524d\u8a00","sidebar":"curriculum"},"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration":{"id":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/Environment-Configuration","title":"Linux\u7cfb\u7edf\u4e0bGeekOS\u7684\u73af\u5883\u914d\u7f6e","description":"\u4e00\u3001\u5fc5\u987b\u8981\u77e5\u9053\u7684\u539f\u7406","sidebar":"curriculum"},"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0":{"id":"Curriculum/\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u8bbe/GeekOS-project-0","title":"GeekOS project 0\u7684\u5b9e\u73b0","description":"\u5728\u4e0a\u4e00\u7bc7\u535a\u5ba2\u4e2d\u6211\u4eec\u5b8c\u6210\u4e86GeekOS\u73af\u5883\u7684\u914d\u7f6e\uff0c\u4e0b\u9762\u6211\u4eec\u6765\u9a8c\u8bc1\u73af\u5883\u914d\u7f6e\u7684\u6210\u529f\u4e0e\u5426\u4ee5\u53caproject 0\u7684\u5b9e\u73b0\u3002","sidebar":"curriculum"},"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note":{"id":"Curriculum/\u6570\u5b57\u56fe\u50cf\u5904\u7406/Note","title":"\u6570\u5b57\u56fe\u50cf\u5904\u7406\u590d\u4e60\u7b14\u8bb0","description":"\u672c\u7b14\u8bb0\u4f7f\u7528\u7684\u6559\u6750\u662f\u9648\u5929\u534e\u6240\u8457\u3001\u6e05\u534e\u5927\u5b66\u51fa\u7248\u793e\u7684\u300a\u6570\u5b57\u56fe\u50cf\u5904\u7406\u53ca\u5e94\u7528\uff1a\u4f7f\u7528MATLAB\u5206\u6790\u4e0e\u5b9e\u73b0\u300b\u3002","sidebar":"curriculum"},"Curriculum/intro":{"id":"Curriculum/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u8bfe\u7a0b\u5b66\u4e60\u90e8\u5206","sidebar":"curriculum"},"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need":{"id":"Deep-Learning/\u5927\u6a21\u578b/Attention-Is-All-You-Need","title":"NeurIPS 2017: Attention Is All You Need","description":"\u8bba\u6587\uff1aarXiv","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model":{"id":"Deep-Learning/\u5927\u6a21\u578b/Diffusion-Model","title":"\u6269\u6563\u6a21\u578b\uff08Diffusion Model\uff09","description":"\u5728\u4ee5\u524d\u7684\u6587\u7ae0\u56fe\u50cf\u751f\u6210\u6a21\u578b\u4e2d\u5df2\u7ecf\u5927\u6982\u4ecb\u7ecd\u4e86\u76ee\u524dSOTA\u7684\u56fe\u50cf\u751f\u6210\u6a21\u578b\u7684\u5171\u540c\u70b9\uff0c\u5e76\u521d\u6b65\u4e86\u89e3\u4e86Diffusion Model\uff0c\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u5c06\u8be6\u7ec6\u8bb2\u89e3\u6269\u6563\u6a21\u578b\u7684\u6570\u5b66\u539f\u7406\u7b49\u3002","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/GAN":{"id":"Deep-Learning/\u5927\u6a21\u578b/GAN","title":"\u751f\u6210\u5f0f\u5bf9\u6297\u7f51\u7edc\uff08GAN\uff09","description":"How to pronounce Adversarial?","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models":{"id":"Deep-Learning/\u5927\u6a21\u578b/Image-Generation-Models","title":"\u56fe\u50cf\u751f\u6210\u6a21\u578b","description":"\u56de\u987e\u6587\u5b57\u751f\u6210\u7684\u4e24\u79cd\u65b9\u6cd5","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation":{"id":"Deep-Learning/\u5927\u6a21\u578b/Prompt Learning/Undergraduate-Dissertation","title":"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76","description":"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e IPL \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece IPL-Zero-Shot-Generative-Model-Adaptation fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Self-Attention":{"id":"Deep-Learning/\u5927\u6a21\u578b/Self-Attention","title":"\u81ea\u6ce8\u610f\u529b\uff08Self-Attention\uff09","description":"\u53c2\u8003\u94fe\u63a5:","sidebar":"deep_learning"},"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning":{"id":"Deep-Learning/\u5927\u6a21\u578b/Self-Supervised-Learning","title":"\u81ea\u76d1\u7763\u5b66\u4e60\uff08Self-Supervised Learning\uff09","description":"\u5728\u81ea\u76d1\u7763\u5b66\u4e60\u7684\u6a21\u578b\u4e2d\uff0c\u51fa\u73b0\u4e86\u5f88\u591a\u4ee5\u829d\u9ebb\u8857\u4efb\u52a1\u547d\u540d\u7684\u7ecf\u5178\u6a21\u578b\u548c\u8bba\u6587\u3002","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","title":"\u6fc0\u6d3b\u51fd\u6570\u4e0eLoss\u7684\u68af\u5ea6","description":"\u4e00\u3001\u6fc0\u6d3b\u51fd\u6570","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","title":"\u6df1\u5ea6\u53ef\u5206\u79bb\u5377\u79ef","description":"\u8f93\u5165\uff1ashape\u4e3a$[5, 5, 3]$\u7684\u56fe\u50cf","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","title":"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","description":"\u6b63\u5219\u5316\u4e0e\u6743\u91cd\u8870\u9000","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/AlexNet","title":"AlexNet","description":"\u80cc\u666f","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/ConvolutionalLayer","title":"\u5377\u79ef\u5c42","description":"\u4e00\u30011x1\u5377\u79ef","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/FromFullyConnectedLayerToConvolutionalLayer","title":"\u4ece\u5168\u8fde\u63a5\u5230\u5377\u79ef","description":"\u4e00\u3001\u5377\u79ef\u7684\u8bde\u751f&\u6838\u5fc3\u7279\u5f81","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/K-foldCross-validation","title":"K-fold cross-validation","description":"What is k-fold cross-validation?","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LeNet","title":"LeNet","description":"\u80cc\u666f","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/LogisticRegression","title":"\u5173\u4e8eLogistic Regression","description":"\u4e00\u3001\u4ec0\u4e48\u662fLogistic Regression","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/Perceptron","title":"Perceptron","description":"\u4e00\u3001\u4ec0\u4e48\u662f\u611f\u77e5\u673a","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PoolingLayer","title":"\u6c60\u5316\u5c42","description":"\u4e00\u3001\u5377\u79ef\u5bf9\u50cf\u7d20\u4f4d\u7f6e\u4fe1\u606f\u662f\u654f\u611f\u7684","sidebar":"deep_learning"},"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics":{"id":"Deep-Learning/\u57fa\u7840\u77e5\u8bc6/PytorchBasics","title":"PyTorch\u57fa\u7840","description":"\u4e00\u3001\u5e38\u7528\u51fd\u6570\u90e8\u5206","sidebar":"deep_learning"},"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need":{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Attention Is All You Need","title":"NeurIPS 2017: Attention Is All You Need","description":"\u8bba\u6587\uff1aarXiv","sidebar":"deep_learning"},"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models":{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Denoising Diffusion Probabilistic Models","title":"NeurIPS 2020: Denoising Diffusion Probabilistic Models","description":"\u8bba\u6587\uff1aarXiv","sidebar":"deep_learning"},"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models":{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/High-Resolution Image Synthesis with Latent Diffusion Models","title":"CVPR 2022: High-Resolution Image Synthesis with Latent Diffusion Models","description":"\u8bba\u6587\uff1aarXiv","sidebar":"deep_learning"},"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning":{"id":"Deep-Learning/\u8bba\u6587\u7b14\u8bb0/Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","title":"CVPR 2023: Zero-shot Generative Model Adaptation via Image-specific Prompt Learning","description":"\u8bba\u6587\uff1aCVPR 2023 open access","sidebar":"deep_learning"},"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification":{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Speaker Classification","title":"Speaker Classification","description":"Transformer\u5b9e\u6218\u7ec3\u4e60\uff0c\u4ee3\u7801\u89c1Github\u4ed3\u5e93\u3002","sidebar":"deep_learning"},"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation":{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Undergraduate-Dissertation","title":"\u672c\u79d1\u6bd5\u4e1a\u8bba\u6587\uff1a\u57fa\u4e8e Prompt Learning \u7684\u89c6\u89c9-\u8bed\u8a00\u5927\u6a21\u578b\u5728\u56fe\u50cf\u751f\u6210\u4e2d\u7684\u5e94\u7528\u4e0e\u7814\u7a76","description":"\u672c\u7bc7\u8bba\u6587\u4e3b\u8981\u57fa\u4e8e IPL \u7684\u601d\u60f3\u5b9e\u73b0\u3002\u672c\u4ed3\u5e93\u5927\u90e8\u5206\u4ece IPL-Zero-Shot-Generative-Model-Adaptation fork \u800c\u6765\u5e76\u505a\u51fa\u4e86\u4e00\u5b9a\u4fee\u6539\u3002","sidebar":"deep_learning"},"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization":{"id":"Deep-Learning/\u5b9e\u6218\u7ec3\u4e60/Visdom Visualization","title":"Visdom\u53ef\u89c6\u5316","description":"\u5bf9\u4e8eTensorFlow\u6846\u67b6\uff0c\u53ef\u4ee5\u4f7f\u7528TensorBoard\u5b9e\u73b0\u53ef\u89c6\u5316\u3002","sidebar":"deep_learning"},"Deep-Learning/Fill-The-Gaps":{"id":"Deep-Learning/Fill-The-Gaps","title":"\u67e5\u6f0f\u8865\u7f3a","description":"\u8fd9\u91cc\u8bb0\u5f55\u7740\u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u7684\u7406\u89e3\u6216\u64cd\u4f5c\u65b9\u9762\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u6e29\u6545\u77e5\u65b0\u3002","sidebar":"deep_learning"},"Deep-Learning/intro":{"id":"Deep-Learning/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u6df1\u5ea6\u5b66\u4e60\u90e8\u5206","sidebar":"deep_learning"},"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f":{"id":"Others/\u535a\u5ba2\u642d\u5efa/\u544a\u793a\u680f","title":"\u544a\u793a\u680f","description":"1. \u544a\u793a\u680f\u7684\u542f\u7528","sidebar":"others"},"Others/intro":{"id":"Others/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u5176\u4ed6\u90e8\u5206","sidebar":"others"},"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS":{"id":"Others/Linux/\u5ba2\u5236\u5316/\u5982\u4f55\u8ba9\u4f60\u7684KDE\u770b\u8d77\u6765\u66f4\u50cfmacOS","title":"\u5982\u4f55\u8ba9\u4f60\u7684Kde Plasma\u770b\u8d77\u6765\u66f4\u50cfmacOS","description":"\u4e00\u3001latte-dock","sidebar":"others"},"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406":{"id":"Others/Linux/\u5b9e\u7528\u5de5\u5177/\u7ec8\u7aef\u4ee3\u7406","title":"\u7ec8\u7aef\u4ee3\u7406","description":"\u901a\u8fc7\u7f16\u5199\u811a\u672c\u51fd\u6570\u7684\u65b9\u5f0f\uff0c\u624b\u52a8\u5f00\u542f\u4ee3\u7406","sidebar":"others"},"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6":{"id":"Others/Linux/\u95ee\u9898\u89e3\u51b3/\u53cc\u7cfb\u7edf\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","title":"\u6302\u8f7dWindows\u78c1\u76d8\u4e3a\u53ea\u8bfb\u6587\u4ef6","description":"\u4e00\u3001\u53d1\u751f\u539f\u56e0","sidebar":"others"},"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5":{"id":"Tui-Mian/\u673a\u8bd5/\u5927\u6570\u9664\u6cd5","title":"\u5927\u6570\u9664\u6cd5","description":"\u5927\u6570\u9664\u6cd5\u662f\u6307\u88ab\u9664\u6570\u5927\u5c0f\u8d85\u51falong long\u8303\u56f4\uff0c\u800c\u5bfc\u81f4\u5fc5\u987b\u4f7f\u7528\u5b57\u7b26\u4e32\u5b58\u50a8\u7684\u9664\u6cd5\uff0c\u5c5e\u4e8e\u7b80\u5355\u6a21\u62df\u7684\u8303\u7574","sidebar":"tui_mian"},"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784":{"id":"Tui-Mian/\u8ba1\u7b97\u673a\u57fa\u7840\u7efc\u5408/\u6570\u636e\u7ed3\u6784","title":"\u6570\u636e\u7ed3\u6784","description":"\u6811","sidebar":"tui_mian"},"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907":{"id":"Tui-Mian/\u7b80\u5386/\u7b80\u5386\u9762\u8bd5\u51c6\u5907","title":"\u7b80\u5386\u9762\u8bd5\u51c6\u5907","description":"\u4e00\u3001U-2-Net","sidebar":"tui_mian"},"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba":{"id":"Tui-Mian/\u6570\u5b66/\u6982\u7387\u8bba","title":"\u6982\u7387\u8bba","description":"\u9762\u8bd5\u5e38\u8003\u95ee\u9898","sidebar":"tui_mian"},"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60":{"id":"Tui-Mian/\u6570\u5b66/\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","title":"\u590f\u4ee4\u8425\u9762\u8bd5\u6570\u5b66\u90e8\u5206\u590d\u4e60","description":"\u4e00\u3001\u7ebf\u6027\u4ee3\u6570","sidebar":"tui_mian"},"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570":{"id":"Tui-Mian/\u6570\u5b66/\u7ebf\u6027\u4ee3\u6570","title":"\u7ebf\u6027\u4ee3\u6570","description":"\u53c2\u8003\u94fe\u63a5\uff1a","sidebar":"tui_mian"},"Tui-Mian/intro":{"id":"Tui-Mian/intro","title":"Welcome","description":"\u6b22\u8fce\u6765\u5230\u7b14\u8bb0\u672c\u7684\u63a8\u514d\u590d\u4e60\u90e8\u5206","sidebar":"tui_mian"},"Tui-Mian/Summary":{"id":"Tui-Mian/Summary","title":"\u7ecf\u9a8c\u8d34\uff1a2023\u5e74\u53cc\u975e\u8ba1\u7b97\u673a\u4fdd\u7814\u7ecf\u5386","description":"\u524d\u8a00","sidebar":"tui_mian"}}}')}}]);
\ No newline at end of file
diff --git a/assets/js/a0558625.585f6ea2.js b/assets/js/a0558625.585f6ea2.js
new file mode 100644
index 000000000..2315167ef
--- /dev/null
+++ b/assets/js/a0558625.585f6ea2.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunknpy_notebook=self.webpackChunknpy_notebook||[]).push([[3389],{3905:(e,t,n)=>{n.d(t,{Zo:()=>u,kt:()=>k});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=r.createContext({}),s=function(e){var t=r.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=s(e.components);return r.createElement(p.Provider,{value:t},e.children)},c="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,i=e.originalType,p=e.parentName,u=o(e,["components","mdxType","originalType","parentName"]),c=s(n),d=a,k=c["".concat(p,".").concat(d)]||c[d]||m[d]||i;return n?r.createElement(k,l(l({ref:t},u),{},{components:n})):r.createElement(k,l({ref:t},u))}));function k(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var i=n.length,l=new Array(i);l[0]=d;var o={};for(var p in t)hasOwnProperty.call(t,p)&&(o[p]=t[p]);o.originalType=e,o[c]="string"==typeof e?e:a,l[1]=o;for(var s=2;s{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>l,default:()=>m,frontMatter:()=>i,metadata:()=>o,toc:()=>s});var r=n(7462),a=(n(7294),n(3905));const i={},l="STL\u6a21\u677f",o={unversionedId:"Algorithms/STL\u6a21\u677f",id:"Algorithms/STL\u6a21\u677f",title:"STL\u6a21\u677f",description:"\u8f6c\u8f7d\u81eaSonder\u7684\u7b14\u8bb0\u672c",source:"@site/docs/Algorithms/2-STL\u6a21\u677f.md",sourceDirName:"Algorithms",slug:"/Algorithms/STL\u6a21\u677f",permalink:"/docs/Algorithms/STL\u6a21\u677f",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{},sidebar:"algorithms",previous:{title:"Welcome",permalink:"/docs/Algorithms/intro"},next:{title:"\u673a\u8bd5\u6280\u5de7\u4e0eSTL",permalink:"/docs/Algorithms/\u673a\u8bd5\u6280\u5de7\u4e0eSTL"}},p={},s=[{value:"vector",id:"vector",level:3},{value:"pair",id:"pair",level:3},{value:"string",id:"string",level:3},{value:"query",id:"query",level:3},{value:"priority_queue",id:"priority_queue",level:3},{value:"stack",id:"stack",level:3},{value:"deque",id:"deque",level:3},{value:"set/multiset",id:"setmultiset",level:3},{value:"map/multimap",id:"mapmultimap",level:3},{value:"biset",id:"biset",level:3}],u={toc:s},c="wrapper";function m(e){let{components:t,...n}=e;return(0,a.kt)(c,(0,r.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"stl\u6a21\u677f"},"STL\u6a21\u677f"),(0,a.kt)("admonition",{type:"important"},(0,a.kt)("p",{parentName:"admonition"},"\u8f6c\u8f7d\u81ea",(0,a.kt)("a",{parentName:"p",href:"https://space.keter.top/"},"Sonder\u7684\u7b14\u8bb0\u672c"))),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"vector\uff1a\u53d8\u957f\u6570\u7ec4\uff0c\u500d\u589e\u7684\u601d\u60f3"),(0,a.kt)("li",{parentName:"ul"},"pair\uff1a\u5b58\u50a8\u4e00\u5bf9\u6570"),(0,a.kt)("li",{parentName:"ul"},"string\uff1a\u5b57\u7b26\u4e32\uff0csubstr(), c_str()"),(0,a.kt)("li",{parentName:"ul"},"queue\uff1apush(), front(), pop()"),(0,a.kt)("li",{parentName:"ul"},"priority_queue\uff1a\u4f18\u5148\u961f\u5217\uff0cpush(), top(), pop()"),(0,a.kt)("li",{parentName:"ul"},"stack\uff1a\u6808\uff0cpush(), top(), pop()"),(0,a.kt)("li",{parentName:"ul"},"deque\uff1a\u53cc\u7aef\u961f\u5217"),(0,a.kt)("li",{parentName:"ul"},"set, map, multiset, multimap\uff1a\u57fa\u4e8e\u7ea2\u9ed1\u6811\u6765\u5b9e\u73b0\uff0c\u672c\u8d28\u4e0a\u662f\u52a8\u6001\u7ef4\u62a4\u4e00\u4e2a\u6709\u5e8f\u5e8f\u5217"),(0,a.kt)("li",{parentName:"ul"},"unordered_set, unordered_map, unordered_multiset, unordered_multimap\uff1a\u54c8\u5e0c\u8868"),(0,a.kt)("li",{parentName:"ul"},"bitset\uff1a\u538b\u4f4d")),(0,a.kt)("h3",{id:"vector"},"vector"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},'vector a(10,3); // \u5b9a\u4e49\u4e00\u4e2a\u957f\u5ea6\u4e3a10\u7684vector\uff0c\u521d\u59cb\u5316\u4e3a3\uff1b\na.size(); // vector\u7684size\uff0c\u6240\u6709\u5bb9\u5668\u90fd\u6709\na.empty(); // \u8303\u56f4vector\u662f\u5426\u4e3a\u7a7a\uff0c\u6240\u6709\u5bb9\u5668\u90fd\u6709\na.clear(); // \u6e05\u7a7a\na.front(); // \u7b2c\u4e00\u4e2a\u6570\na.back(); // \u6700\u540e\u4e00\u4e2a\u6570\na.push_back(); // \u5728\u6700\u540e\u63d2\u5165\u4e00\u4e2a\u6570\na.pop_back(); // \u5220\u9664\u6700\u540e\u4e00\u4e2a\u6570\n// vector\u652f\u6301\u6bd4\u8f83\u8fd0\u7b97\nvector a(4,3),b(3,4);\nif(a > b) cout << "Yes";\nelse cout << "No"\n')),(0,a.kt)("h3",{id:"pair"},"pair"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},'pair a;\na = {20,"abc"};\na.first(); // \u83b7\u53d6\u7b2c\u4e00\u4e2a\u5143\u7d20\na.second(); // \u83b7\u53d6\u7b2c\u4e8c\u4e2a\u5143\u7d20\n// pair\u4e5f\u80fd\u8fdb\u884csort\n')),(0,a.kt)("h3",{id:"string"},"string"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},'string a = "Acwing";\na.size(); // \u83b7\u53d6string\u7684\u5927\u5c0f\na.empty(); // \u5224\u65ad\u662f\u5426\u4e3a\u7a7a\na.clear(); // \u6e05\u7a7a\na += "def";\ncout << a. substr(1,2) << endl; // \u7b2c\u4e00\u4e2a\u53c2\u6570\u8d77\u59cb\u4f4d\u7f6e\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u5b57\u7b26\u4e32\u957f\u5ea6\n')),(0,a.kt)("h3",{id:"query"},"query"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"query a;\na.size();\na.empty();\na.push(1); // \u961f\u5c3e\u63d2\u5165\u5143\u7d20\na.front(); // \u8fd4\u56de\u961f\u5934\u5143\u7d20\na.back(); // \u8fd4\u56de\u961f\u5c3e\u5143\u7d20\na.pop(); // \u5220\u9664\u961f\u5934\u5143\u7d20\n")),(0,a.kt)("h3",{id:"priority_queue"},"priority_queue"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"// \u9ed8\u8ba4\u662f\u5927\u6839\u5806\npriority_queue heap;\nheap.clear();\nheap.size();\nheap.empty();\n// \u5982\u4f55\u5b9a\u4e49\u4e00\u4e2a\u5c0f\u6839\u5806\uff1a 1. \u63d2\u5165\u8d1f\u6570 2. \u76f4\u63a5\u5b9a\u4e49\nheap.push(-x); // \u9ed1\u79d1\u6280\u65b9\u6cd5\npriority_queue,greater> q;\n")),(0,a.kt)("h3",{id:"stack"},"stack"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"stack s;\ns.size();\ns.empty();\ns.push();\ns.top();\ns.pop();\n")),(0,a.kt)("h3",{id:"deque"},"deque"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"deque a;\na.size();\na.empty();\na.clear();\na.front();\na.back();\na.push_back();\na.pop_back();\n")),(0,a.kt)("h3",{id:"setmultiset"},"set/multiset"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},"set s; // \u4e0d\u80fd\u6709\u91cd\u590d\u5143\u7d20\n// s.begin()/end()\nmultiset MS; // \u53ef\u4ee5\u6709\u91cd\u590d\u5143\u7d20\ns.insert(1); \u63d2\u5165\u4e00\u4e2a\u6570\ns.size();\ns.empty();\ns.clear();\n s.find(1); // \u67e5\u627e\u4e00\u4e2a\u5143\u7d20\uff0c\u5982\u679c\u4e0d\u5b58\u5728\u7684\u8bdd\u8fd4\u56deend\u8fed\u4ee3\u5668\ns.erase(1); // \u8f93\u5165\u662f\u4e00\u4e2a\u6570x\uff0c\u8f93\u51fa\u6240\u6709x \uff082\uff09\u8f93\u5165\u4e00\u4e2a\u8fed\u4ee3\u5668\uff0c\u5220\u9664\u8fd9\u4e2a\u8fed\u4ee3\u5668\n// set \u6700\u6838\u5fc3\u7684\u64cd\u4f5c\ns.lower_bound(); // \u8303\u56f4\u5927\u4e8e\u7b49\u4e8ex\u7684\u6700\u5c0f\u7684\u6570\ns.upper_bound(); // \u8fd4\u56de\u5927\u4e8ex\u7684\u6700\u5c0f\u7684\u6570\n")),(0,a.kt)("h3",{id:"mapmultimap"},"map/multimap"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-c++"},'#include