Ahmad Mustafa Anis

Results 17 issues of Ahmad Mustafa Anis

How can I improve the Speed of my CLIP model in Batch Processing. Minimum Code: ```python3 tokenized_text = clip.tokenize(classes_descriptions).to(clip_device) pre_processed_imgs = [preprocess(Image.fromarray(cv2.cvtColor(im, cv2.COLOR_BGR2RGB))) for im in batch] logits_per_image, logits_per_text =...

code: ``` import torch from diffusers import StableDiffusionXLPipeline from PIL import Image from ip_adapter import IPAdapterXL base_model_path = "stabilityai/stable-diffusion-xl-base-1.0" image_encoder_path = "sdxl_models/image_encoder" ip_ckpt = "sdxl_models/ip-adapter_sdxl.bin" device = "cuda" # load...

Code: ``` from unsloth import FastLanguageModel import torch max_seq_length = 4096 # Choose any! We auto support RoPE Scaling internally! dtype = None # None for auto detection. Float16 for...

hi, i see the evaluation/testing code but how can i run the pretrained model on a single video?

How can I run it on a single video?

I want to ask, if there is any way to suppress a model. i.e My model is ``` class SiameseNetwork(nn.Module): def __init__(self): super(SiameseNetwork, self).__init__() # Setting up the Sequential of...

Great work. When can we expect the code release?