o
    ?߱i{                     @   s  U d dl Z d dlmZmZ dddddddd	d
ddddddddddddddddddddddddddddd d!d"d#dd$d%d&d'd(dd)Zeeeeeeef f f e	d*< dddddddd+d,d-d.ddddddddddddddddddddddddddd d!d"d#ddd d!d"d#dd$d%d&d'd(dd/	Z
eeeeef f e	d0< d1ee d2ee fd3d4Zd1ee d2eeeef  fd5d6ZdS )7    N)ListTuple)   r   )     )r   r   )  r   )r   r   )z1,1z4,3z3,4z16,9z9,16)  p  )r	   r   )P     )r   r
   )  r   )r     )r   r   )   r   )r   r   )   r   )  r   )r   r   )r     )r   r   )  r   )r   r   )r   r   )r     )r   r   )r   r   )@  r   )r   r   )  r   )r   r   )r   r   )r   r   )r   r   )   r   )@  r   )r   r   )r      )r   r   )10801024720512480480p720robocasa256IMAGE_RES_SIZE_INFO)r   r   )r   r   )r   r   )r   r   )	r   r   r   r   r   r   720pr   r    VIDEO_RES_SIZE_INFOwdinfosreturnc                 C   s.   g }| D ]}t d|}||d q|S )Nzaspect_ratio_(\d+_\d+)   )researchappendgroup)r$   aspect_ratioswdinfoZaspect_ratio_match r-   V/data/cameron/vidgen/cosmos-predict2.5/cosmos_predict2/_src/predict2/datasets/utils.pyget_aspect_ratios_from_wdinfosF   s
   r/   c                 C   s   t | }dd t| |D S )Nc                 S   s    g | ]\}}|| d dfqS )_,)replace).0r,   aspect_ratior-   r-   r.   
<listcomp>S   s     z.get_wdinfos_w_aspect_ratio.<locals>.<listcomp>)r/   zip)r$   r+   r-   r-   r.   get_wdinfos_w_aspect_ratioO   s   r7   )r'   typingr   r   r!   dictstrtupleint__annotations__r#   listr/   r7   r-   r-   r-   r.   <module>   sV   
&&	