Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
yosun /a100-shap-e:713768a1
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export 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 yosun/a100-shap-e using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"yosun/a100-shap-e:713768a1142668b96c8552bbf47ef2b68898cf2455d78a378356ca84aee2135a",
{
input: {
prompt: "superhuman",
save_mesh: true,
batch_size: 1,
render_mode: "nerf",
render_size: 128,
guidance_scale: 15
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run yosun/a100-shap-e using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"yosun/a100-shap-e:713768a1142668b96c8552bbf47ef2b68898cf2455d78a378356ca84aee2135a",
input={
"prompt": "superhuman",
"save_mesh": True,
"batch_size": 1,
"render_mode": "nerf",
"render_size": 128,
"guidance_scale": 15
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run yosun/a100-shap-e 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": "yosun/a100-shap-e:713768a1142668b96c8552bbf47ef2b68898cf2455d78a378356ca84aee2135a",
"input": {
"prompt": "superhuman",
"save_mesh": true,
"batch_size": 1,
"render_mode": "nerf",
"render_size": 128,
"guidance_scale": 15
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-03-15T05:35:51.634931Z",
"created_at": "2024-03-15T05:31:59.704065Z",
"data_removed": false,
"error": null,
"id": "2mqcvdzbyaozk4c4a2vmglc5g4",
"input": {
"prompt": "superhuman",
"save_mesh": true,
"batch_size": 1,
"render_mode": "nerf",
"render_size": 128,
"guidance_scale": 15
},
"logs": "0%| | 0/64 [00:00<?, ?it/s]\n 3%|▎ | 2/64 [00:00<00:05, 11.59it/s]\n 6%|▋ | 4/64 [00:00<00:04, 12.75it/s]\n 9%|▉ | 6/64 [00:00<00:04, 13.18it/s]\n 12%|█▎ | 8/64 [00:00<00:04, 13.38it/s]\n 16%|█▌ | 10/64 [00:00<00:03, 13.50it/s]\n 19%|█▉ | 12/64 [00:00<00:03, 13.35it/s]\n 22%|██▏ | 14/64 [00:01<00:03, 13.48it/s]\n 25%|██▌ | 16/64 [00:01<00:03, 13.54it/s]\n 28%|██▊ | 18/64 [00:01<00:03, 13.59it/s]\n 31%|███▏ | 20/64 [00:01<00:03, 13.63it/s]\n 34%|███▍ | 22/64 [00:01<00:03, 13.66it/s]\n 38%|███▊ | 24/64 [00:01<00:02, 13.66it/s]\n 41%|████ | 26/64 [00:01<00:02, 13.53it/s]\n 44%|████▍ | 28/64 [00:02<00:02, 13.60it/s]\n 47%|████▋ | 30/64 [00:02<00:02, 13.65it/s]\n 50%|█████ | 32/64 [00:02<00:02, 13.67it/s]\n 53%|█████▎ | 34/64 [00:02<00:02, 13.68it/s]\n 56%|█████▋ | 36/64 [00:02<00:02, 13.69it/s]\n 59%|█████▉ | 38/64 [00:02<00:01, 13.70it/s]\n 62%|██████▎ | 40/64 [00:02<00:01, 13.61it/s]\n 66%|██████▌ | 42/64 [00:03<00:01, 13.66it/s]\n 69%|██████▉ | 44/64 [00:03<00:01, 13.69it/s]\n 72%|███████▏ | 46/64 [00:03<00:01, 13.70it/s]\n 75%|███████▌ | 48/64 [00:03<00:01, 13.65it/s]\n 78%|███████▊ | 50/64 [00:03<00:01, 13.68it/s]\n 81%|████████▏ | 52/64 [00:03<00:00, 13.71it/s]\n 84%|████████▍ | 54/64 [00:03<00:00, 13.60it/s]\n 88%|████████▊ | 56/64 [00:04<00:00, 13.66it/s]\n 91%|█████████ | 58/64 [00:04<00:00, 13.65it/s]\n 94%|█████████▍| 60/64 [00:04<00:00, 13.71it/s]\n 97%|█████████▋| 62/64 [00:04<00:00, 13.74it/s]\n100%|██████████| 64/64 [00:04<00:00, 14.87it/s]\n100%|██████████| 64/64 [00:04<00:00, 13.70it/s]\n/src/shap_e/models/stf/renderer.py:286: UserWarning: exception rendering with PyTorch3D: No module named 'pytorch3d'\nwarnings.warn(f\"exception rendering with PyTorch3D: {exc}\")\n/src/shap_e/models/stf/renderer.py:287: UserWarning: falling back on native PyTorch renderer, which does not support full gradients\nwarnings.warn(",
"metrics": {
"predict_time": 14.72322,
"total_time": 231.930866
},
"output": [
"https://replicate.delivery/pbxt/B59iKIoejn0vHyl1p8pV9BUs1gyuAQ88qWwi2acBklf3AZgSA/out_0.gif",
"https://replicate.delivery/pbxt/ZOuqWM4pLXaiPd4jYcgu1WtnXbAE4jrfNUqiIA45CU6bgMQJA/mesh_0.obj"
],
"started_at": "2024-03-15T05:35:36.911711Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/2mqcvdzbyaozk4c4a2vmglc5g4",
"cancel": "https://api.replicate.com/v1/predictions/2mqcvdzbyaozk4c4a2vmglc5g4/cancel"
},
"version": "713768a1142668b96c8552bbf47ef2b68898cf2455d78a378356ca84aee2135a"
}
0%| | 0/64 [00:00<?, ?it/s]
3%|▎ | 2/64 [00:00<00:05, 11.59it/s]
6%|▋ | 4/64 [00:00<00:04, 12.75it/s]
9%|▉ | 6/64 [00:00<00:04, 13.18it/s]
12%|█▎ | 8/64 [00:00<00:04, 13.38it/s]
16%|█▌ | 10/64 [00:00<00:03, 13.50it/s]
19%|█▉ | 12/64 [00:00<00:03, 13.35it/s]
22%|██▏ | 14/64 [00:01<00:03, 13.48it/s]
25%|██▌ | 16/64 [00:01<00:03, 13.54it/s]
28%|██▊ | 18/64 [00:01<00:03, 13.59it/s]
31%|███▏ | 20/64 [00:01<00:03, 13.63it/s]
34%|███▍ | 22/64 [00:01<00:03, 13.66it/s]
38%|███▊ | 24/64 [00:01<00:02, 13.66it/s]
41%|████ | 26/64 [00:01<00:02, 13.53it/s]
44%|████▍ | 28/64 [00:02<00:02, 13.60it/s]
47%|████▋ | 30/64 [00:02<00:02, 13.65it/s]
50%|█████ | 32/64 [00:02<00:02, 13.67it/s]
53%|█████▎ | 34/64 [00:02<00:02, 13.68it/s]
56%|█████▋ | 36/64 [00:02<00:02, 13.69it/s]
59%|█████▉ | 38/64 [00:02<00:01, 13.70it/s]
62%|██████▎ | 40/64 [00:02<00:01, 13.61it/s]
66%|██████▌ | 42/64 [00:03<00:01, 13.66it/s]
69%|██████▉ | 44/64 [00:03<00:01, 13.69it/s]
72%|███████▏ | 46/64 [00:03<00:01, 13.70it/s]
75%|███████▌ | 48/64 [00:03<00:01, 13.65it/s]
78%|███████▊ | 50/64 [00:03<00:01, 13.68it/s]
81%|████████▏ | 52/64 [00:03<00:00, 13.71it/s]
84%|████████▍ | 54/64 [00:03<00:00, 13.60it/s]
88%|████████▊ | 56/64 [00:04<00:00, 13.66it/s]
91%|█████████ | 58/64 [00:04<00:00, 13.65it/s]
94%|█████████▍| 60/64 [00:04<00:00, 13.71it/s]
97%|█████████▋| 62/64 [00:04<00:00, 13.74it/s]
100%|██████████| 64/64 [00:04<00:00, 14.87it/s]
100%|██████████| 64/64 [00:04<00:00, 13.70it/s]
/src/shap_e/models/stf/renderer.py:286: UserWarning: exception rendering with PyTorch3D: No module named 'pytorch3d'
warnings.warn(f"exception rendering with PyTorch3D: {exc}")
/src/shap_e/models/stf/renderer.py:287: UserWarning: falling back on native PyTorch renderer, which does not support full gradients
warnings.warn(