andreasjansson / clip-features

Return CLIP features for the clip-vit-large-patch14 model

replicate.com
Total runs: 83.4M
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Github
Model's Last Updated: March 06 2023

Introduction of clip-features

Model Details of clip-features

Readme

Cog model that outputs clip-vit-large-patch14 features for text and images.

Run with the API:

import replicate
import numpy as np
from numpy.linalg import norm

def cos_sim(a, b):
    return np.dot(a, b) / (norm(a) * norm(b))

inputs = """
a photo of a dog
a cat
two cats with remote controls
https://replicate.com/api/models/cjwbw/clip-vit-large-patch14/files/36b04aec-efe2-4dea-9c9d-a5faca68b2b2/000000039769.jpg
"""

# run prediction
model = replicate.models.get("andreasjansson/clip-features")
outputs = model.predict(inputs=inputs)

# output similarity of the three text lines with the image on line 4
for i in range(3):
    print(outputs[i]["input"])
    print(cos_sim(outputs[i]["embedding"], outputs[3]["embedding"]))
    print()
"""

# run prediction
model = replicate.models.get("andreasjansson/clip-features")
outputs = model.predict(inputs=inputs)

# output similarity of the three text lines with the image on line 4
for i in range(3):
    print(outputs[i].input)
    print(cos_sim(outputs[i].embedding, outputs[3].embedding))
    print()

Pricing of clip-features replicate.com

Run time and cost

This model costs approximately $0.00022 to run on Replicate, or 4545 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker .

This model runs on Nvidia T4 GPU hardware . Predictions typically complete within 1 seconds.

Runs of andreasjansson clip-features on replicate.com

83.4M
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About clip-features replicate.com Model

clip-features replicate.com

clip-features replicate.com is an AI model on replicate.com that provides clip-features's model effect (Return CLIP features for the clip-vit-large-patch14 model), which can be used instantly with this andreasjansson clip-features model. replicate.com supports a free trial of the clip-features model, and also provides paid use of the clip-features. Support call clip-features model through api, including Node.js, Python, http.

andreasjansson clip-features online free

clip-features replicate.com is an online trial and call api platform, which integrates clip-features's modeling effects, including api services, and provides a free online trial of clip-features, you can try clip-features online for free by clicking the link below.

andreasjansson clip-features online free url in replicate.com:

https://replicate.com/andreasjansson/clip-features

clip-features install

clip-features is an open source model from GitHub that offers a free installation service, and any user can find clip-features on GitHub to install. At the same time, replicate.com provides the effect of clip-features install, users can directly use clip-features installed effect in replicate.com for debugging and trial. It also supports api for free installation.

clip-features install url in replicate.com:

https://replicate.com/andreasjansson/clip-features

clip-features install url in github:

https://github.com/andreasjansson/cog-clip

Url of clip-features

Provider of clip-features replicate.com

Other API from andreasjansson

replicate

Answers questions about images

Total runs: 29.6M
Run Growth: 0
Growth Rate: 0.00%
Updated:November 21 2023
replicate

The DeepFloyd IF model has been initially released as a non-commercial research-only model. Please make sure you read and abide to the license before using it.

Total runs: 2.0M
Run Growth: 0
Growth Rate: 0.00%
Updated:April 29 2023
replicate

Create tileable animations with seamless transitions

Total runs: 529.1K
Run Growth: 0
Growth Rate: 0.00%
Updated:February 13 2023
replicate

Monster Labs' control_v1p_sd15_qrcode_monster ControlNet on top of SD 1.5

Total runs: 402.0K
Run Growth: 0
Growth Rate: 0.00%
Updated:September 18 2023
replicate

Stable Diffusion fined-tuned on frames from Monkey Island 1 and 2

Total runs: 2.4K
Run Growth: 0
Growth Rate: 0.00%
Updated:November 02 2022
replicate

Suite of models to evaluate the image quality of text-to-image models with respect to their input prompts.

Total runs: 1.9K
Run Growth: 0
Growth Rate: 0.00%
Updated:October 15 2024
replicate

FLUX.1 [dev] trained on the Replicate goo

Total runs: 1.3K
Run Growth: 0
Growth Rate: 0.00%
Updated:August 23 2024
replicate

An open-source model for program synthesis. Competitive with OpenAI Codex.

Total runs: 1.1K
Run Growth: 0
Growth Rate: 0.00%
Updated:May 25 2022
replicate

Flux LoRA trained on generated images of random shapes

Total runs: 897
Run Growth: 0
Growth Rate: 0.00%
Updated:August 22 2024
replicate

Llama-2 13B with support for grammars and jsonschema

Total runs: 748
Run Growth: 0
Growth Rate: 0.00%
Updated:September 20 2023
replicate

Monkey Island database for Retrieval-augmented Diffusion model

Total runs: 622
Run Growth: 0
Growth Rate: 0.00%
Updated:August 20 2022
replicate

Generate plasma shader equations

Total runs: 466
Run Growth: 0
Growth Rate: 0.00%
Updated:December 06 2023
replicate

Implicit neural differentiable FM synthesizer

Total runs: 390
Run Growth: 0
Growth Rate: 0.00%
Updated:October 28 2022
replicate

Generate music based on the Monkey Island theme using the FIGARO model

Total runs: 305
Run Growth: 0
Growth Rate: 0.00%
Updated:August 20 2022
replicate

Image similarity metric that that compares a reference image to a set of images.

Total runs: 299
Run Growth: 0
Growth Rate: 0.00%
Updated:October 15 2024
replicate

Generate "algorithmic symphony" one-liners with grammar-constrained CodeLlama

Total runs: 205
Run Growth: 0
Growth Rate: 0.00%
Updated:September 18 2023
replicate

Inpainting and video2video experiments with Wan 2.1

Total runs: 171
Run Growth: 0
Growth Rate: 0.00%
Updated:March 11 2025
replicate

Random rectangles, ellipses, lines, in random colors

Total runs: 87
Run Growth: 0
Growth Rate: 0.00%
Updated:August 22 2024