You're looking at a specific version of this model. Jump to the model overview.
stphtan94117 /car_removal:b363c3ba
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run stphtan94117/car_removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"stphtan94117/car_removal:b363c3ba077b433fca3012b742dbaba35820f18e2863bf9a2343d542544895a4",
{
input: {
file: "https://replicate.delivery/pbxt/Jlou26nIVZiFUkDzB7QjGAasT0s0oLEmCnfebuMKWPhytjBZ/MAX_1608.JPG"
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run stphtan94117/car_removal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"stphtan94117/car_removal:b363c3ba077b433fca3012b742dbaba35820f18e2863bf9a2343d542544895a4",
input={
"file": "https://replicate.delivery/pbxt/Jlou26nIVZiFUkDzB7QjGAasT0s0oLEmCnfebuMKWPhytjBZ/MAX_1608.JPG"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run stphtan94117/car_removal 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": "b363c3ba077b433fca3012b742dbaba35820f18e2863bf9a2343d542544895a4",
"input": {
"file": "https://replicate.delivery/pbxt/Jlou26nIVZiFUkDzB7QjGAasT0s0oLEmCnfebuMKWPhytjBZ/MAX_1608.JPG"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run stphtan94117/car_removal using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/stphtan94117/car_removal@sha256:b363c3ba077b433fca3012b742dbaba35820f18e2863bf9a2343d542544895a4 \
-i 'file="https://replicate.delivery/pbxt/Jlou26nIVZiFUkDzB7QjGAasT0s0oLEmCnfebuMKWPhytjBZ/MAX_1608.JPG"'
To learn more, take a look at the Cog documentation.
Pull and run stphtan94117/car_removal using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/stphtan94117/car_removal@sha256:b363c3ba077b433fca3012b742dbaba35820f18e2863bf9a2343d542544895a4
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "file": "https://replicate.delivery/pbxt/Jlou26nIVZiFUkDzB7QjGAasT0s0oLEmCnfebuMKWPhytjBZ/MAX_1608.JPG" } }' \ http://localhost:5000/predictions
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2023-10-27T03:32:35.359994Z",
"created_at": "2023-10-27T03:29:41.779184Z",
"data_removed": false,
"error": null,
"id": "v37mgpjcg7onw5jgskyzqf6kve",
"input": {
"file": "https://replicate.delivery/pbxt/Jlou26nIVZiFUkDzB7QjGAasT0s0oLEmCnfebuMKWPhytjBZ/MAX_1608.JPG"
},
"logs": "/root/.pyenv/versions/3.9.18/lib/python3.9/site-packages/torch/functional.py:478: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:2894.)\nreturn _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]\nfinish!",
"metrics": {
"predict_time": 54.764409,
"total_time": 173.58081
},
"output": "https://replicate.delivery/pbxt/NUVieOnA0XwbfEHwxXZjwbZaftfjkfIHWIigjJSiLJpQqwROC/output.jpg",
"started_at": "2023-10-27T03:31:40.595585Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/v37mgpjcg7onw5jgskyzqf6kve",
"cancel": "https://api.replicate.com/v1/predictions/v37mgpjcg7onw5jgskyzqf6kve/cancel"
},
"version": "b363c3ba077b433fca3012b742dbaba35820f18e2863bf9a2343d542544895a4"
}
/root/.pyenv/versions/3.9.18/lib/python3.9/site-packages/torch/functional.py:478: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:2894.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
finish!