add restoreformer
This commit is contained in:
@@ -616,6 +616,15 @@ export default function Editor() {
|
||||
}
|
||||
}, [runRenderablePlugin])
|
||||
|
||||
useEffect(() => {
|
||||
emitter.on(PluginName.RestoreFormer, () => {
|
||||
runRenderablePlugin(PluginName.RestoreFormer)
|
||||
})
|
||||
return () => {
|
||||
emitter.off(PluginName.RestoreFormer)
|
||||
}
|
||||
}, [runRenderablePlugin])
|
||||
|
||||
useEffect(() => {
|
||||
emitter.on(PluginName.RealESRGAN, (data: any) => {
|
||||
runRenderablePlugin(PluginName.RealESRGAN, data)
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
border-radius: 3px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 25px;
|
||||
height: 32px;
|
||||
padding: 0 5px;
|
||||
position: relative;
|
||||
user-select: none;
|
||||
|
||||
@@ -22,6 +22,7 @@ export enum PluginName {
|
||||
RemoveBG = 'RemoveBG',
|
||||
RealESRGAN = 'RealESRGAN',
|
||||
GFPGAN = 'GFPGAN',
|
||||
RestoreFormer = 'RestoreFormer',
|
||||
InteractiveSeg = 'InteractiveSeg',
|
||||
MakeGIF = 'MakeGIF',
|
||||
}
|
||||
@@ -39,6 +40,10 @@ const pluginMap = {
|
||||
IconClass: FaceIcon,
|
||||
showName: 'GFPGAN',
|
||||
},
|
||||
[PluginName.RestoreFormer]: {
|
||||
IconClass: FaceIcon,
|
||||
showName: 'RestoreFormer',
|
||||
},
|
||||
[PluginName.InteractiveSeg]: {
|
||||
IconClass: CursorArrowRaysIcon,
|
||||
showName: 'Interactive Seg',
|
||||
|
||||
Reference in New Issue
Block a user