-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add auraSR node * refine * add exception catch * add docs * refine * refine docs * add news
- Loading branch information
1 parent
6e741c8
commit 6e63ed3
Showing
10 changed files
with
283 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
169 changes: 169 additions & 0 deletions
169
examples/bizyair_showcase_realistic_superresolution.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,169 @@ | ||
{ | ||
"last_node_id": 4, | ||
"last_link_id": 3, | ||
"nodes": [ | ||
{ | ||
"id": 4, | ||
"type": "PreviewImage", | ||
"pos": [ | ||
895, | ||
225 | ||
], | ||
"size": { | ||
"0": 794.525390625, | ||
"1": 737.365966796875 | ||
}, | ||
"flags": {}, | ||
"order": 2, | ||
"mode": 0, | ||
"inputs": [ | ||
{ | ||
"name": "images", | ||
"type": "IMAGE", | ||
"link": 3 | ||
} | ||
], | ||
"properties": { | ||
"Node name for S&R": "PreviewImage" | ||
} | ||
}, | ||
{ | ||
"id": 1, | ||
"type": "BizyAirGenerateLightningImage", | ||
"pos": [ | ||
547, | ||
226 | ||
], | ||
"size": { | ||
"0": 336, | ||
"1": 220 | ||
}, | ||
"flags": {}, | ||
"order": 0, | ||
"mode": 0, | ||
"outputs": [ | ||
{ | ||
"name": "IMAGE", | ||
"type": "IMAGE", | ||
"links": [ | ||
1, | ||
3 | ||
], | ||
"shape": 3, | ||
"slot_index": 0 | ||
} | ||
], | ||
"properties": { | ||
"Node name for S&R": "BizyAirGenerateLightningImage" | ||
}, | ||
"widgets_values": [ | ||
"a dog", | ||
5, | ||
"fixed", | ||
512, | ||
512, | ||
1.5, | ||
1 | ||
] | ||
}, | ||
{ | ||
"id": 2, | ||
"type": "BizyAirAuraSR", | ||
"pos": [ | ||
489, | ||
507 | ||
], | ||
"size": [ | ||
394.79998779296875, | ||
26 | ||
], | ||
"flags": {}, | ||
"order": 1, | ||
"mode": 0, | ||
"inputs": [ | ||
{ | ||
"name": "image", | ||
"type": "IMAGE", | ||
"link": 1 | ||
} | ||
], | ||
"outputs": [ | ||
{ | ||
"name": "IMAGE", | ||
"type": "IMAGE", | ||
"links": [ | ||
2 | ||
], | ||
"shape": 3, | ||
"slot_index": 0 | ||
} | ||
], | ||
"properties": { | ||
"Node name for S&R": "BizyAirAuraSR" | ||
} | ||
}, | ||
{ | ||
"id": 3, | ||
"type": "PreviewImage", | ||
"pos": [ | ||
1725, | ||
233 | ||
], | ||
"size": { | ||
"0": 1438.3111572265625, | ||
"1": 1453.90234375 | ||
}, | ||
"flags": {}, | ||
"order": 3, | ||
"mode": 0, | ||
"inputs": [ | ||
{ | ||
"name": "images", | ||
"type": "IMAGE", | ||
"link": 2 | ||
} | ||
], | ||
"properties": { | ||
"Node name for S&R": "PreviewImage" | ||
} | ||
} | ||
], | ||
"links": [ | ||
[ | ||
1, | ||
1, | ||
0, | ||
2, | ||
0, | ||
"IMAGE" | ||
], | ||
[ | ||
2, | ||
2, | ||
0, | ||
3, | ||
0, | ||
"IMAGE" | ||
], | ||
[ | ||
3, | ||
1, | ||
0, | ||
4, | ||
0, | ||
"IMAGE" | ||
] | ||
], | ||
"groups": [], | ||
"config": {}, | ||
"extra": { | ||
"ds": { | ||
"scale": 0.42409761837248505, | ||
"offset": [ | ||
1360.4125112955187, | ||
349.01045420727985 | ||
] | ||
} | ||
}, | ||
"version": 0.4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { app } from "../../scripts/app.js"; | ||
|
||
|
||
app.registerExtension({ | ||
name: "bizyair.deprecated.nodes", | ||
|
||
async beforeRegisterNodeDef(nodeType, nodeData, app) { | ||
const warning_msg = { | ||
"BizyAirSetAPIKey": "It will be available until 2024/08/15. Please click \"BizyAir Key\" button to set API key instead.", | ||
//"BizyAirSuperResolution": "It will be available until 2024/08/31. Please use \"☁️BizyAir Image Super Resolution\" node instead.", | ||
} | ||
if (Object.keys(warning_msg).includes(nodeData.name)) { | ||
async function alert_deprecated(node_name, display_name) { | ||
alert(`${display_name}: ${warning_msg[node_name]}`); | ||
} | ||
const onNodeCreated = nodeType.prototype.onNodeCreated; | ||
nodeType.prototype.onNodeCreated = function (message) { | ||
onNodeCreated?.apply(this, arguments); | ||
alert_deprecated.call(this, nodeData.name, nodeData.display_name); | ||
}; | ||
} | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters