๐‘บ๐’๐’‰๐’š๐’–๐’

[Python] Debugging tool (Pdb) ๋ณธ๋ฌธ

Python

[Python] Debugging tool (Pdb)

๐Ÿฆ„ํ•‘ํฌํด๐Ÿ’ž 2025. 1. 7. 03:05

Here are some useful code lines for debugging using Pdb..

(Pdb) print(UNet2DConditionModel)
<class 'diffusers.models.unet_2d_condition.UNet2DConditionModel'>
(Pdb) import inspect
(Pdb) print(inspect.getfile(UNet2DConditionModel))
/home/aiv-du/anaconda3/envs/text2videozero/lib/python3.9/site-packages/diffusers/models/unet_2d_condition.py

 

(Pdb) import torchvision.utils as tu
(Pdb) tu.save_image(xT[0], 'xT[0].png')

'Python' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[Pytorch] Fixing Radom Seed  (0) 2025.02.05
[Python] What is "self" in Python?  (1) 2025.01.07
[Code] Studying Pytorch for Deep Learning Models  (1) 2025.01.04