remodela-ai / scaling-model-v2
# Interior Decoration Space Scaling - Second Use Case
- Public
- 74 runs
-
A100 (80GB)
Prediction
remodela-ai/scaling-model-v2:4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3IDvazphjepc1rj00ck4fxb0cnfwrStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
{ "alpha": 0.4, "image": "https://replicate.delivery/pbxt/LxnRpiim9Nhga77C5aqy5SnCMewynyEfS3rnUKU3h4XZiB9b/nitidez.png", "api_key": "19333c9a6ec349ec90bd394c9f47ca67" }
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 remodela-ai/scaling-model-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "remodela-ai/scaling-model-v2:4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3", { input: { alpha: 0.4, image: "https://replicate.delivery/pbxt/LxnRpiim9Nhga77C5aqy5SnCMewynyEfS3rnUKU3h4XZiB9b/nitidez.png", api_key: "19333c9a6ec349ec90bd394c9f47ca67" } } ); // 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 remodela-ai/scaling-model-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "remodela-ai/scaling-model-v2:4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3", input={ "alpha": 0.4, "image": "https://replicate.delivery/pbxt/LxnRpiim9Nhga77C5aqy5SnCMewynyEfS3rnUKU3h4XZiB9b/nitidez.png", "api_key": "19333c9a6ec349ec90bd394c9f47ca67" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run remodela-ai/scaling-model-v2 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": "remodela-ai/scaling-model-v2:4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3", "input": { "alpha": 0.4, "image": "https://replicate.delivery/pbxt/LxnRpiim9Nhga77C5aqy5SnCMewynyEfS3rnUKU3h4XZiB9b/nitidez.png", "api_key": "19333c9a6ec349ec90bd394c9f47ca67" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-13T05:25:53.696086Z", "created_at": "2024-11-13T05:24:21.728000Z", "data_removed": false, "error": null, "id": "vazphjepc1rj00ck4fxb0cnfwr", "input": { "alpha": 0.4, "image": "https://replicate.delivery/pbxt/LxnRpiim9Nhga77C5aqy5SnCMewynyEfS3rnUKU3h4XZiB9b/nitidez.png", "api_key": "19333c9a6ec349ec90bd394c9f47ca67" }, "logs": "2024-11-13 05:25:46.792 | INFO | predict:predict:72 - The image is in PNG format, converting to JPG.\n2024-11-13 05:25:46.844 | INFO | predict:predict:79 - Image successfully converted and saved to 'convert_image.jpg'\n2024-11-13 05:25:46.846 | DEBUG | predict:predict:96 - Image resized and converted to tensor\n2024-11-13 05:25:46.846 | INFO | predict:feed:115 - Starting feed method\n2024-11-13 05:25:47.318 | DEBUG | predict:feed:118 - Model forward pass completed\n2024-11-13 05:25:47.326 | DEBUG | predict:feed:122 - Image labeling completed\n2024-11-13 05:25:47.329 | DEBUG | predict:feed:127 - Image blending completed\n2024-11-13 05:25:47.360 | INFO | predict:feed:133 - Blended image saved to output_image.jpg\n2024-11-13 05:25:47.381 | INFO | predict:feed:140 - Saturation enhanced image saved to output_saturation.jpg\n2024-11-13 05:25:47.382 | INFO | predict:feed:143 - Applying MaskProcessor.filters_colors\n2024-11-13 05:25:47.387 | INFO | predict:feed:147 - Smooth image saved to smooth_output.jpg\n2024-11-13 05:25:47.387 | INFO | predict:feed:150 - Applying SAM model\nimage 1/1 /src/smooth_output.jpg: 1024x1024 1 0, 1 1, 1 2, 1 3, 1 4, 1 5, 1456.7ms\nSpeed: 16.3ms preprocess, 1456.7ms inference, 0.4ms postprocess per image at shape (1, 3, 1024, 1024)\n2024-11-13 05:25:49.089 | INFO | predict:feed:152 - Inference masks of image\n2024-11-13 05:25:49.089 | INFO | predict:feed:156 - Processing 1 inference results and applying MaskProcessor\n2024-11-13 05:25:49.089 | DEBUG | predict:feed:158 - Processing result 1\n2024-11-13 05:25:49.093 | INFO | MaskProcessor:plot_separate_and_joined_masks:50 - Plotting separate and joined masks\n2024-11-13 05:25:49.113 | INFO | MaskProcessor:plot_separate_and_joined_masks:60 - Number of masks: 6\n2024-11-13 05:25:49.113 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:25:49.117 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:25:49.161 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 1\n2024-11-13 05:25:49.162 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:25:49.163 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:25:49.202 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 2\n2024-11-13 05:25:49.202 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:25:49.204 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:25:49.240 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 3\n2024-11-13 05:25:49.240 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:25:49.242 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:25:49.278 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 4\n2024-11-13 05:25:49.278 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:25:49.280 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:25:49.315 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 5\n2024-11-13 05:25:49.315 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:25:49.317 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:25:49.351 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 6\n2024-11-13 05:25:49.391 | INFO | MaskProcessor:save_mask_as_image:44 - Saving mask as image: Joined_Masks_room.png\n2024-11-13 05:25:49.689 | DEBUG | MaskProcessor:save_mask_as_image:47 - Mask saved as Joined_Masks_room.png\n2024-11-13 05:25:49.689 | INFO | MaskProcessor:plot_separate_and_joined_masks:84 - Joined masks plotted successfully\n2024-11-13 05:25:49.692 | INFO | predict:feed:164 - Feed method completed\n2024-11-13 05:25:49.730 | INFO | predict:upload_to_imgbb:19 - Starting the upload process for file: original_pil.jpg\n2024-11-13 05:25:49.731 | DEBUG | predict:upload_to_imgbb:22 - Opened file successfully, sending request to imgBB API.\n2024-11-13 05:25:50.921 | SUCCESS | predict:upload_to_imgbb:34 - Image uploaded successfully to imgBB. URL: https://i.ibb.co/Pjpc5XF/original-pil.jpg\nINFO:httpx:HTTP Request: POST https://api.replicate.com/v1/predictions \"HTTP/1.1 201 Created\"\nINFO:httpx:HTTP Request: GET https://api.replicate.com/v1/models/idea-research/ram-grounded-sam/versions/80a2aede4cf8e3c9f26e96c308d45b23c350dd36f1c381de790715007f1ac0ad \"HTTP/1.1 200 OK\"\n2024-11-13 05:25:53.684 | INFO | predict:predict:108 - Image saved to output_label_image.jpg", "metrics": { "predict_time": 7.213804284, "total_time": 91.968086 }, "output": "https://replicate.delivery/yhqm/ZFUzsXu23Qp2D5HXMpTrYnSNXReho8ZfB4ZDrr6SZc5hpegnA/output_label_image.jpg", "started_at": "2024-11-13T05:25:46.482282Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/qoxq-c2ffvvyhyn57pnps4t5v7gzkjq32lopavjlorlnjep2egg6ogdaq", "get": "https://api.replicate.com/v1/predictions/vazphjepc1rj00ck4fxb0cnfwr", "cancel": "https://api.replicate.com/v1/predictions/vazphjepc1rj00ck4fxb0cnfwr/cancel" }, "version": "4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3" }
Generated in2024-11-13 05:25:46.792 | INFO | predict:predict:72 - The image is in PNG format, converting to JPG. 2024-11-13 05:25:46.844 | INFO | predict:predict:79 - Image successfully converted and saved to 'convert_image.jpg' 2024-11-13 05:25:46.846 | DEBUG | predict:predict:96 - Image resized and converted to tensor 2024-11-13 05:25:46.846 | INFO | predict:feed:115 - Starting feed method 2024-11-13 05:25:47.318 | DEBUG | predict:feed:118 - Model forward pass completed 2024-11-13 05:25:47.326 | DEBUG | predict:feed:122 - Image labeling completed 2024-11-13 05:25:47.329 | DEBUG | predict:feed:127 - Image blending completed 2024-11-13 05:25:47.360 | INFO | predict:feed:133 - Blended image saved to output_image.jpg 2024-11-13 05:25:47.381 | INFO | predict:feed:140 - Saturation enhanced image saved to output_saturation.jpg 2024-11-13 05:25:47.382 | INFO | predict:feed:143 - Applying MaskProcessor.filters_colors 2024-11-13 05:25:47.387 | INFO | predict:feed:147 - Smooth image saved to smooth_output.jpg 2024-11-13 05:25:47.387 | INFO | predict:feed:150 - Applying SAM model image 1/1 /src/smooth_output.jpg: 1024x1024 1 0, 1 1, 1 2, 1 3, 1 4, 1 5, 1456.7ms Speed: 16.3ms preprocess, 1456.7ms inference, 0.4ms postprocess per image at shape (1, 3, 1024, 1024) 2024-11-13 05:25:49.089 | INFO | predict:feed:152 - Inference masks of image 2024-11-13 05:25:49.089 | INFO | predict:feed:156 - Processing 1 inference results and applying MaskProcessor 2024-11-13 05:25:49.089 | DEBUG | predict:feed:158 - Processing result 1 2024-11-13 05:25:49.093 | INFO | MaskProcessor:plot_separate_and_joined_masks:50 - Plotting separate and joined masks 2024-11-13 05:25:49.113 | INFO | MaskProcessor:plot_separate_and_joined_masks:60 - Number of masks: 6 2024-11-13 05:25:49.113 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:25:49.117 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:25:49.161 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 1 2024-11-13 05:25:49.162 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:25:49.163 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:25:49.202 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 2 2024-11-13 05:25:49.202 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:25:49.204 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:25:49.240 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 3 2024-11-13 05:25:49.240 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:25:49.242 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:25:49.278 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 4 2024-11-13 05:25:49.278 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:25:49.280 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:25:49.315 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 5 2024-11-13 05:25:49.315 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:25:49.317 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:25:49.351 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 6 2024-11-13 05:25:49.391 | INFO | MaskProcessor:save_mask_as_image:44 - Saving mask as image: Joined_Masks_room.png 2024-11-13 05:25:49.689 | DEBUG | MaskProcessor:save_mask_as_image:47 - Mask saved as Joined_Masks_room.png 2024-11-13 05:25:49.689 | INFO | MaskProcessor:plot_separate_and_joined_masks:84 - Joined masks plotted successfully 2024-11-13 05:25:49.692 | INFO | predict:feed:164 - Feed method completed 2024-11-13 05:25:49.730 | INFO | predict:upload_to_imgbb:19 - Starting the upload process for file: original_pil.jpg 2024-11-13 05:25:49.731 | DEBUG | predict:upload_to_imgbb:22 - Opened file successfully, sending request to imgBB API. 2024-11-13 05:25:50.921 | SUCCESS | predict:upload_to_imgbb:34 - Image uploaded successfully to imgBB. URL: https://i.ibb.co/Pjpc5XF/original-pil.jpg INFO:httpx:HTTP Request: POST https://api.replicate.com/v1/predictions "HTTP/1.1 201 Created" INFO:httpx:HTTP Request: GET https://api.replicate.com/v1/models/idea-research/ram-grounded-sam/versions/80a2aede4cf8e3c9f26e96c308d45b23c350dd36f1c381de790715007f1ac0ad "HTTP/1.1 200 OK" 2024-11-13 05:25:53.684 | INFO | predict:predict:108 - Image saved to output_label_image.jpg
Prediction
remodela-ai/scaling-model-v2:4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3IDtw7gj5xry1rj60ck4fy8whgs0gStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
{ "alpha": 0.4, "image": "https://replicate.delivery/pbxt/LxnTnoWrQ8iu16scY2o4bBuGV5snz3cwzLW4rWjHQV57qaBF/room1.jpg", "api_key": "19333c9a6ec349ec90bd394c9f47ca67" }
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 remodela-ai/scaling-model-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "remodela-ai/scaling-model-v2:4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3", { input: { alpha: 0.4, image: "https://replicate.delivery/pbxt/LxnTnoWrQ8iu16scY2o4bBuGV5snz3cwzLW4rWjHQV57qaBF/room1.jpg", api_key: "19333c9a6ec349ec90bd394c9f47ca67" } } ); // 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 remodela-ai/scaling-model-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "remodela-ai/scaling-model-v2:4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3", input={ "alpha": 0.4, "image": "https://replicate.delivery/pbxt/LxnTnoWrQ8iu16scY2o4bBuGV5snz3cwzLW4rWjHQV57qaBF/room1.jpg", "api_key": "19333c9a6ec349ec90bd394c9f47ca67" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run remodela-ai/scaling-model-v2 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": "remodela-ai/scaling-model-v2:4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3", "input": { "alpha": 0.4, "image": "https://replicate.delivery/pbxt/LxnTnoWrQ8iu16scY2o4bBuGV5snz3cwzLW4rWjHQV57qaBF/room1.jpg", "api_key": "19333c9a6ec349ec90bd394c9f47ca67" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-13T05:26:29.790654Z", "created_at": "2024-11-13T05:26:25.264000Z", "data_removed": false, "error": null, "id": "tw7gj5xry1rj60ck4fy8whgs0g", "input": { "alpha": 0.4, "image": "https://replicate.delivery/pbxt/LxnTnoWrQ8iu16scY2o4bBuGV5snz3cwzLW4rWjHQV57qaBF/room1.jpg", "api_key": "19333c9a6ec349ec90bd394c9f47ca67" }, "logs": "2024-11-13 05:26:25.587 | INFO | predict:predict:82 - The image is already in JPG format. No conversion needed.\n2024-11-13 05:26:25.588 | DEBUG | predict:predict:96 - Image resized and converted to tensor\n2024-11-13 05:26:25.589 | INFO | predict:feed:115 - Starting feed method\n2024-11-13 05:26:25.597 | DEBUG | predict:feed:118 - Model forward pass completed\n2024-11-13 05:26:25.606 | DEBUG | predict:feed:122 - Image labeling completed\n2024-11-13 05:26:25.607 | DEBUG | predict:feed:127 - Image blending completed\n2024-11-13 05:26:25.612 | INFO | predict:feed:133 - Blended image saved to output_image.jpg\n2024-11-13 05:26:25.617 | INFO | predict:feed:140 - Saturation enhanced image saved to output_saturation.jpg\n2024-11-13 05:26:25.617 | INFO | predict:feed:143 - Applying MaskProcessor.filters_colors\n2024-11-13 05:26:25.618 | INFO | predict:feed:147 - Smooth image saved to smooth_output.jpg\n2024-11-13 05:26:25.619 | INFO | predict:feed:150 - Applying SAM model\nimage 1/1 /src/smooth_output.jpg: 1024x1024 1 0, 1 1, 1 2, 1 3, 1 4, 1 5, 1 6, 1109.9ms\nSpeed: 4.0ms preprocess, 1109.9ms inference, 0.3ms postprocess per image at shape (1, 3, 1024, 1024)\n2024-11-13 05:26:26.737 | INFO | predict:feed:152 - Inference masks of image\n2024-11-13 05:26:26.738 | INFO | predict:feed:156 - Processing 1 inference results and applying MaskProcessor\n2024-11-13 05:26:26.738 | DEBUG | predict:feed:158 - Processing result 1\n2024-11-13 05:26:26.739 | INFO | MaskProcessor:plot_separate_and_joined_masks:50 - Plotting separate and joined masks\n2024-11-13 05:26:26.742 | INFO | MaskProcessor:plot_separate_and_joined_masks:60 - Number of masks: 7\n2024-11-13 05:26:26.742 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:26:26.743 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:26:26.749 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 1\n2024-11-13 05:26:26.750 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:26:26.750 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:26:26.756 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 2\n2024-11-13 05:26:26.756 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:26:26.757 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:26:26.762 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 3\n2024-11-13 05:26:26.763 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:26:26.763 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:26:26.769 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 4\n2024-11-13 05:26:26.770 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:26:26.770 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:26:26.776 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 5\n2024-11-13 05:26:26.777 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:26:26.777 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:26:26.784 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 6\n2024-11-13 05:26:26.784 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:26:26.784 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:26:26.790 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 7\n2024-11-13 05:26:26.797 | INFO | MaskProcessor:save_mask_as_image:44 - Saving mask as image: Joined_Masks_room.png\n2024-11-13 05:26:26.856 | DEBUG | MaskProcessor:save_mask_as_image:47 - Mask saved as Joined_Masks_room.png\n2024-11-13 05:26:26.857 | INFO | MaskProcessor:plot_separate_and_joined_masks:84 - Joined masks plotted successfully\n2024-11-13 05:26:26.857 | INFO | predict:feed:164 - Feed method completed\n2024-11-13 05:26:26.867 | INFO | predict:upload_to_imgbb:19 - Starting the upload process for file: original_pil.jpg\n2024-11-13 05:26:26.867 | DEBUG | predict:upload_to_imgbb:22 - Opened file successfully, sending request to imgBB API.\n2024-11-13 05:26:27.690 | SUCCESS | predict:upload_to_imgbb:34 - Image uploaded successfully to imgBB. URL: https://i.ibb.co/n64DrRQ/original-pil.jpg\nINFO:httpx:HTTP Request: POST https://api.replicate.com/v1/predictions \"HTTP/1.1 201 Created\"\nINFO:httpx:HTTP Request: GET https://api.replicate.com/v1/models/idea-research/ram-grounded-sam/versions/80a2aede4cf8e3c9f26e96c308d45b23c350dd36f1c381de790715007f1ac0ad \"HTTP/1.1 200 OK\"\n2024-11-13 05:26:29.782 | INFO | predict:predict:108 - Image saved to output_label_image.jpg", "metrics": { "predict_time": 4.517541782, "total_time": 4.526654 }, "output": "https://replicate.delivery/yhqm/3uMUCJKpWA48K92aW2rOd2l4VfGe3oA0ZcFxEXeMj31LU9gnA/output_label_image.jpg", "started_at": "2024-11-13T05:26:25.273113Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/qoxq-n6y65y2mvuppluq33mpgyq3f66garkf3a4awxcwfcbtbywtljg7a", "get": "https://api.replicate.com/v1/predictions/tw7gj5xry1rj60ck4fy8whgs0g", "cancel": "https://api.replicate.com/v1/predictions/tw7gj5xry1rj60ck4fy8whgs0g/cancel" }, "version": "4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3" }
Generated in2024-11-13 05:26:25.587 | INFO | predict:predict:82 - The image is already in JPG format. No conversion needed. 2024-11-13 05:26:25.588 | DEBUG | predict:predict:96 - Image resized and converted to tensor 2024-11-13 05:26:25.589 | INFO | predict:feed:115 - Starting feed method 2024-11-13 05:26:25.597 | DEBUG | predict:feed:118 - Model forward pass completed 2024-11-13 05:26:25.606 | DEBUG | predict:feed:122 - Image labeling completed 2024-11-13 05:26:25.607 | DEBUG | predict:feed:127 - Image blending completed 2024-11-13 05:26:25.612 | INFO | predict:feed:133 - Blended image saved to output_image.jpg 2024-11-13 05:26:25.617 | INFO | predict:feed:140 - Saturation enhanced image saved to output_saturation.jpg 2024-11-13 05:26:25.617 | INFO | predict:feed:143 - Applying MaskProcessor.filters_colors 2024-11-13 05:26:25.618 | INFO | predict:feed:147 - Smooth image saved to smooth_output.jpg 2024-11-13 05:26:25.619 | INFO | predict:feed:150 - Applying SAM model image 1/1 /src/smooth_output.jpg: 1024x1024 1 0, 1 1, 1 2, 1 3, 1 4, 1 5, 1 6, 1109.9ms Speed: 4.0ms preprocess, 1109.9ms inference, 0.3ms postprocess per image at shape (1, 3, 1024, 1024) 2024-11-13 05:26:26.737 | INFO | predict:feed:152 - Inference masks of image 2024-11-13 05:26:26.738 | INFO | predict:feed:156 - Processing 1 inference results and applying MaskProcessor 2024-11-13 05:26:26.738 | DEBUG | predict:feed:158 - Processing result 1 2024-11-13 05:26:26.739 | INFO | MaskProcessor:plot_separate_and_joined_masks:50 - Plotting separate and joined masks 2024-11-13 05:26:26.742 | INFO | MaskProcessor:plot_separate_and_joined_masks:60 - Number of masks: 7 2024-11-13 05:26:26.742 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:26:26.743 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:26:26.749 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 1 2024-11-13 05:26:26.750 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:26:26.750 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:26:26.756 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 2 2024-11-13 05:26:26.756 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:26:26.757 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:26:26.762 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 3 2024-11-13 05:26:26.763 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:26:26.763 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:26:26.769 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 4 2024-11-13 05:26:26.770 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:26:26.770 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:26:26.776 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 5 2024-11-13 05:26:26.777 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:26:26.777 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:26:26.784 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 6 2024-11-13 05:26:26.784 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:26:26.784 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:26:26.790 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 7 2024-11-13 05:26:26.797 | INFO | MaskProcessor:save_mask_as_image:44 - Saving mask as image: Joined_Masks_room.png 2024-11-13 05:26:26.856 | DEBUG | MaskProcessor:save_mask_as_image:47 - Mask saved as Joined_Masks_room.png 2024-11-13 05:26:26.857 | INFO | MaskProcessor:plot_separate_and_joined_masks:84 - Joined masks plotted successfully 2024-11-13 05:26:26.857 | INFO | predict:feed:164 - Feed method completed 2024-11-13 05:26:26.867 | INFO | predict:upload_to_imgbb:19 - Starting the upload process for file: original_pil.jpg 2024-11-13 05:26:26.867 | DEBUG | predict:upload_to_imgbb:22 - Opened file successfully, sending request to imgBB API. 2024-11-13 05:26:27.690 | SUCCESS | predict:upload_to_imgbb:34 - Image uploaded successfully to imgBB. URL: https://i.ibb.co/n64DrRQ/original-pil.jpg INFO:httpx:HTTP Request: POST https://api.replicate.com/v1/predictions "HTTP/1.1 201 Created" INFO:httpx:HTTP Request: GET https://api.replicate.com/v1/models/idea-research/ram-grounded-sam/versions/80a2aede4cf8e3c9f26e96c308d45b23c350dd36f1c381de790715007f1ac0ad "HTTP/1.1 200 OK" 2024-11-13 05:26:29.782 | INFO | predict:predict:108 - Image saved to output_label_image.jpg
Prediction
remodela-ai/scaling-model-v2:4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3ID6kn0cfm27nrj40ck4fyts5yq5gStatusSucceededSourceWebHardwareA100 (80GB)Total durationCreatedInput
{ "alpha": 0.4, "image": "https://replicate.delivery/pbxt/LxnUdF2r93I3YREUlUQE1q99EgyLSHkRqCA0yCL74SWdNJ3J/room3.jpg", "api_key": "19333c9a6ec349ec90bd394c9f47ca67" }
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 remodela-ai/scaling-model-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "remodela-ai/scaling-model-v2:4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3", { input: { alpha: 0.4, image: "https://replicate.delivery/pbxt/LxnUdF2r93I3YREUlUQE1q99EgyLSHkRqCA0yCL74SWdNJ3J/room3.jpg", api_key: "19333c9a6ec349ec90bd394c9f47ca67" } } ); // 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 remodela-ai/scaling-model-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "remodela-ai/scaling-model-v2:4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3", input={ "alpha": 0.4, "image": "https://replicate.delivery/pbxt/LxnUdF2r93I3YREUlUQE1q99EgyLSHkRqCA0yCL74SWdNJ3J/room3.jpg", "api_key": "19333c9a6ec349ec90bd394c9f47ca67" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run remodela-ai/scaling-model-v2 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": "remodela-ai/scaling-model-v2:4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3", "input": { "alpha": 0.4, "image": "https://replicate.delivery/pbxt/LxnUdF2r93I3YREUlUQE1q99EgyLSHkRqCA0yCL74SWdNJ3J/room3.jpg", "api_key": "19333c9a6ec349ec90bd394c9f47ca67" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-13T05:27:21.858225Z", "created_at": "2024-11-13T05:27:16.797000Z", "data_removed": false, "error": null, "id": "6kn0cfm27nrj40ck4fyts5yq5g", "input": { "alpha": 0.4, "image": "https://replicate.delivery/pbxt/LxnUdF2r93I3YREUlUQE1q99EgyLSHkRqCA0yCL74SWdNJ3J/room3.jpg", "api_key": "19333c9a6ec349ec90bd394c9f47ca67" }, "logs": "2024-11-13 05:27:17.092 | INFO | predict:predict:82 - The image is already in JPG format. No conversion needed.\n2024-11-13 05:27:17.094 | DEBUG | predict:predict:96 - Image resized and converted to tensor\n2024-11-13 05:27:17.094 | INFO | predict:feed:115 - Starting feed method\n2024-11-13 05:27:17.103 | DEBUG | predict:feed:118 - Model forward pass completed\n2024-11-13 05:27:17.110 | DEBUG | predict:feed:122 - Image labeling completed\n2024-11-13 05:27:17.111 | DEBUG | predict:feed:127 - Image blending completed\n2024-11-13 05:27:17.122 | INFO | predict:feed:133 - Blended image saved to output_image.jpg\n2024-11-13 05:27:17.134 | INFO | predict:feed:140 - Saturation enhanced image saved to output_saturation.jpg\n2024-11-13 05:27:17.134 | INFO | predict:feed:143 - Applying MaskProcessor.filters_colors\n2024-11-13 05:27:17.136 | INFO | predict:feed:147 - Smooth image saved to smooth_output.jpg\n2024-11-13 05:27:17.137 | INFO | predict:feed:150 - Applying SAM model\nimage 1/1 /src/smooth_output.jpg: 1024x1024 1 0, 1 1, 1 2, 1 3, 1 4, 1 5, 1 6, 1 7, 1118.9ms\nSpeed: 4.6ms preprocess, 1118.9ms inference, 0.3ms postprocess per image at shape (1, 3, 1024, 1024)\n2024-11-13 05:27:18.267 | INFO | predict:feed:152 - Inference masks of image\n2024-11-13 05:27:18.267 | INFO | predict:feed:156 - Processing 1 inference results and applying MaskProcessor\n2024-11-13 05:27:18.268 | DEBUG | predict:feed:158 - Processing result 1\n2024-11-13 05:27:18.269 | INFO | MaskProcessor:plot_separate_and_joined_masks:50 - Plotting separate and joined masks\n2024-11-13 05:27:18.273 | INFO | MaskProcessor:plot_separate_and_joined_masks:60 - Number of masks: 8\n2024-11-13 05:27:18.273 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:27:18.274 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:27:18.292 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 1\n2024-11-13 05:27:18.292 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:27:18.293 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:27:18.310 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 2\n2024-11-13 05:27:18.310 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:27:18.311 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:27:18.331 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 3\n2024-11-13 05:27:18.332 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:27:18.333 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:27:18.349 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 4\n2024-11-13 05:27:18.349 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:27:18.350 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:27:18.366 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 5\n2024-11-13 05:27:18.366 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:27:18.368 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:27:18.383 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 6\n2024-11-13 05:27:18.383 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:27:18.385 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:27:18.397 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 7\n2024-11-13 05:27:18.397 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges\n2024-11-13 05:27:18.398 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges\n2024-11-13 05:27:18.411 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 8\n2024-11-13 05:27:18.431 | INFO | MaskProcessor:save_mask_as_image:44 - Saving mask as image: Joined_Masks_room.png\n2024-11-13 05:27:18.624 | DEBUG | MaskProcessor:save_mask_as_image:47 - Mask saved as Joined_Masks_room.png\n2024-11-13 05:27:18.624 | INFO | MaskProcessor:plot_separate_and_joined_masks:84 - Joined masks plotted successfully\n2024-11-13 05:27:18.624 | INFO | predict:feed:164 - Feed method completed\n2024-11-13 05:27:18.645 | INFO | predict:upload_to_imgbb:19 - Starting the upload process for file: original_pil.jpg\n2024-11-13 05:27:18.645 | DEBUG | predict:upload_to_imgbb:22 - Opened file successfully, sending request to imgBB API.\n2024-11-13 05:27:19.763 | SUCCESS | predict:upload_to_imgbb:34 - Image uploaded successfully to imgBB. URL: https://i.ibb.co/K9yNfvz/original-pil.jpg\nINFO:httpx:HTTP Request: POST https://api.replicate.com/v1/predictions \"HTTP/1.1 201 Created\"\nINFO:httpx:HTTP Request: GET https://api.replicate.com/v1/models/idea-research/ram-grounded-sam/versions/80a2aede4cf8e3c9f26e96c308d45b23c350dd36f1c381de790715007f1ac0ad \"HTTP/1.1 200 OK\"\n2024-11-13 05:27:21.850 | INFO | predict:predict:108 - Image saved to output_label_image.jpg", "metrics": { "predict_time": 5.053119214, "total_time": 5.061225 }, "output": "https://replicate.delivery/yhqm/esR3oMboHy1PBKDHtyQ3MdaGrrkxxGwKeobVsbu4YwK5qegnA/output_label_image.jpg", "started_at": "2024-11-13T05:27:16.805106Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/qoxq-yljbxodz27vaxqv4llci3on4hclj4q4a32uaq3qerumojmcy6c3q", "get": "https://api.replicate.com/v1/predictions/6kn0cfm27nrj40ck4fyts5yq5g", "cancel": "https://api.replicate.com/v1/predictions/6kn0cfm27nrj40ck4fyts5yq5g/cancel" }, "version": "4c520357410cd8fc0bfee3b8688e47f215318d0faa717fdcb9fa5ffbe90602e3" }
Generated in2024-11-13 05:27:17.092 | INFO | predict:predict:82 - The image is already in JPG format. No conversion needed. 2024-11-13 05:27:17.094 | DEBUG | predict:predict:96 - Image resized and converted to tensor 2024-11-13 05:27:17.094 | INFO | predict:feed:115 - Starting feed method 2024-11-13 05:27:17.103 | DEBUG | predict:feed:118 - Model forward pass completed 2024-11-13 05:27:17.110 | DEBUG | predict:feed:122 - Image labeling completed 2024-11-13 05:27:17.111 | DEBUG | predict:feed:127 - Image blending completed 2024-11-13 05:27:17.122 | INFO | predict:feed:133 - Blended image saved to output_image.jpg 2024-11-13 05:27:17.134 | INFO | predict:feed:140 - Saturation enhanced image saved to output_saturation.jpg 2024-11-13 05:27:17.134 | INFO | predict:feed:143 - Applying MaskProcessor.filters_colors 2024-11-13 05:27:17.136 | INFO | predict:feed:147 - Smooth image saved to smooth_output.jpg 2024-11-13 05:27:17.137 | INFO | predict:feed:150 - Applying SAM model image 1/1 /src/smooth_output.jpg: 1024x1024 1 0, 1 1, 1 2, 1 3, 1 4, 1 5, 1 6, 1 7, 1118.9ms Speed: 4.6ms preprocess, 1118.9ms inference, 0.3ms postprocess per image at shape (1, 3, 1024, 1024) 2024-11-13 05:27:18.267 | INFO | predict:feed:152 - Inference masks of image 2024-11-13 05:27:18.267 | INFO | predict:feed:156 - Processing 1 inference results and applying MaskProcessor 2024-11-13 05:27:18.268 | DEBUG | predict:feed:158 - Processing result 1 2024-11-13 05:27:18.269 | INFO | MaskProcessor:plot_separate_and_joined_masks:50 - Plotting separate and joined masks 2024-11-13 05:27:18.273 | INFO | MaskProcessor:plot_separate_and_joined_masks:60 - Number of masks: 8 2024-11-13 05:27:18.273 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:27:18.274 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:27:18.292 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 1 2024-11-13 05:27:18.292 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:27:18.293 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:27:18.310 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 2 2024-11-13 05:27:18.310 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:27:18.311 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:27:18.331 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 3 2024-11-13 05:27:18.332 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:27:18.333 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:27:18.349 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 4 2024-11-13 05:27:18.349 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:27:18.350 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:27:18.366 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 5 2024-11-13 05:27:18.366 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:27:18.368 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:27:18.383 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 6 2024-11-13 05:27:18.383 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:27:18.385 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:27:18.397 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 7 2024-11-13 05:27:18.397 | INFO | MaskProcessor:convert_mask_to_linear_edges:30 - Converting mask to linear edges 2024-11-13 05:27:18.398 | DEBUG | MaskProcessor:convert_mask_to_linear_edges:40 - Mask converted to linear edges 2024-11-13 05:27:18.411 | DEBUG | MaskProcessor:plot_separate_and_joined_masks:79 - Processed mask 8 2024-11-13 05:27:18.431 | INFO | MaskProcessor:save_mask_as_image:44 - Saving mask as image: Joined_Masks_room.png 2024-11-13 05:27:18.624 | DEBUG | MaskProcessor:save_mask_as_image:47 - Mask saved as Joined_Masks_room.png 2024-11-13 05:27:18.624 | INFO | MaskProcessor:plot_separate_and_joined_masks:84 - Joined masks plotted successfully 2024-11-13 05:27:18.624 | INFO | predict:feed:164 - Feed method completed 2024-11-13 05:27:18.645 | INFO | predict:upload_to_imgbb:19 - Starting the upload process for file: original_pil.jpg 2024-11-13 05:27:18.645 | DEBUG | predict:upload_to_imgbb:22 - Opened file successfully, sending request to imgBB API. 2024-11-13 05:27:19.763 | SUCCESS | predict:upload_to_imgbb:34 - Image uploaded successfully to imgBB. URL: https://i.ibb.co/K9yNfvz/original-pil.jpg INFO:httpx:HTTP Request: POST https://api.replicate.com/v1/predictions "HTTP/1.1 201 Created" INFO:httpx:HTTP Request: GET https://api.replicate.com/v1/models/idea-research/ram-grounded-sam/versions/80a2aede4cf8e3c9f26e96c308d45b23c350dd36f1c381de790715007f1ac0ad "HTTP/1.1 200 OK" 2024-11-13 05:27:21.850 | INFO | predict:predict:108 - Image saved to output_label_image.jpg
Want to make some of these yourself?
Run this model