Move import up.

This commit is contained in:
Nicolas Patry 2024-04-09 17:19:26 +00:00
parent 8c114e5fc4
commit 4217ddb842

View File

@ -1,5 +1,6 @@
import re
import torch
import math
from PIL import Image
from io import BytesIO
import base64
@ -80,7 +81,6 @@ def get_number_of_features(height: int, width: int, config) -> int:
image_grid_pinpoints,
image_size,
)
import math
height_of_patch = math.ceil(height / width * npatches)