update
continuous-integration/drone/push Build was killed Details

This commit is contained in:
yayoimizuha 2023-05-04 19:58:45 +09:00
parent 4f9044b7bf
commit 5f7fd1eb1f
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ steps:
- python -m pip install --upgrade pip - python -m pip install --upgrade pip
- pip install torchsummary matplotlib pytorch-metric-learning - pip install torchsummary matplotlib pytorch-metric-learning
- apt update - apt update
- apt install fonts-noto-cjk -y - apt install fonts-noto-cjk-extra -y
- ls ./ - ls ./
- mkdir -p data - mkdir -p data
- $mount_command - $mount_command

View File

@ -91,7 +91,7 @@ def plot_dataset(dataloader: DataLoader | tuple, col_len: int = 8,
base_img[order_y * (shape_y + space_y) + space_y:(order_y + 1) * (shape_y + space_y), base_img[order_y * (shape_y + space_y) + space_y:(order_y + 1) * (shape_y + space_y),
order_x * (shape_x + space_x):(order_x + 1) * (shape_x + space_x) - space_x, :] = image order_x * (shape_x + space_x):(order_x + 1) * (shape_x + space_x) - space_x, :] = image
pil_image = Image.fromarray(base_img) pil_image = Image.fromarray(base_img)
font = ImageFont.truetype(font='NotoSansCJK-Medium.ttc', size=24) font = ImageFont.truetype(font=r'/usr/share/fonts/opentype/noto/NotoSansCJK-Medium.ttc', size=24)
draw = ImageDraw.Draw(pil_image) draw = ImageDraw.Draw(pil_image)
pad = 5 pad = 5
for order, label in enumerate(labels): for order, label in enumerate(labels):