{"id":17762,"date":"2024-11-10T19:16:21","date_gmt":"2024-11-10T11:16:21","guid":{"rendered":"https:\/\/www.bookcard.net\/wordpress\/?p=17762"},"modified":"2024-11-18T16:51:41","modified_gmt":"2024-11-18T08:51:41","slug":"transparent_background","status":"publish","type":"post","link":"https:\/\/www.bookcard.net\/wordpress\/transparent_background\/","title":{"rendered":"transparent-background\u906e\u7f69"},"content":{"rendered":"<figure id=\"attachment_17763\" aria-describedby=\"caption-attachment-17763\" style=\"width: 1280px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2024\/11\/transparent_background.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-17763\" src=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2024\/11\/transparent_background.jpg\" alt=\"transparent-background\u906e\u7f69\" width=\"1280\" height=\"800\" srcset=\"https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2024\/11\/transparent_background.jpg 1280w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2024\/11\/transparent_background-300x188.jpg 300w, https:\/\/www.bookcard.net\/wordpress\/wp-content\/uploads\/2024\/11\/transparent_background-768x480.jpg 768w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/a><figcaption id=\"caption-attachment-17763\" class=\"wp-caption-text\">transparent-background\u906e\u7f69<\/figcaption><\/figure>\n<p>\u300e<a href=\"https:\/\/github.com\/plemeri\/transparent-background\">transparent-background<\/a>\u300f\u81ea\u52d5\u5206\u96e2\u4eba\u50cf\u540c\u80cc\u666f,\u518d\u751f\u6210\u906e\u7f69,\u5187\u9700\u4eba\u624b\u5e72\u9810.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\"><a href=\"https:\/\/github.com\/plemeri\/transparent-background\">https:\/\/github.com\/plemeri\/transparent-background<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u767b\u5165\u300e<a href=\"https:\/\/www.bookcard.net\/wordpress\/windows10_administrator_cmd\/\">\u547d\u4ee4\u884c\u6a21\u5f0fCMD<\/a>\u300f, \u9032\u5165\u8cc7\u6599\u593ePython.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">CD C:\\Program Files\\Python310\\<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0b\u8f09\u5b89\u88dd\u300etransparent-background\u300f1.3.2\u7248,<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">python.exe -m pip install transparent-background==1.3.2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u88dd1.3.3\u7248\u4fc2\u7522\u751f&#8217;fast&#8217;\u932f\u8a2d<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">remover = Remover(fast=tb_use_fast_mode, jit=tb_use_jit, device=devices.get_optimal_device_name())<br \/>\nTypeError: Remover.<strong>init<\/strong>() got an unexpected keyword argument &#8216;fast&#8217;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5378\u88dd\u300etransparent-background\u300f<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">pip uninstall transparent-background<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u53ef\u80fd\u9700\u8981\u66f4\u65b0python<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">python.exe -m pip install &#8211;upgrade pip<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u986f\u5217python\u5b89\u88c5\u5305\u53ca\u7248\u672c\u865f.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">Pip list<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0b\u8f09\u6a21\u578b\u300e<a href=\"https:\/\/github.com\/plemeri\/transparent-background\/releases\/download\/1.2.12\/ckpt_base.pth\">ckpt_base.pth<\/a>\u300f\u300e<a href=\"https:\/\/github.com\/plemeri\/transparent-background\/releases\/download\/1.2.12\/ckpt_fast.pth\">ckpt_fast.pth<\/a>\u300f\u300e<a href=\"https:\/\/github.com\/plemeri\/transparent-background\/releases\/download\/1.2.12\/ckpt_base_nightly.pth\">ckpt_base_nightly.pth<\/a>\u300f<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\"><a href=\"https:\/\/github.com\/plemeri\/transparent-background\/releases\/tag\/1.2.12\">https:\/\/github.com\/plemeri\/transparent-background\/releases\/tag\/1.2.12<\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"553\"><a href=\"https:\/\/github.com\/plemeri\/transparent-background\/releases\/download\/1.2.12\/ckpt_base.pth\">https:\/\/github.com\/plemeri\/transparent-background\/releases\/download\/1.2.12\/ckpt_base.pth<\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"553\"><a href=\"https:\/\/github.com\/plemeri\/transparent-background\/releases\/download\/1.2.12\/ckpt_fast.pth\">https:\/\/github.com\/plemeri\/transparent-background\/releases\/download\/1.2.12\/ckpt_fast.pth<\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"553\"><a href=\"https:\/\/github.com\/plemeri\/transparent-background\/releases\/download\/1.2.12\/ckpt_base_nightly.pth\">https:\/\/github.com\/plemeri\/transparent-background\/releases\/download\/1.2.12\/ckpt_base_nightly.pth<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0b\u8f09\u5f8c\u64fa\u4fc2\u300eC:\\Users\\user&#46;transparent-background\u300f<\/p>\n<p>\u4f62\u6709\u5716\u5f62\u7248\u300etransparent-background-gui.exe\u300f\u58f9\u5efa\u751f\u6210\u906e\u7f69.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">C:\\Program Files\\Python310\\Scripts\\transparent-background-gui.exe<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ol>\n<li>\u64b3\u300eopen file\u300f\u8f09\u5165\u5716\u6a94.<\/li>\n<li>\u52fe\u300ereverse\u300f\u53cd\u8f49\u906e\u7f69.<\/li>\n<li>\u64b3\u300eprocess\u300f\u751f\u6210\u906e\u7f69.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>\u5982\u679c\u300epydantic\u300f\u5831\u932f\u53ef\u5148\u5378\u8f7d\u5f8c\u91cd\u88c5<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">ImportError: cannot import name &#8216;ValidationInfo&#8217; from &#8216;pydantic&#8217; (C:\\Users\\bookc\\AppData\\Roaming\\Python\\Python310\\site-packages\\pydantic\\__init__.cp310-win_amd64.pyd)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5148\u5378\u8f7d\u300epydantic\u300f<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">python.exe -m pip uninstall pydantic<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5f8c\u91cd\u88c5\u300epydantic\u300f<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"553\">python.exe -m pip install pydantic==1.8.1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u300etransparent-background\u300f\u81ea\u52d5\u5206\u96e2\u4eba\u50cf\u540c\u80cc\u666f,\u518d\u751f\u6210\u906e\u7f69,\u5187\u9700\u4eba\u624b\u5e72\u9810. https:\/ &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.bookcard.net\/wordpress\/transparent_background\/\" class=\"more-link\">\u7e7c\u7e8c\u95b1\u8b80 <span class=\"screen-reader-text\">transparent-background\u906e\u7f69<\/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":[268],"tags":[269],"class_list":["post-17762","post","type-post","status-publish","format-standard","hentry","category-openai","tag-ai","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/17762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/comments?post=17762"}],"version-history":[{"count":2,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/17762\/revisions"}],"predecessor-version":[{"id":17781,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/posts\/17762\/revisions\/17781"}],"wp:attachment":[{"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/media?parent=17762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/categories?post=17762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bookcard.net\/wordpress\/wp-json\/wp\/v2\/tags?post=17762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}