mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 12:24:53 +00:00
Move import up.
This commit is contained in:
parent
8c114e5fc4
commit
4217ddb842
@ -1,5 +1,6 @@
|
|||||||
import re
|
import re
|
||||||
import torch
|
import torch
|
||||||
|
import math
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
import base64
|
import base64
|
||||||
@ -80,7 +81,6 @@ def get_number_of_features(height: int, width: int, config) -> int:
|
|||||||
image_grid_pinpoints,
|
image_grid_pinpoints,
|
||||||
image_size,
|
image_size,
|
||||||
)
|
)
|
||||||
import math
|
|
||||||
|
|
||||||
height_of_patch = math.ceil(height / width * npatches)
|
height_of_patch = math.ceil(height / width * npatches)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user