(frames, batch_size, max_batches)
| 29 | check_edges = False |
| 30 | |
| 31 | def split_into_batches(frames, batch_size, max_batches): |
| 32 | groups = [frames[i:i+batch_size] for i in range(0, len(frames), batch_size)][:max_batches] |
| 33 | |
| 34 | # Add any remaining images to the last group |
| 35 | if len(frames) > max_batches * batch_size: |
| 36 | groups[-1] += frames[max_batches*batch_size:] |
| 37 | |
| 38 | return groups |
| 39 | |
| 40 | def create_square_texture(frames, max_size, side_length=3): |
| 41 |
no outgoing calls
no test coverage detected