longguangwang / arbsr
Scale-Arbitrary Super-Resolution
Prediction
longguangwang/arbsr:ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1Input
{ "image": "https://replicate.delivery/mgxm/b6b51752-1613-41b5-a23d-ff86400a9f24/butterflyx2.png", "target_width": 512, "target_height": 512 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "longguangwang/arbsr:ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1", { input: { image: "https://replicate.delivery/mgxm/b6b51752-1613-41b5-a23d-ff86400a9f24/butterflyx2.png", target_width: 512, target_height: 512 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "longguangwang/arbsr:ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1", input={ "image": "https://replicate.delivery/mgxm/b6b51752-1613-41b5-a23d-ff86400a9f24/butterflyx2.png", "target_width": 512, "target_height": 512 } ) # The longguangwang/arbsr model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/longguangwang/arbsr/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "longguangwang/arbsr:ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1", "input": { "image": "https://replicate.delivery/mgxm/b6b51752-1613-41b5-a23d-ff86400a9f24/butterflyx2.png", "target_width": 512, "target_height": 512 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2021-10-23T16:28:09.011647Z", "created_at": "2021-10-23T16:26:12.925494Z", "data_removed": false, "error": null, "id": "6qtdwf7lizebhjtyd7zgecj7gy", "input": { "image": "https://replicate.delivery/mgxm/b6b51752-1613-41b5-a23d-ff86400a9f24/butterflyx2.png", "target_width": 512, "target_height": 512 }, "logs": "/root/.pyenv/versions/3.8.12/lib/python3.8/site-packages/torch/nn/functional.py:3825: UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details.\n warnings.warn(\nLossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.", "metrics": { "total_time": 116.086153 }, "output": [ { "file": "https://replicate.delivery/mgxm/b52c741c-8937-4a68-8a45-a2fb418eea8a/out.png" } ], "started_at": "2022-12-06T01:08:45.083516Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/6qtdwf7lizebhjtyd7zgecj7gy", "cancel": "https://api.replicate.com/v1/predictions/6qtdwf7lizebhjtyd7zgecj7gy/cancel" }, "version": "ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1" }
/root/.pyenv/versions/3.8.12/lib/python3.8/site-packages/torch/nn/functional.py:3825: UserWarning: Default grid_sample and affine_grid behavior has changed to align_corners=False since 1.3.0. Please specify align_corners=True if the old behavior is desired. See the documentation of grid_sample for details. warnings.warn( Lossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.
Prediction
longguangwang/arbsr:ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1IDrulb5myq6fdwddo6b65uzhnr7eStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/7181cfe2-a7f6-41a3-ad16-b21aae145574/birdx8.png", "target_width": 120, "target_height": 120 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "longguangwang/arbsr:ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1", { input: { image: "https://replicate.delivery/mgxm/7181cfe2-a7f6-41a3-ad16-b21aae145574/birdx8.png", target_width: 120, target_height: 120 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "longguangwang/arbsr:ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1", input={ "image": "https://replicate.delivery/mgxm/7181cfe2-a7f6-41a3-ad16-b21aae145574/birdx8.png", "target_width": 120, "target_height": 120 } ) # The longguangwang/arbsr model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/longguangwang/arbsr/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "longguangwang/arbsr:ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1", "input": { "image": "https://replicate.delivery/mgxm/7181cfe2-a7f6-41a3-ad16-b21aae145574/birdx8.png", "target_width": 120, "target_height": 120 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2021-10-23T16:29:50.707654Z", "created_at": "2021-10-23T16:29:48.962250Z", "data_removed": false, "error": null, "id": "rulb5myq6fdwddo6b65uzhnr7e", "input": { "image": "https://replicate.delivery/mgxm/7181cfe2-a7f6-41a3-ad16-b21aae145574/birdx8.png", "target_width": 120, "target_height": 120 }, "logs": "Lossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.", "metrics": {}, "output": [ { "file": "https://replicate.delivery/mgxm/12450d3a-e276-4026-b757-5f040e419d85/out.png" } ], "started_at": null, "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/rulb5myq6fdwddo6b65uzhnr7e", "cancel": "https://api.replicate.com/v1/predictions/rulb5myq6fdwddo6b65uzhnr7e/cancel" }, "version": "ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1" }
Lossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.
Prediction
longguangwang/arbsr:ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1Input
{ "image": "https://replicate.delivery/mgxm/b82f2660-e208-411a-bacc-435345131cff/babyx4.png", "target_width": 512, "target_height": 512 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "longguangwang/arbsr:ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1", { input: { image: "https://replicate.delivery/mgxm/b82f2660-e208-411a-bacc-435345131cff/babyx4.png", target_width: 512, target_height: 512 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "longguangwang/arbsr:ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1", input={ "image": "https://replicate.delivery/mgxm/b82f2660-e208-411a-bacc-435345131cff/babyx4.png", "target_width": 512, "target_height": 512 } ) # The longguangwang/arbsr model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/longguangwang/arbsr/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "longguangwang/arbsr:ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1", "input": { "image": "https://replicate.delivery/mgxm/b82f2660-e208-411a-bacc-435345131cff/babyx4.png", "target_width": 512, "target_height": 512 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2021-10-23T16:30:41.461085Z", "created_at": "2021-10-23T16:30:38.634760Z", "data_removed": false, "error": null, "id": "hv6q5q2ssvfpndleau42xgodme", "input": { "image": "https://replicate.delivery/mgxm/b82f2660-e208-411a-bacc-435345131cff/babyx4.png", "target_width": 512, "target_height": 512 }, "logs": "Lossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.", "metrics": { "total_time": 2.826325 }, "output": [ { "file": "https://replicate.delivery/mgxm/ee87c599-5d68-4ee9-ba29-b867ec663030/out.png" } ], "started_at": "2023-01-26T09:06:25.821998Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/hv6q5q2ssvfpndleau42xgodme", "cancel": "https://api.replicate.com/v1/predictions/hv6q5q2ssvfpndleau42xgodme/cancel" }, "version": "ae9dd7cb8813f2bb78738afdd37f0de5ae5245268daaf1664a9cebb51f744fd1" }
Lossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.
Prediction
longguangwang/arbsr:e052dd2b9753fe17f49357cd71cc415eeac5066b6fabb7388676bf3ecf7350cbIDu3gbffbpmnfnbj75tr4ykth3duStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/152376d5-2d94-4d7b-acc3-3a385af6f6a6/skyscraper.png", "target_width": 600, "target_height": 200 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "longguangwang/arbsr:e052dd2b9753fe17f49357cd71cc415eeac5066b6fabb7388676bf3ecf7350cb", { input: { image: "https://replicate.delivery/mgxm/152376d5-2d94-4d7b-acc3-3a385af6f6a6/skyscraper.png", target_width: 600, target_height: 200 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "longguangwang/arbsr:e052dd2b9753fe17f49357cd71cc415eeac5066b6fabb7388676bf3ecf7350cb", input={ "image": "https://replicate.delivery/mgxm/152376d5-2d94-4d7b-acc3-3a385af6f6a6/skyscraper.png", "target_width": 600, "target_height": 200 } ) # The longguangwang/arbsr model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/longguangwang/arbsr/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "longguangwang/arbsr:e052dd2b9753fe17f49357cd71cc415eeac5066b6fabb7388676bf3ecf7350cb", "input": { "image": "https://replicate.delivery/mgxm/152376d5-2d94-4d7b-acc3-3a385af6f6a6/skyscraper.png", "target_width": 600, "target_height": 200 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2021-10-26T15:11:31.133761Z", "created_at": "2021-10-26T15:11:29.124462Z", "data_removed": false, "error": null, "id": "u3gbffbpmnfnbj75tr4ykth3du", "input": { "image": "https://replicate.delivery/mgxm/152376d5-2d94-4d7b-acc3-3a385af6f6a6/skyscraper.png", "target_width": 600, "target_height": 200 }, "logs": "Lossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.\nLossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.", "metrics": { "total_time": 2.009299 }, "output": [ { "file": "https://replicate.delivery/mgxm/081e33eb-f798-445c-ad39-43962f167758/out.png" } ], "started_at": "2021-12-01T05:58:35.409876Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/u3gbffbpmnfnbj75tr4ykth3du", "cancel": "https://api.replicate.com/v1/predictions/u3gbffbpmnfnbj75tr4ykth3du/cancel" }, "version": "e052dd2b9753fe17f49357cd71cc415eeac5066b6fabb7388676bf3ecf7350cb" }
Lossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning. Lossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.
Prediction
longguangwang/arbsr:e052dd2b9753fe17f49357cd71cc415eeac5066b6fabb7388676bf3ecf7350cbIDxw5vz3xlh5gqvgv3eaeqtybh6eStatusSucceededSourceWebHardware–Total duration–CreatedInput
{ "image": "https://replicate.delivery/mgxm/223e4c73-7270-4e26-be56-6efb77d3b73d/skyscraper.png", "target_width": 300, "target_height": 500 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "longguangwang/arbsr:e052dd2b9753fe17f49357cd71cc415eeac5066b6fabb7388676bf3ecf7350cb", { input: { image: "https://replicate.delivery/mgxm/223e4c73-7270-4e26-be56-6efb77d3b73d/skyscraper.png", target_width: 300, target_height: 500 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "longguangwang/arbsr:e052dd2b9753fe17f49357cd71cc415eeac5066b6fabb7388676bf3ecf7350cb", input={ "image": "https://replicate.delivery/mgxm/223e4c73-7270-4e26-be56-6efb77d3b73d/skyscraper.png", "target_width": 300, "target_height": 500 } ) # The longguangwang/arbsr model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/longguangwang/arbsr/api#output-schema print(item)
To learn more, take a look at the guide on getting started with Python.
Run longguangwang/arbsr using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "longguangwang/arbsr:e052dd2b9753fe17f49357cd71cc415eeac5066b6fabb7388676bf3ecf7350cb", "input": { "image": "https://replicate.delivery/mgxm/223e4c73-7270-4e26-be56-6efb77d3b73d/skyscraper.png", "target_width": 300, "target_height": 500 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2021-10-26T15:12:21.403137Z", "created_at": "2021-10-26T15:12:19.406233Z", "data_removed": false, "error": null, "id": "xw5vz3xlh5gqvgv3eaeqtybh6e", "input": { "image": "https://replicate.delivery/mgxm/223e4c73-7270-4e26-be56-6efb77d3b73d/skyscraper.png", "target_width": 300, "target_height": 500 }, "logs": "Lossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.\nLossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.", "metrics": { "total_time": 1.996904 }, "output": [ { "file": "https://replicate.delivery/mgxm/3a264f20-914f-44ea-be8b-415c6fd8105e/out.png" } ], "started_at": "2022-12-28T18:44:40.422228Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/xw5vz3xlh5gqvgv3eaeqtybh6e", "cancel": "https://api.replicate.com/v1/predictions/xw5vz3xlh5gqvgv3eaeqtybh6e/cancel" }, "version": "e052dd2b9753fe17f49357cd71cc415eeac5066b6fabb7388676bf3ecf7350cb" }
Lossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning. Lossy conversion from float32 to uint8. Range [0.0, 255.0]. Convert image to uint8 prior to saving to suppress this warning.
Want to make some of these yourself?
Run this model