Downloads · 30 days
0
NagaSaiAbhinay/CycleReward-Combo
CycleReward-Combo is a machine learning model from NagaSaiAbhinay. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for imscore.
Downloads · 30 days
0
Access
Public
Updated Jun 11, 2025
Parameters
447M
1.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.8 GB · 100%
How the weights are stored.
F32447M · 100%
From the Hugging Face model README
port of cyclereward
There are three variants of the CycleReward model:
This model has been pushed to the Hub using the PytorchModelHubMixin integration:
To use this model:
pip install git+https://github.com/Abhinay1997/imscore@cyclereward
from imscore.cyclereward.model import CycleReward
available_models = ["NagaSaiAbhinay/CycleReward-Combo" "NagaSaiAbhinay/CycleReward-T2I", "NagaSaiAbhinay/CycleReward-I2T"]
model_id = available_models[0]
model = CycleReward.from_pretrained(model_id)
prompts = "a photo of a cat"
pixels = Image.open("cat.jpg")
pixels = np.array(pixels)
pixels = rearrange(torch.tensor(pixels), "h w c -> 1 c h w") / 255.0
# prompts and pixels should have the same batch dimension
# pixels should be in the range [0, 1]
# score == logits
score = model.score(pixels, prompts) # full differentiable reward)