Тёмный

Create patches from a big image both sequentially and randomly 

MEDIOCRE_GUY
Подписаться 231
Просмотров 1,4 тыс.
50% 1

In this video, I tried to show how patches (small portions) can be created from a big image in two different ways: sequentially and randomly. For creating patches sequentially, I used the 'patchify' library; for the random case, I used the 'NumPy' library. We don't get any overlapping when we extract patches sequentially but overlaps are expected in case of random extraction.
GitHub address: github.com/ran...
#datascience #python #jupyternotebook #numpy #matplotlib #patchify #patchcreation

Опубликовано:

 

17 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 12   
@anneryan4051
@anneryan4051 11 месяцев назад
Thank you! This is the best patchify example I've found.
@patrickcraig4608
@patrickcraig4608 2 месяца назад
Do you know of any way to do this for coco annotated data?
@MediocreGuy2023
@MediocreGuy2023 2 месяца назад
@@patrickcraig4608 I have never worked with COCO dataset but, I found out from the Internet that this dataset is used for object detection and image segmentation tasks. Image segmentation is different from cropping small patches from a large image.
@_kkaai
@_kkaai Год назад
Thank you
@barshneyatalukdar1492
@barshneyatalukdar1492 5 месяцев назад
How to save the images in another folder after getting the patches
@MediocreGuy2023
@MediocreGuy2023 5 месяцев назад
plt.savefig(f'output_dir/{i+1}.jpg', dpi=300, bbox_inches='tight', pad_inches=0); Put this line within for loop. Here, output_dir should be the folder where your images will be saved based on i (number of images).
@barshneyatalukdar1492
@barshneyatalukdar1492 5 месяцев назад
@@MediocreGuy2023 I need one by one patch that is being generated already am able to save the whole collected patches image as one image but i want it separately not joined. I have inserted the line after ax1[R1, C1].axis('off')
@barshneyatalukdar1492
@barshneyatalukdar1492 5 месяцев назад
I need to save each image one by one separately if you can show
@MediocreGuy2023
@MediocreGuy2023 5 месяцев назад
@@barshneyatalukdar1492 Not like that. You need extra lines of code using a for loop.
@MediocreGuy2023
@MediocreGuy2023 5 месяцев назад
@@barshneyatalukdar1492 github.com/randomaccess2023/MG2023/issues/1
Далее
КЛИП ЛИСА УЖЕ ВЫШЕЛ!
00:16
Просмотров 422 тыс.
How AI 'Understands' Images (CLIP) - Computerphile
18:05
GridSearchCV using Scikit-Learn
26:13
Просмотров 62