{"id":16552,"date":"2025-12-27T16:23:07","date_gmt":"2025-12-27T07:23:07","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=16552"},"modified":"2025-12-27T16:26:43","modified_gmt":"2025-12-27T07:26:43","slug":"torch-load%ec%9d%98-weights_only-%ec%9d%b8%ec%9e%90%ea%b0%92%ec%9d%84-%ea%b0%95%ec%a0%9c%eb%a1%9c-false%eb%a1%9c-%ec%a7%80%ec%a0%95%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=16552","title":{"rendered":"torch.load\uc758 weights_only \uc778\uc790\uac12\uc744 \uac15\uc81c\ub85c False\ub85c \uc9c0\uc815\ud558\uae30"},"content":{"rendered":"<p>\ubcf4\uc548 \uc774\uc288\ub85c torch 2.6\uc778\uac00 2.7\ubd80\ud130\ub294 torch.load\uc758 weights_only \uc778\uc790\uac12\uc774 \uae30\ubcf8\uc801\uc73c\ub85c True\ub85c \uc9c0\uc815\ub41c\ub2e4\uace0 \ud55c\ub2e4. \uc774\uac83\uc73c\ub85c \uc778\ud574 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud558\ub294 \uc0c1\ud669\uc778\ub370.. \uc774 \uacbd\uc6b0 \ud574\uacb0\uc5d0 \ub300\ud55c \uc815\uc11d\uc740 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud558\ub294 \ud074\ub798\uc2a4\ub97c torch.serialization.add_safe_globals\ub97c \ud1b5\ud574 \ucd94\uac00\ud558\ub77c\uace0 \ub418\uc5b4 \uc788\ub2e4. \uc608\ub97c\ub4e4\uc5b4 \uc544\ub798\ucc98\ub7fc..<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\nimport torch\r\nfrom pyannote.audio.core.task import Specifications\r\ntorch.serialization.add_safe_globals([Specifications])\r\n<\/pre>\n<p>\uadf8\ub7ec\ub098 \uc548\ub41c\ub2e4. \uadf8\ub7fc torch.load\uc5d0 \ub300\ud55c weights_only \uc778\uc790\uac12\uc744 False\ub85c \uc9c0\uc815\ud558\uba74 \ub418\ub294\ub370 \ud574\ub2f9 \ucf54\ub4dc\uac00 \uae4a\uc219\uc774 \uac10\ucdb0\uc838 \uc788\ub2e4. \uacb0\uad6d \uc704\ud5d8\ud558\uc9c0\ub9cc torch.load\uc758 weights_only \uc778\uc790\uac12\uc744 \uac15\uc81c\ub85c False\ub85c \uc9c0\uc815\ud558\ub294 \ubc29\uc548\uc774\ub2e4. \uc544\ub798\ucc98\ub7fc..<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">\r\n_original_torch_load = torch.load\r\n\r\ndef _trusted_load(*args, **kwargs):\r\n    kwargs['weights_only'] = False\r\n    return _original_torch_load(*args, **kwargs)\r\n\r\ntorch.load = _trusted_load\r\n<\/pre>\n<p>\uacb0\uad6d \uc774\ub807\uac8c \ud574\uc11c \uc9c4\ud589\ud568.. \uadf8\ub7f0\ub370 \uc774 \ubc29\ubc95\uc740 \uc808\ub300\ub85c \ucd94\ucc9c\ud560 \uc218 \uc5c6\ub2e4. \uae09\ud560 \ub54c\ub9cc \uc0ac\uc6a9\ud560 \uac83.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ubcf4\uc548 \uc774\uc288\ub85c torch 2.6\uc778\uac00 2.7\ubd80\ud130\ub294 torch.load\uc758 weights_only \uc778\uc790\uac12\uc774 \uae30\ubcf8\uc801\uc73c\ub85c True\ub85c \uc9c0\uc815\ub41c\ub2e4\uace0 \ud55c\ub2e4. \uc774\uac83\uc73c\ub85c \uc778\ud574 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud558\ub294 \uc0c1\ud669\uc778\ub370.. \uc774 \uacbd\uc6b0 \ud574\uacb0\uc5d0 \ub300\ud55c \uc815\uc11d\uc740 \ubb38\uc81c\uac00 \ubc1c\uc0dd\ud558\ub294 \ud074\ub798\uc2a4\ub97c torch.serialization.add_safe_globals\ub97c \ud1b5\ud574 \ucd94\uac00\ud558\ub77c\uace0 \ub418\uc5b4 \uc788\ub2e4. \uc608\ub97c\ub4e4\uc5b4 \uc544\ub798\ucc98\ub7fc.. import torch from pyannote.audio.core.task import Specifications torch.serialization.add_safe_globals([Specifications]) \uadf8\ub7ec\ub098 \uc548\ub41c\ub2e4. \uadf8\ub7fc torch.load\uc5d0 \ub300\ud55c weights_only \uc778\uc790\uac12\uc744 False\ub85c \uc9c0\uc815\ud558\uba74 \ub418\ub294\ub370 \ud574\ub2f9 \ucf54\ub4dc\uac00 \uae4a\uc219\uc774 \uac10\ucdb0\uc838 \uc788\ub2e4. \uacb0\uad6d &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=16552\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;torch.load\uc758 weights_only \uc778\uc790\uac12\uc744 \uac15\uc81c\ub85c False\ub85c \uc9c0\uc815\ud558\uae30&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-16552","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/16552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16552"}],"version-history":[{"count":3,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/16552\/revisions"}],"predecessor-version":[{"id":16555,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/16552\/revisions\/16555"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16552"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}