Skip to content

Commit

Permalink
use diffusion-chain to make sd call
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieyang committed Sep 14, 2023
1 parent 7a7699d commit 8a3c2e1
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 291 deletions.
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
"author": "Adobe Inc",
"license": "Apache-2.0",
"dependencies": {
"@types/photoshop": "^24.5.1",
"@types/react": "^18.2.6",
"@types/react-dom": "^18.2.4",
"changedpi": "^1.0.4",
"diffusion-chain": "^1.0.4",
"fastify": "^4.10.2",
"jimp": "^0.16.2",
"madge": "^6.0.0",
Expand All @@ -24,12 +22,17 @@
"test": "test"
},
"devDependencies": {
"@types/mkdirp": "^2.0.0",
"@types/photoshop": "^24.5.1",
"@types/react": "^18.2.6",
"@types/react-dom": "^18.2.4",
"@babel/core": "^7.21.8",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-syntax-class-properties": "^7.12.13",
"@babel/plugin-transform-react-jsx": "^7.21.5",
"@svgr/webpack": "^8.0.1",
"babel-loader": "^9.1.2",
"chalk": "^5.3.0",
"clean-webpack-plugin": "^4.0.0",
"commander": "^11.0.0",
"copy-webpack-plugin": "^11.0.0",
Expand All @@ -45,7 +48,6 @@
"url-loader": "^4.1.1",
"webpack": "^5.82.1",
"webpack-cli": "^5.1.1",
"chalk": "^5.3.0",
"yazl": "^2.5.1"
},
"scripts": {
Expand All @@ -64,4 +66,4 @@
"url": "https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin/issues"
},
"homepage": "https://github.com/AbdullahAlfaraj/Auto-Photoshop-StableDiffusion-Plugin#readme"
}
}
4 changes: 4 additions & 0 deletions typescripts/controlnet/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ function getEnableControlNet(index: number) {
)
else return store.controlNetUnitData[index || 0].enabled
}
function getControlNetDatas() {
return store.controlNetUnitData;
}
function mapPluginSettingsToControlNet(plugin_settings: any) {
const ps = plugin_settings // for shortness
let controlnet_units: any[] = []
Expand Down Expand Up @@ -291,5 +294,6 @@ export {
setControlInputImageSrc,
isControlNetModeEnable,
getModuleDetail,
getControlNetDatas,
store,
}
Loading

0 comments on commit 8a3c2e1

Please sign in to comment.