mirror of
https://github.com/openai/CLIP.git
synced 2026-11-05 01:37:26 +00:00
[GH-ISSUE #286] clip prepross output one same value #249
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openai/CLIP#249
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SCAUapc on GitHub (Sep 2, 2022).
Original GitHub issue: https://github.com/openai/CLIP/issues/286
Hi, I use clip prepross, and find that it output the same value on the same RGB dim.
`import torch
import clip
from PIL import Image
device = "cuda:2" if torch.cuda.is_available() else "cpu" # If using GPU then use mixed precision training.
model, preprocess = clip.load("ViT-B/32",device=device,jit=False) #Must set jit=False for training
print(preprocess(Image.open("./data/self_data/meme_set/1002.jpeg")))
tensor([[[1.9303, 1.9303, 1.9303, ..., 1.9303, 1.9303, 1.9303],
[1.9303, 1.9303, 1.9303, ..., 1.9303, 1.9303, 1.9303],
[1.9303, 1.9303, 1.9303, ..., 1.9303, 1.9303, 1.9303],
...,
[1.9303, 1.9303, 1.9303, ..., 1.9303, 1.9303, 1.9303],
[1.9303, 1.9303, 1.9303, ..., 1.9303, 1.9303, 1.9303],
[1.9303, 1.9303, 1.9303, ..., 1.9303, 1.9303, 1.9303]],
`
It make train impossible, can everybody help me? thanks.
@SCAUapc commented on GitHub (Sep 2, 2022):
maybe it's because my data is always with same colour