twn39 / bshm
BSHM通用抠图
- Public
- 559 runs
-
T4
Prediction
twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327aModelIDi4xf7kbbrq7lbcigy4s5z5c7uiStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/JvRBwS70wEOxXD4pHKgudOrPHfVBvTq15GN4SR68mLT0OpEi/1%282%29.png" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run twn39/bshm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", { input: { image: "https://replicate.delivery/pbxt/JvRBwS70wEOxXD4pHKgudOrPHfVBvTq15GN4SR68mLT0OpEi/1%282%29.png" } } ); // 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 twn39/bshm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", input={ "image": "https://replicate.delivery/pbxt/JvRBwS70wEOxXD4pHKgudOrPHfVBvTq15GN4SR68mLT0OpEi/1%282%29.png" } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run twn39/bshm 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": "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", "input": { "image": "https://replicate.delivery/pbxt/JvRBwS70wEOxXD4pHKgudOrPHfVBvTq15GN4SR68mLT0OpEi/1%282%29.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-23T05:51:19.104866Z", "created_at": "2023-11-23T05:46:34.001908Z", "data_removed": false, "error": null, "id": "i4xf7kbbrq7lbcigy4s5z5c7ui", "input": { "image": "https://replicate.delivery/pbxt/JvRBwS70wEOxXD4pHKgudOrPHfVBvTq15GN4SR68mLT0OpEi/1%282%29.png" }, "logs": "2023-11-23 05:51:11.934612: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:901] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\n2023-11-23 05:51:11.936627: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2256] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.\nSkipping registering GPU devices...\n2023-11-23 05:51:12.444678: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:388] MLIR V1 optimization pass is not enabled\n2023-11-23 05:51:17.555743: W external/local_tsl/tsl/framework/cpu_allocator_impl.cc:83] Allocation of 33177600 exceeds 10% of free system memory.\n2023-11-23 05:51:17.615981: W external/local_tsl/tsl/framework/cpu_allocator_impl.cc:83] Allocation of 66355200 exceeds 10% of free system memory.\n2023-11-23 05:51:18.039834: W external/local_tsl/tsl/framework/cpu_allocator_impl.cc:83] Allocation of 52428800 exceeds 10% of free system memory.\n2023-11-23 05:51:18.070730: W external/local_tsl/tsl/framework/cpu_allocator_impl.cc:83] Allocation of 52428800 exceeds 10% of free system memory.\n2023-11-23 05:51:18.097390: W external/local_tsl/tsl/framework/cpu_allocator_impl.cc:83] Allocation of 52428800 exceeds 10% of free system memory.", "metrics": { "predict_time": 7.468601, "total_time": 285.102958 }, "output": "https://replicate.delivery/pbxt/a0zAqFzv0NqwLlCgt8XXmL9guFPcECbVB9JjoMOrNCvVayeIA/output.png", "started_at": "2023-11-23T05:51:11.636265Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/i4xf7kbbrq7lbcigy4s5z5c7ui", "cancel": "https://api.replicate.com/v1/predictions/i4xf7kbbrq7lbcigy4s5z5c7ui/cancel" }, "version": "a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a" }
Generated in2023-11-23 05:51:11.934612: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:901] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355 2023-11-23 05:51:11.936627: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2256] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform. Skipping registering GPU devices... 2023-11-23 05:51:12.444678: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:388] MLIR V1 optimization pass is not enabled 2023-11-23 05:51:17.555743: W external/local_tsl/tsl/framework/cpu_allocator_impl.cc:83] Allocation of 33177600 exceeds 10% of free system memory. 2023-11-23 05:51:17.615981: W external/local_tsl/tsl/framework/cpu_allocator_impl.cc:83] Allocation of 66355200 exceeds 10% of free system memory. 2023-11-23 05:51:18.039834: W external/local_tsl/tsl/framework/cpu_allocator_impl.cc:83] Allocation of 52428800 exceeds 10% of free system memory. 2023-11-23 05:51:18.070730: W external/local_tsl/tsl/framework/cpu_allocator_impl.cc:83] Allocation of 52428800 exceeds 10% of free system memory. 2023-11-23 05:51:18.097390: W external/local_tsl/tsl/framework/cpu_allocator_impl.cc:83] Allocation of 52428800 exceeds 10% of free system memory.
Prediction
twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327aModelIDvvkqynrbfxpfxrdyg4vdgr5v4mStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/JvRHyTZlBmqWihMIrSPBgL1jj3txacxL6lslz1PXC2t2lPKB/comfyworkflows_4f8ef00a-738c-4fe2-8f86-5099c273254e.png" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run twn39/bshm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", { input: { image: "https://replicate.delivery/pbxt/JvRHyTZlBmqWihMIrSPBgL1jj3txacxL6lslz1PXC2t2lPKB/comfyworkflows_4f8ef00a-738c-4fe2-8f86-5099c273254e.png" } } ); // 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 twn39/bshm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", input={ "image": "https://replicate.delivery/pbxt/JvRHyTZlBmqWihMIrSPBgL1jj3txacxL6lslz1PXC2t2lPKB/comfyworkflows_4f8ef00a-738c-4fe2-8f86-5099c273254e.png" } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run twn39/bshm 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": "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", "input": { "image": "https://replicate.delivery/pbxt/JvRHyTZlBmqWihMIrSPBgL1jj3txacxL6lslz1PXC2t2lPKB/comfyworkflows_4f8ef00a-738c-4fe2-8f86-5099c273254e.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-23T05:53:03.601205Z", "created_at": "2023-11-23T05:53:00.459347Z", "data_removed": false, "error": null, "id": "vvkqynrbfxpfxrdyg4vdgr5v4m", "input": { "image": "https://replicate.delivery/pbxt/JvRHyTZlBmqWihMIrSPBgL1jj3txacxL6lslz1PXC2t2lPKB/comfyworkflows_4f8ef00a-738c-4fe2-8f86-5099c273254e.png" }, "logs": "2023-11-23 05:53:01.161796: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:901] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\n2023-11-23 05:53:01.163793: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2256] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.\nSkipping registering GPU devices...", "metrics": { "predict_time": 3.128244, "total_time": 3.141858 }, "output": "https://replicate.delivery/pbxt/FobG6HOcOwY5DRBECIpqj3iLfaKiWnWAQeWnS66V7W9eVT2jA/output.png", "started_at": "2023-11-23T05:53:00.472961Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/vvkqynrbfxpfxrdyg4vdgr5v4m", "cancel": "https://api.replicate.com/v1/predictions/vvkqynrbfxpfxrdyg4vdgr5v4m/cancel" }, "version": "a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a" }
Generated in2023-11-23 05:53:01.161796: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:901] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355 2023-11-23 05:53:01.163793: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2256] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform. Skipping registering GPU devices...
Prediction
twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327aModelIDqwdpgcrbpn2maakjnb4utmx5iaStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/JvRJ2VFm0yR6GCBLojhHP3rCbl2GptJ4456KOKOXXIunTDIi/comfyworkflows_bd0e0fb4-78f8-489c-a252-d45b0a077d54.png" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run twn39/bshm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", { input: { image: "https://replicate.delivery/pbxt/JvRJ2VFm0yR6GCBLojhHP3rCbl2GptJ4456KOKOXXIunTDIi/comfyworkflows_bd0e0fb4-78f8-489c-a252-d45b0a077d54.png" } } ); // 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 twn39/bshm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", input={ "image": "https://replicate.delivery/pbxt/JvRJ2VFm0yR6GCBLojhHP3rCbl2GptJ4456KOKOXXIunTDIi/comfyworkflows_bd0e0fb4-78f8-489c-a252-d45b0a077d54.png" } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run twn39/bshm 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": "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", "input": { "image": "https://replicate.delivery/pbxt/JvRJ2VFm0yR6GCBLojhHP3rCbl2GptJ4456KOKOXXIunTDIi/comfyworkflows_bd0e0fb4-78f8-489c-a252-d45b0a077d54.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-23T05:54:05.284805Z", "created_at": "2023-11-23T05:54:03.275987Z", "data_removed": false, "error": null, "id": "qwdpgcrbpn2maakjnb4utmx5ia", "input": { "image": "https://replicate.delivery/pbxt/JvRJ2VFm0yR6GCBLojhHP3rCbl2GptJ4456KOKOXXIunTDIi/comfyworkflows_bd0e0fb4-78f8-489c-a252-d45b0a077d54.png" }, "logs": "2023-11-23 05:54:03.725684: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:901] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\n2023-11-23 05:54:03.727646: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2256] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.\nSkipping registering GPU devices...", "metrics": { "predict_time": 1.991544, "total_time": 2.008818 }, "output": "https://replicate.delivery/pbxt/U4zgMPbHbXYFOtYAZJeleoyToR8VDvUnevdhRHSUecCxvmsHB/output.png", "started_at": "2023-11-23T05:54:03.293261Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/qwdpgcrbpn2maakjnb4utmx5ia", "cancel": "https://api.replicate.com/v1/predictions/qwdpgcrbpn2maakjnb4utmx5ia/cancel" }, "version": "a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a" }
Generated in2023-11-23 05:54:03.725684: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:901] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355 2023-11-23 05:54:03.727646: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2256] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform. Skipping registering GPU devices...
Prediction
twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327aModelIDmu63y5jbtegvoed47r3fe7zmviStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/JvRKgVN9Bp58xE5I2JctyXvdusFkcfiMQ7tjtB3Vqb6Gpued/repo.jpg" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run twn39/bshm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", { input: { image: "https://replicate.delivery/pbxt/JvRKgVN9Bp58xE5I2JctyXvdusFkcfiMQ7tjtB3Vqb6Gpued/repo.jpg" } } ); // 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 twn39/bshm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", input={ "image": "https://replicate.delivery/pbxt/JvRKgVN9Bp58xE5I2JctyXvdusFkcfiMQ7tjtB3Vqb6Gpued/repo.jpg" } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run twn39/bshm 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": "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", "input": { "image": "https://replicate.delivery/pbxt/JvRKgVN9Bp58xE5I2JctyXvdusFkcfiMQ7tjtB3Vqb6Gpued/repo.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-23T05:55:48.073820Z", "created_at": "2023-11-23T05:55:46.066614Z", "data_removed": false, "error": null, "id": "mu63y5jbtegvoed47r3fe7zmvi", "input": { "image": "https://replicate.delivery/pbxt/JvRKgVN9Bp58xE5I2JctyXvdusFkcfiMQ7tjtB3Vqb6Gpued/repo.jpg" }, "logs": "2023-11-23 05:55:46.363984: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:901] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\n2023-11-23 05:55:46.366272: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2256] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.\nSkipping registering GPU devices...", "metrics": { "predict_time": 1.9884, "total_time": 2.007206 }, "output": "https://replicate.delivery/pbxt/iTHJ6mXFxA5wN1gef4xuHqqRRkDsTk2X42Ft1uJp6KkjtJ7RA/output.png", "started_at": "2023-11-23T05:55:46.085420Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/mu63y5jbtegvoed47r3fe7zmvi", "cancel": "https://api.replicate.com/v1/predictions/mu63y5jbtegvoed47r3fe7zmvi/cancel" }, "version": "a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a" }
Generated in2023-11-23 05:55:46.363984: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:901] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355 2023-11-23 05:55:46.366272: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2256] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform. Skipping registering GPU devices...
Prediction
twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327aModelIDadwrphbbjylbvzffudpsbviyjeStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/JvRLEe3bqY7ABrJD03pcX0FLzL1NE4Uhsk0n1XQswHGTvj4o/repo.jpg" }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run twn39/bshm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", { input: { image: "https://replicate.delivery/pbxt/JvRLEe3bqY7ABrJD03pcX0FLzL1NE4Uhsk0n1XQswHGTvj4o/repo.jpg" } } ); // 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 twn39/bshm using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", input={ "image": "https://replicate.delivery/pbxt/JvRLEe3bqY7ABrJD03pcX0FLzL1NE4Uhsk0n1XQswHGTvj4o/repo.jpg" } ) # To access the file URL: print(output.url()) #=> "http://example.com" # To write the file to disk: with open("my-image.png", "wb") as file: file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
Run twn39/bshm 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": "twn39/bshm:a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a", "input": { "image": "https://replicate.delivery/pbxt/JvRLEe3bqY7ABrJD03pcX0FLzL1NE4Uhsk0n1XQswHGTvj4o/repo.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-11-23T05:56:24.330580Z", "created_at": "2023-11-23T05:56:22.453516Z", "data_removed": false, "error": null, "id": "adwrphbbjylbvzffudpsbviyje", "input": { "image": "https://replicate.delivery/pbxt/JvRLEe3bqY7ABrJD03pcX0FLzL1NE4Uhsk0n1XQswHGTvj4o/repo.jpg" }, "logs": "2023-11-23 05:56:22.765819: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:901] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355\n2023-11-23 05:56:22.767866: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2256] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.\nSkipping registering GPU devices...", "metrics": { "predict_time": 1.859375, "total_time": 1.877064 }, "output": "https://replicate.delivery/pbxt/p71ksekXbPRtEq8oZK6EKEDz5Vf85Nz8qOdCpsd2ZuQIuJ7RA/output.png", "started_at": "2023-11-23T05:56:22.471205Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/adwrphbbjylbvzffudpsbviyje", "cancel": "https://api.replicate.com/v1/predictions/adwrphbbjylbvzffudpsbviyje/cancel" }, "version": "a011d1f7849d8e26ad99da950e362cc3888b964e5ce77b3eb18ca943d604327a" }
Generated in2023-11-23 05:56:22.765819: I external/local_xla/xla/stream_executor/cuda/cuda_executor.cc:901] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355 2023-11-23 05:56:22.767866: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2256] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform. Skipping registering GPU devices...
Want to make some of these yourself?
Run this model