mirror of
https://github.com/aljazceru/nostrdvm.git
synced 2025-12-24 01:14:24 +01:00
ui updates, more options for upscaler
This commit is contained in:
@@ -59,12 +59,12 @@ class ImageUpscale(DVMTaskInterface):
|
|||||||
elif tag.as_vec()[0] == 'param':
|
elif tag.as_vec()[0] == 'param':
|
||||||
print("Param: " + tag.as_vec()[1] + ": " + tag.as_vec()[2])
|
print("Param: " + tag.as_vec()[1] + ": " + tag.as_vec()[2])
|
||||||
if tag.as_vec()[1] == "upscale":
|
if tag.as_vec()[1] == "upscale":
|
||||||
out_scale = tag.as_vec()[2]
|
out_scale = int(tag.as_vec()[2])
|
||||||
|
|
||||||
io_input_image = {
|
io_input_image = {
|
||||||
"id": "input_image",
|
"id": "input_image",
|
||||||
"type": "input",
|
"type": "input",
|
||||||
"src": "url:Image",
|
"src": "url:image",
|
||||||
"uri": url
|
"uri": url
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,10 +76,15 @@ class ImageUpscale(DVMTaskInterface):
|
|||||||
|
|
||||||
request_form['data'] = json.dumps([io_input_image, io_output])
|
request_form['data'] = json.dumps([io_input_image, io_output])
|
||||||
|
|
||||||
options = {
|
options = {"model": "RealESRGAN_x4plus",
|
||||||
"outscale": out_scale,
|
"outscale": out_scale,
|
||||||
|
"denoise_strength": 0.5,
|
||||||
|
"tile": 0,
|
||||||
|
"tile_pad": 10,
|
||||||
|
"pre_pad": 0,
|
||||||
|
"compute_type": "fp32",
|
||||||
|
"face_enhance": False}
|
||||||
|
|
||||||
}
|
|
||||||
request_form['options'] = json.dumps(options)
|
request_form['options'] = json.dumps(options)
|
||||||
|
|
||||||
return request_form
|
return request_form
|
||||||
|
|||||||
@@ -331,7 +331,7 @@ const submitHandler = async () => {
|
|||||||
<div class="greetings">
|
<div class="greetings">
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<h1 class="text-7xl font-black tracking-wide">Noogle</h1>
|
<h1 class="text-7xl font-black tracking-wide">DVM</h1>
|
||||||
<h1 class="text-7xl font-black tracking-wide">Image Generation</h1>
|
<h1 class="text-7xl font-black tracking-wide">Image Generation</h1>
|
||||||
<h2 class="text-base-200-content text-center tracking-wide text-2xl font-thin ">
|
<h2 class="text-base-200-content text-center tracking-wide text-2xl font-thin ">
|
||||||
Generate Images, the decentralized way</h2>
|
Generate Images, the decentralized way</h2>
|
||||||
|
|||||||
@@ -864,7 +864,7 @@ export default {
|
|||||||
dbclient = new ClientBuilder().signer(signer).database(await db).build()
|
dbclient = new ClientBuilder().signer(signer).database(await db).build()
|
||||||
|
|
||||||
await dbclient.addRelay("wss://relay.damus.io");
|
await dbclient.addRelay("wss://relay.damus.io");
|
||||||
//await dbclient.addRelay( "wss://purplepag.es");
|
// await dbclient.addRelay( "wss://purplepag.es");
|
||||||
await dbclient.connect()
|
await dbclient.connect()
|
||||||
|
|
||||||
store.commit('set_dbclient', dbclient)
|
store.commit('set_dbclient', dbclient)
|
||||||
|
|||||||
@@ -974,7 +974,7 @@ const submitHandler = async () => {
|
|||||||
<div class="greetings">
|
<div class="greetings">
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<h1 class="text-7xl font-black tracking-wide">Noogle</h1>
|
<h1 class="text-7xl font-black tracking-wide">Nostr</h1>
|
||||||
<h1 class="text-7xl font-black tracking-wide">Content</h1>
|
<h1 class="text-7xl font-black tracking-wide">Content</h1>
|
||||||
<h1 class="text-7xl font-black tracking-wide">Discovery</h1>
|
<h1 class="text-7xl font-black tracking-wide">Discovery</h1>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user