nightingale01

Results 12 issues of nightingale01

### Describe the bug Hi I have the following directory structure: |--dataset | |-- images | |-- metadata1000.csv | |-- metadata1000.jsonl | |-- padded_images Example of metadata1000.jsonl file {"caption": "a...

Hi the Chunk size in python_coreml_stable_diffusion/attention.py is 512 only for 512x 512? How to change it for arbitrary resolution? I know its based on the sequence length but any reason...

@LowerComplex.register_lower_func(op_type="complex_real") def _lower_complex_real(op: Operation): complex_input: ComplexVar = op.data # Use an identity op to avoid the block's input name inconsistency issue. If we directly use # complex_input.real, the var's name...

feature request

@register_torch_op(torch_alias=["unsqueeze_copy"]) def unsqueeze(context, node): inputs = _get_inputs(context, node, expected=2) unsqueeze = mb.expand_dims(x=inputs[0], axes=[inputs[1].val], name=node.name) context.add(unsqueeze) also ValueError: Op "1298" (op_type: expand_dims) Input x="freqs_cis.1" expects tensor or scalar of dtype from...

feature request

## 🌱 Describe your Feature Request - having support for converting torch.polar to MIL will allow using RoPE embeddings which is fairly common now days currently get this issue:RuntimeError: PyTorch...

feature request
triaged

### Describe the bug batched diffusers pipeline inference is really slow ### Reproduction ``` class prompt_data(Dataset): def __init__(self,prompt_file): self.txt_prompts = [] with open(prompt_file,'r') as file:self.txt_prompts = file.readlines() def __len__(self): return...

bug

chunk unet does not work with coremltool>7.1 due to missing CacheDoublyLinkedList attribute index

## 🐞Describing the bug with reference to this issue https://github.com/apple/ml-stable-diffusion/issues/353, i used the bisect_model() function to split a quantized model into 2 chunks, i tried with 7.1 and 7.0 with...

bug

## 🌱 Describe your Feature Request support torch.nn.function.grid_sample for 5d Volumetric input by supporting 5d input for `mb.affine and mb.resample` for rank >=4 :https://pytorch.org/docs/stable/generated/torch.nn.functional.grid_sample.html ## How can this feature be...

feature request
Core ML Framework

## 🐞Describing the bug using the torch2coreml script with the --chunk-unet option would result in the following error: AttributeError: 'CacheDoublyLinkedList' object has no attribute 'index'. This error occurred because the...

bug