mv-lab
/
instructir
High-Quality Image Restoration Following Human Instructions
Prediction
mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3ID44v5dyrcw6nhek6pfckxvr5uaqStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KKLe7Hb195UNMS5JVasS3aRi21EF9Mz9Y9inDBdPaDeWZJXk/rain-020.png", "prompt": "Retouch the picture as a professional photographer please" }
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 mv-lab/instructir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", { input: { image: "https://replicate.delivery/pbxt/KKLe7Hb195UNMS5JVasS3aRi21EF9Mz9Y9inDBdPaDeWZJXk/rain-020.png", prompt: "Retouch the picture as a professional photographer please" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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 mv-lab/instructir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", input={ "image": "https://replicate.delivery/pbxt/KKLe7Hb195UNMS5JVasS3aRi21EF9Mz9Y9inDBdPaDeWZJXk/rain-020.png", "prompt": "Retouch the picture as a professional photographer please" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run mv-lab/instructir 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": "e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", "input": { "image": "https://replicate.delivery/pbxt/KKLe7Hb195UNMS5JVasS3aRi21EF9Mz9Y9inDBdPaDeWZJXk/rain-020.png", "prompt": "Retouch the picture as a professional photographer please" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-01T10:06:23.875565Z", "created_at": "2024-02-01T10:04:36.600877Z", "data_removed": false, "error": null, "id": "44v5dyrcw6nhek6pfckxvr5uaq", "input": { "image": "https://replicate.delivery/pbxt/KKLe7Hb195UNMS5JVasS3aRi21EF9Mz9Y9inDBdPaDeWZJXk/rain-020.png", "prompt": "Retouch the picture as a professional photographer please" }, "logs": "Using seed: 25221\nAsking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.", "metrics": { "predict_time": 5.83298, "total_time": 107.274688 }, "output": "https://replicate.delivery/pbxt/ZuJzA2e3h5zyEyA1eTs9UUlR9KeoxOWrcSn7LF3jXX1fxHJJB/out.png", "started_at": "2024-02-01T10:06:18.042585Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/44v5dyrcw6nhek6pfckxvr5uaq", "cancel": "https://api.replicate.com/v1/predictions/44v5dyrcw6nhek6pfckxvr5uaq/cancel" }, "version": "e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3" }
Generated inUsing seed: 25221 Asking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.
Prediction
mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3IDehgcuvrb2gtdc5ortfkgqli6miStatusSucceededSourceWebHardwareT4 (High-memory)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KKM0nsVKACbMIgoyyZ28Cykrwx8fw5cWmJRa4PCWFfec6dbw/gopro.png", "prompt": "stabilize the image, it's too blurry" }
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 mv-lab/instructir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", { input: { image: "https://replicate.delivery/pbxt/KKM0nsVKACbMIgoyyZ28Cykrwx8fw5cWmJRa4PCWFfec6dbw/gopro.png", prompt: "stabilize the image, it's too blurry" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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 mv-lab/instructir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", input={ "image": "https://replicate.delivery/pbxt/KKM0nsVKACbMIgoyyZ28Cykrwx8fw5cWmJRa4PCWFfec6dbw/gopro.png", "prompt": "stabilize the image, it's too blurry" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run mv-lab/instructir 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": "e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", "input": { "image": "https://replicate.delivery/pbxt/KKM0nsVKACbMIgoyyZ28Cykrwx8fw5cWmJRa4PCWFfec6dbw/gopro.png", "prompt": "stabilize the image, it\'s too blurry" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-01T10:30:18.895028Z", "created_at": "2024-02-01T10:28:33.535142Z", "data_removed": false, "error": null, "id": "ehgcuvrb2gtdc5ortfkgqli6mi", "input": { "image": "https://replicate.delivery/pbxt/KKM0nsVKACbMIgoyyZ28Cykrwx8fw5cWmJRa4PCWFfec6dbw/gopro.png", "prompt": "stabilize the image, it's too blurry" }, "logs": "Using seed: 21417\nAsking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.", "metrics": { "predict_time": 28.043595, "total_time": 105.359886 }, "output": "https://replicate.delivery/pbxt/RaOJMemzwbxsJyfeDkOjtOWtSJzGiqRAWsJJHhvSbbL1lkkkA/out.png", "started_at": "2024-02-01T10:29:50.851433Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ehgcuvrb2gtdc5ortfkgqli6mi", "cancel": "https://api.replicate.com/v1/predictions/ehgcuvrb2gtdc5ortfkgqli6mi/cancel" }, "version": "e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3" }
Generated inUsing seed: 21417 Asking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.
Prediction
mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3IDbnu7xyrbb5mx4ansr43ulxjhseStatusSucceededSourceWebHardwareT4 (High-memory)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KKM5L4OS4mtFgd745tcYH127h8VgySkCXpNMqVivSVBv5Bn2/frog.png", "prompt": " please improve the quality and resolution of the picture" }
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 mv-lab/instructir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", { input: { image: "https://replicate.delivery/pbxt/KKM5L4OS4mtFgd745tcYH127h8VgySkCXpNMqVivSVBv5Bn2/frog.png", prompt: " please improve the quality and resolution of the picture" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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 mv-lab/instructir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", input={ "image": "https://replicate.delivery/pbxt/KKM5L4OS4mtFgd745tcYH127h8VgySkCXpNMqVivSVBv5Bn2/frog.png", "prompt": " please improve the quality and resolution of the picture" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run mv-lab/instructir 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": "e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", "input": { "image": "https://replicate.delivery/pbxt/KKM5L4OS4mtFgd745tcYH127h8VgySkCXpNMqVivSVBv5Bn2/frog.png", "prompt": " please improve the quality and resolution of the picture" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-01T10:36:52.283653Z", "created_at": "2024-02-01T10:33:20.719044Z", "data_removed": false, "error": null, "id": "bnu7xyrbb5mx4ansr43ulxjhse", "input": { "image": "https://replicate.delivery/pbxt/KKM5L4OS4mtFgd745tcYH127h8VgySkCXpNMqVivSVBv5Bn2/frog.png", "prompt": " please improve the quality and resolution of the picture" }, "logs": "Using seed: 57596\nAsking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.", "metrics": { "predict_time": 2.592158, "total_time": 211.564609 }, "output": "https://replicate.delivery/pbxt/c8sjf2pvIsQWdSSZwPrVq8GY01sNcACxuJYOd7CJRoIiMJJJA/out.png", "started_at": "2024-02-01T10:36:49.691495Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/bnu7xyrbb5mx4ansr43ulxjhse", "cancel": "https://api.replicate.com/v1/predictions/bnu7xyrbb5mx4ansr43ulxjhse/cancel" }, "version": "e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3" }
Generated inUsing seed: 57596 Asking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.
Prediction
mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3IDi6pmxajb4tj73o3gb5up3dxefaStatusSucceededSourceWebHardwareT4 (High-memory)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KKMNZaLAZgZOYWtd201Nb3LzJFSe2ZBSpMoEDBWOdzlksRFE/lol_748.png", "prompt": " please improve the lighting of the image" }
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 mv-lab/instructir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", { input: { image: "https://replicate.delivery/pbxt/KKMNZaLAZgZOYWtd201Nb3LzJFSe2ZBSpMoEDBWOdzlksRFE/lol_748.png", prompt: " please improve the lighting of the image" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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 mv-lab/instructir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", input={ "image": "https://replicate.delivery/pbxt/KKMNZaLAZgZOYWtd201Nb3LzJFSe2ZBSpMoEDBWOdzlksRFE/lol_748.png", "prompt": " please improve the lighting of the image" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run mv-lab/instructir 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": "e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", "input": { "image": "https://replicate.delivery/pbxt/KKMNZaLAZgZOYWtd201Nb3LzJFSe2ZBSpMoEDBWOdzlksRFE/lol_748.png", "prompt": " please improve the lighting of the image" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-01T10:56:11.404304Z", "created_at": "2024-02-01T10:52:35.064027Z", "data_removed": false, "error": null, "id": "i6pmxajb4tj73o3gb5up3dxefa", "input": { "image": "https://replicate.delivery/pbxt/KKMNZaLAZgZOYWtd201Nb3LzJFSe2ZBSpMoEDBWOdzlksRFE/lol_748.png", "prompt": " please improve the lighting of the image" }, "logs": "Using seed: 57643\nAsking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.", "metrics": { "predict_time": 6.566171, "total_time": 216.340277 }, "output": "https://replicate.delivery/pbxt/sP3SD2u9mU5fNCbPtKTYYbofOME629Cv9tpSjeX43rkWWlkkA/out.png", "started_at": "2024-02-01T10:56:04.838133Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/i6pmxajb4tj73o3gb5up3dxefa", "cancel": "https://api.replicate.com/v1/predictions/i6pmxajb4tj73o3gb5up3dxefa/cancel" }, "version": "e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3" }
Generated inUsing seed: 57643 Asking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.
Prediction
mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3IDtijxmubbhok233leeiz7b4cjpaStatusSucceededSourceWebHardwareT4 (High-memory)Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KKLe7Hb195UNMS5JVasS3aRi21EF9Mz9Y9inDBdPaDeWZJXk/rain-020.png", "prompt": "please remove the rain drops, keep the rest untouched" }
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 mv-lab/instructir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", { input: { image: "https://replicate.delivery/pbxt/KKLe7Hb195UNMS5JVasS3aRi21EF9Mz9Y9inDBdPaDeWZJXk/rain-020.png", prompt: "please remove the rain drops, keep the rest untouched" } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", 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 mv-lab/instructir using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "mv-lab/instructir:e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", input={ "image": "https://replicate.delivery/pbxt/KKLe7Hb195UNMS5JVasS3aRi21EF9Mz9Y9inDBdPaDeWZJXk/rain-020.png", "prompt": "please remove the rain drops, keep the rest untouched" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run mv-lab/instructir 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": "e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3", "input": { "image": "https://replicate.delivery/pbxt/KKLe7Hb195UNMS5JVasS3aRi21EF9Mz9Y9inDBdPaDeWZJXk/rain-020.png", "prompt": "please remove the rain drops, keep the rest untouched" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-02-01T10:59:09.926480Z", "created_at": "2024-02-01T10:58:26.892833Z", "data_removed": false, "error": null, "id": "tijxmubbhok233leeiz7b4cjpa", "input": { "image": "https://replicate.delivery/pbxt/KKLe7Hb195UNMS5JVasS3aRi21EF9Mz9Y9inDBdPaDeWZJXk/rain-020.png", "prompt": "please remove the rain drops, keep the rest untouched" }, "logs": "Using seed: 58569\nAsking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.", "metrics": { "predict_time": 6.985284, "total_time": 43.033647 }, "output": "https://replicate.delivery/pbxt/6Wo238P5vIqUNdZNNjvceZ3TXKf7yxrSpAIWB3BLOez7blkkA/out.png", "started_at": "2024-02-01T10:59:02.941196Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/tijxmubbhok233leeiz7b4cjpa", "cancel": "https://api.replicate.com/v1/predictions/tijxmubbhok233leeiz7b4cjpa/cancel" }, "version": "e98baeb90b5cd143a86aa2a9deeffb2852c3bebbd428f3cdf5da1b31fb99d3a3" }
Generated inUsing seed: 58569 Asking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.
Want to make some of these yourself?
Run this model