tcm03
commited on
Commit
·
f834242
1
Parent(s):
d973ae3
debug process_images
Browse files
preprocessing/mm_datautils.py
CHANGED
|
@@ -30,12 +30,10 @@ def process_images(
|
|
| 30 |
for image in images:
|
| 31 |
# image.shape: (height, width, channels)
|
| 32 |
if isinstance(image, np.ndarray):
|
| 33 |
-
print(f'@tcm: here: type(image):{type(image)}')
|
| 34 |
image = Image.fromarray(image)
|
| 35 |
image_aux_list = []
|
| 36 |
for processor_aux in processor_aux_list:
|
| 37 |
image_aux = image
|
| 38 |
-
print(f'@tcm: before: type(image_aux): {type(image_aux)}')
|
| 39 |
if hasattr(processor_aux, "image_mean"):
|
| 40 |
try:
|
| 41 |
target_resolution = processor_aux.crop_size["height"]
|
|
|
|
| 30 |
for image in images:
|
| 31 |
# image.shape: (height, width, channels)
|
| 32 |
if isinstance(image, np.ndarray):
|
|
|
|
| 33 |
image = Image.fromarray(image)
|
| 34 |
image_aux_list = []
|
| 35 |
for processor_aux in processor_aux_list:
|
| 36 |
image_aux = image
|
|
|
|
| 37 |
if hasattr(processor_aux, "image_mean"):
|
| 38 |
try:
|
| 39 |
target_resolution = processor_aux.crop_size["height"]
|