PageSourceSearch

https://app.aieasypic.com/_next/static/chunks/pages/guide/advanced-parameters/seed-1ecb7d9dea3873d3.js

js aieasypic.com collected 2026-10-04 13:24:45 UTC 9,800 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2190],{26758:(e,s,a)=>{"use strict";a.d(s,{$Z:()=>d,J6:()=>l,_X:()=>o});var t=a(34494),i=a(1751),r=a(58943),n=a(55729);let l=e=>{let{inferenceJobs:s}=e,[a,t]=(0,n.useState)({}),[r,l]=(0,n.useState)({}),{mutate:d}=(0,i.V82)({request:{baseURL:"https://1aieasypic_go.aieasypic.com/go-api/proxy"}});return(0,n.useEffect)(()=>{let e=!0,i=0;l({});let n=()=>{if(!e||i>=s.length)return;let o=s.slice(i,i+1);i+=1,o.forEach(s=>{var i,o;let c=JSON.stringify(s);(null==(o=r[c])||null==(i=o.prediction_images)?void 0:i.length)||a[c]||(t(e=>({...e,[c]:!0})),d({data:s},{onSuccess:s=>{var a;e&&((null==(a=s.prediction_images)?void 0:a.length)&&l(e=>({...e,[c]:s})),t(e=>({...e,[c]:!1})),n())},onError:e=>{console.error("Error creating or finding inference job",e),t(e=>({...e,[c]:!1})),n()}}))})};return n(),()=>{e=!1}},[s]),{fetchingJobs:a,completedJobs:r}},d=e=>{var s;let{modelName:a,seed:i}=e,n=null===t.Po||void 0===t.Po?void 0:t.Po.find(e=>{var s,t;return null==e||null==(t=e.modelName)||null==(s=t.toLowerCase())?void 0:s.includes(a)});return{model:(null==n?void 0:n.replacementModelId)||(null==n?void 0:n.value),show_public:!0,id:0,created_at:"",prediction_images:[],status:r.e3.P,parameters:{...null==n?void 0:n.parameters,id:0,prompt:"test",width:512,height:512,controlnet_parameters:[],model:null==n||null==(s=n.value)?void 0:s.toString(),seed:null!=i?i:100}}},o=()=>{let e={};return t.$b.forEach(s=>{var a;!e[s.version]&&(null==(a=s.label)?void 0:a.includes("Photo"))&&(e[s.version]={...s,limits:{...s.limits,maxSteps:s.limits.maxSteps>30?30:s.limits.maxSteps}})}),Object.values(e)}},47724:(e,s,a)=>{"use strict";a.d(s,{w:()=>r});var t=a(6029),i=a(50016);let r=e=>{let{children:s,type:a="info"}=e;return(0,t.jsxs)("div",{className:"border rounded-lg p-4 my-4 flex items-start ".concat({info:"bg-blue-50 border-blue-200 text-blue-800",tip:"bg-green-50 border-green-200 text-green-800"}[a]),children:["info"===a?(0,t.jsx)(i._TA,{className:"w-5 h-5 mt-0.5 mr-3 flex-shrink-0"}):(0,t.jsx)(i.xZp,{className:"w-5 h-5 mt-0.5 mr-3 flex-shrink-0"}),(0,t.jsx)("div",{children:s})]})}},92505:(e,s,a)=>{"use strict";a.d(s,{Ay:()=>u,dW:()=>m,dw:()=>o,yt:()=>h});var t=a(6029),i=a(50016),r=a(78138),n=a(82203),l=a.n(n),d=a(55729);let o=[{title:"Basic Parameters",icon:i.toq,slug:"parameters",subLinks:[{title:"Prompt",slug:"prompt",icon:i.c11,description:"Learn how to write effective prompts that generate your desired images accurately."},{title:"Aspect Ratio",slug:"aspect-ratio",icon:i.Bak,description:"Understand how to set and work with different image dimensions and ratios."}]}],c=e=>{let{isOpen:s,onClose:a}=e;return(0,t.jsx)("div",{className:"\n    fixed inset-y-0 left-0 transform \n    md:sticky md:top-14 md:translate-x-0 \n    transition duration-200 ease-in-out\n    py-20 md:py-4 bg-white \n    ".concat(s?"translate-x-0":"-translate-x-full","\n    z-30 w-64 max-h-screen\n  "),children:(0,t.jsxs)("nav",{className:"h-screenborder-r border-gray-200 p-4",children:[(0,t.jsxs)("div",{className:"flex justify-between items-center mb-6 md:hidden",children:[(0,t.jsx)("h2",{className:"text-xl font-bold",children:"Guide"}),(0,t.jsx)("button",{onClick:a,className:"p-1 hover:bg-gray-100 rounded-md",children:(0,t.jsx)(i.raE,{className:"w-5 h-5"})})]}),(0,t.jsx)("div",{className:"h-full overflow-y-auto py-2",children:o.map(e=>(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold mb-2",children:e.title}),(0,t.jsx)("div",{className:"space-y-2",children:e.subLinks.map(s=>(0,t.jsx)(l(),{href:"/guide/".concat(e.slug,"/").concat(s.slug),children:(0,t.jsxs)("div",{className:"flex items-center space-x-2 px-2 py-1 rounded-md hover:bg-gray-100 cursor-pointer",children:[(0,t.jsx)(s.icon,{className:"w-4 h-4 text-gray-500"}),(0,t.jsx)("span",{className:"text-sm text-gray-700",children:s.title})]},s.slug)},e.slug))})]}))})]})})},m=e=>{let{children:s}=e,[a,r]=(0,d.useState)(!1);return(0,t.jsxs)("div",{className:"relative min-h-screen",children:[a&&(0,t.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-20 md:hidden",onClick:()=>r(!1)}),(0,t.jsxs)("div",{className:"flex",children:[(0,t.jsx)(c,{isOpen:a,onClose:()=>r(!1)}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("div",{className:"md:hidden p-4 border-b border-gray-200 sticky top-0 bg-white z-10",children:(0,t.jsx)("button",{onClick:()=>r(!0),className:"p-1 hover:bg-gray-100 rounded-md",children:(0,t.jsx)(i.sKQ,{className:"w-6 h-6"})})}),(0,t.jsx)("div",{className:"p-4",children:s})]})]})]})},h=e=>{let{slug:s}=e,a=o.find(e=>e.subLinks.some(e=>e.slug===s)),n=null==a?void 0:a.subLinks.find(e=>e.slug===s);return(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-600 mb-8",children:[(0,t.jsx)(l(),{href:r.J.aieasypic.guide,children:(0,t.jsx)("span",{children:"Guide"})}),(0,t.jsx)(i.vKP,{className:"w-4 h-4 mx-1"}),(0,t.jsx)("span",{children:null==a?void 0:a.title}),(0,t.jsx)(i.vKP,{className:"w-4 h-4 mx-1"}),(0,t.jsx)("span",{children:null==n?void 0:n.title})]})},u=m},95334:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>p});var t=a(6029),i=a(34494),r=a(92505),n=a(47724),l=a(26758),d=a(56266),o=a(27835),c=a(92907),m=a(78138),h=a(55729);let u=e=>{let{basePrompt:s,variations:a,selectedModel:i,seed:r}=e,n=(0,h.useMemo)(()=>{var e;return(0,l.$Z)({modelName:(null==i||null==(e=i.modelName)?void 0:e.toLowerCase())||"schnell"})},[i.modelName]),o=(0,h.useMemo)(()=>a.map(e=>({...n,parameters:{...n.parameters,prompt:e,seed:r,width:768,height:768}})),[n,a,r]),{fetchingJobs:c,completedJobs:m}=(0,l.J6)({inferenceJobs:o});return(0,t.jsxs)("div",{className:"my-8",children:[(0,t.jsxs)("h3",{className:"text-xl font-semibold mb-4",children:["Base prompt: ",s]}),(0,t.jsxs)("p",{className:"text-gray-600 mb-4",children:["Seed: ",r]}),(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:a.map((e,s)=>{var a,i;let l=JSON.stringify({...n,parameters:{...n.parameters,prompt:e,seed:r,width:768,height:768}}),o=m[l],h=c[l],u=null==o||null==(i=o.prediction_images)||null==(a=i[0])?void 0:a.image;return(0,t.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsx)("div",{className:"relative aspect-square w-full bg-gray-100 rounded-lg overflow-hidden",children:h?(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-50",children:(0,t.jsx)(d.a,{className:"w-8 h-8 animate-spin text-blue-500"})}):u?(0,t.jsx)("img",{src:u,alt:e,className:"w-full h-full object-cover"}):(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-gray-50",children:(0,t.jsx)("span",{className:"text-gray-600",children:"No image generated yet"})})}),(0,t.jsx)("div",{className:"mt-3 p-3 bg-gray-50 rounded-md",children:(0,t.jsx)("p",{className:"text-sm font-mono",children:e})})]})},s)})})]})},x=()=>{let[e,s]=(0,h.useState)(i.$b[0]),[a]=(0,h.useState)(42);return(0,l._X)(),(0,t.jsxs)("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[(0,t.jsx)(o.A,{title:"Seed Guide - AI Image Generation",description:"Get started with AI image generation. Learn how seed parameter affects the generated image",url:"".concat(c._g.frontendUrl).concat(m.J.aieasypic.guideAdvancedParametersSeed)}),(0,t.jsx)(r.yt,{slug:"seed"}),(0,t.jsx)("h1",{className:"text-2xl font-bold mb-6",children:"Guide to Seed Parameter"}),(0,t.jsx)("p",{className:"text-lg mb-4",children:"The seed parameter controls the starting point of image generation. Using the same seed maintains consistency while modifying prompts."}),(0,t.jsx)(n.w,{children:"When using the same seed, similar elements in images tend to remain consistent even as you make small changes to the prompt."}),(0,t.jsx)("h2",{className:"text-2xl font-semibold mt-8 mb-4",children:"Seed Comparison Examples"}),[{basePrompt:"a man in a business suit, wearing glasses",variations:["a man in a business suit, wearing glasses","a man in a business suit, wearing glasses with blonde hair","a man in a business suit, wearing glasses with blonde hair , holding a briefcase"]},{basePrompt:"a red rose in a crystal vase",variations:["a red rose in a crystal vase, on marble table","a red rose in a crystal vase, on marble table, black table","a red rose in a crystal vase, on marble table, black table, next to a candle"]}].map(s=>(0,t.jsx)(u,{basePrompt:s.basePrompt,variations:s.variations,selectedModel:e,seed:a},s.basePrompt)),(0,t.jsxs)("div",{className:"prose max-w-none mt-12",children:[(0,t.jsx)("h2",{className:"text-2xl font-semibold mb-4",children:"Understanding Seeds"}),(0,t.jsx)(n.w,{type:"tip",children:(0,t.jsx)("p",{children:"The same seed + same prompt will always generate the same image. This is useful for reproducibility and iterative refinement."})}),(0,t.jsxs)("div",{className:"space-y-6 mt-8",children:[(0,t.jsxs)("div",{className:"border-b border-gray-200 pb-4",children:[(0,t.jsx)("h3",{className:"font-semibold text-lg",children:"Consistency"}),(0,t.jsx)("p",{className:"mt-2",children:"Seeds ensure that core elements remain similar when making minor prompt adjustments. This helps in fine-tuning specific aspects while maintaining the overall composition."})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-semibold text-lg",children:"When to Use Fixed Seeds"}),(0,t.jsx)("p",{className:"mt-2",children:"Use fixed seeds when you want to maintain consistency while experimenting with prompt variations. This is especially useful for iterative refinement of specific details."})]})]})]})]})},p=()=>(0,t.jsx)(r.dW,{children:(0,t.jsx)(x,{})})},97777:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/guide/advanced-parameters/seed",function(){return a(95334)}])}},e=>{e.O(0,[4494,636,6593,8792],()=>e(e.s=97777)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.