{"id":332046,"date":"2022-04-18T09:00:14","date_gmt":"2022-04-18T09:00:14","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=332046"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=332046","title":{"rendered":"<span>Hugging NFT \u2014 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c NFT \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 OpenSea \u043a\u043e\u043b\u0435\u043a\u0446\u0438\u0438<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dbb\/978\/8db\/dbb9788dbd2d6c32c7f01329cefbf7a5.png\" width=\"1169\" height=\"404\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dbb\/978\/8db\/dbb9788dbd2d6c32c7f01329cefbf7a5.png\"\/><figcaption><\/figcaption><\/figure>\n<p><strong>Hugging NFT<\/strong> \u2014 c\u043e\u0437\u0434\u0430\u0439\u0442\u0435 NFT \u0438\u043b\u0438 \u043e\u0431\u0443\u0447\u0438\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u0441\u0435\u0433\u043e \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0438\u043a\u043e\u0432. \u0422\u0440\u0435\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043c\u043e\u0436\u0435\u0442\u0435, \u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442 \u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u0447\u0435\u043a\u043f\u043e\u0438\u043d\u0442\u0430!<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043d\u0430\u0443\u0447\u0438\u043c\u0441\u044f \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f NFT \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e-\u0441\u043e\u0441\u0442\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0435\u0442\u044c (\u0430\u043d\u0433\u043b.\u00a0<em>generative adversarial network<\/em>, \u0441\u043e\u043a\u0440\u0430\u0449\u0451\u043d\u043d\u043e\u00a0<em>GAN<\/em>), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u043a \u0443\u0434\u043e\u0431\u043d\u043e\u043c\u0443 Hugging Face \u0445\u0430\u0431\u0443.<\/p>\n<p>GitHub: <a href=\"https:\/\/github.com\/AlekseyKorshuk\/huggingnft\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/AlekseyKorshuk\/huggingnft<\/a><br \/>Demo Space: <a href=\"https:\/\/huggingface.co\/spaces\/huggan\/huggingnft\" rel=\"noopener noreferrer nofollow\">https:\/\/huggingface.co\/spaces\/huggan\/huggingnft<\/a><\/p>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0447\u0435\u0442\u044b\u0440\u043d\u0430\u0434\u0446\u0430\u0442\u0438\u0434\u043d\u0435\u0432\u043d\u043e\u0433\u043e \u0445\u0430\u043a\u0430\u0442\u043e\u043d\u0430 &#171;HugGAN Sprint&#187;. \u0418 \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u0441 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f81\/cef\/6cd\/f81cef6cdcb463d941656ac6eb3f32d6.gif\" width=\"480\" height=\"480\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f81\/cef\/6cd\/f81cef6cdcb463d941656ac6eb3f32d6.gif\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0447\u043d\u0435\u043c \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b&#8230;<\/p>\n<h2>Generative Adversarial Network<\/h2>\n<p>GAN \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0438 \u0434\u0438\u0441\u043a\u0440\u0438\u043c\u0438\u043d\u0430\u0442\u043e\u0440 (\u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440), \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u043b\u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u044c \u043d\u0430 \u0444\u043e\u0442\u043e:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/611\/800\/3aa\/6118003aa13f21066309423471fe926a.png\" alt=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: https:\/\/naokishibuya.medium.com\/understanding-generative-adversarial-networks-4dafc963f2ef\" title=\"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: https:\/\/naokishibuya.medium.com\/understanding-generative-adversarial-networks-4dafc963f2ef\" width=\"1362\" height=\"590\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/611\/800\/3aa\/6118003aa13f21066309423471fe926a.png\"\/><figcaption>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: https:\/\/naokishibuya.medium.com\/understanding-generative-adversarial-networks-4dafc963f2ef<\/figcaption><\/figure>\n<h2>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u0430\u0434\u0430\u0441\u0435\u0442<\/h2>\n<p>\u041f\u0430\u0440\u0441\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0437 OpenSea \u0447\u0435\u0440\u0435\u0437 \u0438\u0445 &#171;\u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439&#187; API.<\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a CloudFlare \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u043b\u044e\u0431\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0447\u0435\u0440\u0435\u0437 API, \u0442\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 Selenium. <\/p>\n<p>\u0418\u0442\u0430\u043a, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c <code>chromedriver<\/code> <a href=\"https:\/\/chromedriver.chromium.org\/downloads\" rel=\"noopener noreferrer nofollow\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a> \u0438 \u0432\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0443\u0442\u044c:<\/p>\n<pre><code class=\"bash\">python huggingnft\/datasets\/collect_dataset.py \\ --collection_name cyberkongz \\   --use_selenium \\   --driver_path huggingnft\/datasets\/chromedriver<\/code><\/pre>\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f49\/365\/944\/f49365944adeb641977df30a396e9d02.png\" width=\"2632\" height=\"1518\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f49\/365\/944\/f49365944adeb641977df30a396e9d02.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0418 \u0432\u043e\u0442 \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0443 \u043c\u0438\u043d\u0443\u0442 \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0443\u0442: <a href=\"https:\/\/huggingface.co\/huggingnft\" rel=\"noopener noreferrer nofollow\">https:\/\/huggingface.co\/huggingnft<\/a><\/p>\n<h2>\u0422\u0440\u0435\u043d\u0438\u0440\u0443\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c<\/h2>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0435\u0433\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0432 \u043b\u044e\u0431\u0443\u044e \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e Open Sea. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432\u0430\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0434 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043b.<\/p>\n<h4>Google Colab<\/h4>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435: <a href=\"https:\/\/colab.research.google.com\/github\/AlekseyKorshuk\/huggingnft\/blob\/main\/huggingnft\/lightweight_gun\/train.ipynb\" rel=\"noopener noreferrer nofollow\">link<\/a><\/p>\n<h4>\u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b<\/h4>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"bash\">accelerate config<\/code><\/pre>\n<p>=> Accelerate \u0441\u043f\u0440\u043e\u0441\u0438\u0442, \u0432 \u043a\u0430\u043a\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u0432\u044b \u0445\u043e\u0442\u0435\u043b\u0438 \u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0432\u0435\u0442\u044c\u0442\u0435 \u043d\u0430 \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043c:<\/p>\n<pre><code>accelerate launch huggingnft\/lightweight_gan\/train.py \\   --wandb \\   --image_size 256 \\   --num_train_steps 10000 \\   --save_every 1000 \\   --dataset_name huggingnft\/cyberkongz \\   --push_to_hub \\   --name cyberkongz \\   --organization_name huggingnft<\/code><\/pre>\n<p>\u0412\u0443\u0430\u043b\u044f! \u0422\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c, \u0430 \u0437\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u043d\u0430 Weights &amp; Biases (\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f).<\/p>\n<h2>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b<\/h2>\n<p>\u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0434\u043e\u0431\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u043e\u0442\u044b\u043a\u0430\u0442\u044c \u043d\u0430\u0448\u0438 \u043c\u043e\u0434\u0435\u043b\u044c\u043a\u0438.<\/p>\n<h3>Space<\/h3>\n<p><a href=\"https:\/\/huggingface.co\/spaces\/huggan\/huggingnft\" rel=\"noopener noreferrer nofollow\">https:\/\/huggingface.co\/spaces\/huggan\/huggingnft<\/a><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dd2\/3ca\/bef\/dd23cabef8e98637a224d425a2c06e06.png\" width=\"2628\" height=\"1534\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dd2\/3ca\/bef\/dd23cabef8e98637a224d425a2c06e06.png\"\/><figcaption><\/figcaption><\/figure>\n<h3>\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044f (gif)<\/h3>\n<h4>Google Colab<\/h4>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435: <a href=\"https:\/\/colab.research.google.com\/github\/AlekseyKorshuk\/huggingnft\/blob\/main\/huggingnft\/lightweight_gan\/generate.ipynb\" rel=\"noopener noreferrer nofollow\">https:\/\/colab.research.google.com\/github\/AlekseyKorshuk\/huggingnft\/blob\/main\/huggingnft\/lightweight_gan\/generate.ipynb<\/a><\/p>\n<h4>\u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b<\/h4>\n<p>\u0414\u043b\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439:<\/p>\n<pre><code class=\"bash\">python huggingnft\/lightweight_gan\/generate_image.py \\ --collection_name cryptopunks \\   --nrows 8 \\   --generation_type default<\/code><\/pre>\n<h3>\u0414\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438:<\/h3>\n<pre><code class=\"bash\">python huggingnft\/lightweight_gan\/generate_interpolation.py \\ --collection_name cryptopunks \\ --nrows 8 \\ --num_steps 100<\/code><\/pre>\n<h4>Python<\/h4>\n<h3>\u0414\u043b\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439:<\/h3>\n<pre><code class=\"python\">from huggingnft.lightweight_gan.train import timestamped_filename from huggingnft.lightweight_gan.lightweight_gan import load_lightweight_model  collection_name = \"cyberkongz\" nrows = 8 generation_type = \"default\"  # [\"default\", \"ema\"]  model = load_lightweight_model(f\"huggingnft\/{collection_name}\") image_saved_path, generated_image = model.generate_app(     num=timestamped_filename(),     nrow=nrows,     checkpoint=-1,     types=generation_type )<\/code><\/pre>\n<h3>\u0414\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438:<\/h3>\n<pre><code class=\"python\">from huggingnft.lightweight_gan.train import timestamped_filename from huggingnft.lightweight_gan.lightweight_gan import load_lightweight_model  collection_name = \"cyberkongz\" nrows = 1 num_steps = 100  model = load_lightweight_model(f\"huggingnft\/{collection_name}\") gif_saved_path = model.generate_interpolation(     num=timestamped_filename(),     num_image_tiles=nrows,     num_steps=num_steps,     save_frames=False ) <\/code><\/pre>\n<h2>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b<\/h2>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/625d1f1a58b073b4525f7867\" data-style=\"\" id=\"625d1f1a58b073b4525f7867\" width=\"\"><\/div>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u042f \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u0443\u0434\u0430\u043b\u0441\u044f. \u0418 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f GAN \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432!<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0434\u043e\u0447\u0438\u0442\u0430\u043b\u0438 \u0434\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u043a\u043e\u043d\u0446\u0430, \u0442\u043e \u043f\u043e\u043f\u0440\u043e\u0448\u0443 \u0432\u0430\u0441 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043f\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0432\u0435\u0437\u0434\u0443 \u043d\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439:\u00a0<a href=\"https:\/\/github.com\/AlekseyKorshuk\/huggingnft\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/AlekseyKorshuk\/huggingnft<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/661483\/\"> https:\/\/habr.com\/ru\/post\/661483\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><strong>Hugging NFT<\/strong> \u2014 c\u043e\u0437\u0434\u0430\u0439\u0442\u0435 NFT \u0438\u043b\u0438 \u043e\u0431\u0443\u0447\u0438\u0442\u0435 \u043d\u043e\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u0441\u0435\u0433\u043e \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043b\u0438\u043a\u043e\u0432. \u0422\u0440\u0435\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043c\u043e\u0436\u0435\u0442\u0435, \u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442 \u0441 \u0432\u0430\u0448\u0435\u0433\u043e \u0447\u0435\u043a\u043f\u043e\u0438\u043d\u0442\u0430!<\/p>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u043d\u0430\u0443\u0447\u0438\u043c\u0441\u044f \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f NFT \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e-\u0441\u043e\u0441\u0442\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0441\u0435\u0442\u044c (\u0430\u043d\u0433\u043b.\u00a0<em>generative adversarial network<\/em>, \u0441\u043e\u043a\u0440\u0430\u0449\u0451\u043d\u043d\u043e\u00a0<em>GAN<\/em>), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u043a \u0443\u0434\u043e\u0431\u043d\u043e\u043c\u0443 Hugging Face \u0445\u0430\u0431\u0443.<\/p>\n<p>GitHub: <a href=\"https:\/\/github.com\/AlekseyKorshuk\/huggingnft\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/AlekseyKorshuk\/huggingnft<\/a><br \/>Demo Space: <a href=\"https:\/\/huggingface.co\/spaces\/huggan\/huggingnft\" rel=\"noopener noreferrer nofollow\">https:\/\/huggingface.co\/spaces\/huggan\/huggingnft<\/a><\/p>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041f\u0440\u043e\u0435\u043a\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0441\u044f \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0447\u0435\u0442\u044b\u0440\u043d\u0430\u0434\u0446\u0430\u0442\u0438\u0434\u043d\u0435\u0432\u043d\u043e\u0433\u043e \u0445\u0430\u043a\u0430\u0442\u043e\u043d\u0430 &#171;HugGAN Sprint&#187;. \u0418 \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u0441 \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0447\u043d\u0435\u043c \u0441 \u0441\u0430\u043c\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b&#8230;<\/p>\n<h2>Generative Adversarial Network<\/h2>\n<p>GAN \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u0438 \u0434\u0438\u0441\u043a\u0440\u0438\u043c\u0438\u043d\u0430\u0442\u043e\u0440 (\u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440), \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u0442\u044c, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u043b\u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u0430 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u044c \u043d\u0430 \u0444\u043e\u0442\u043e:<\/p>\n<figure class=\"full-width\"><figcaption>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: https:\/\/naokishibuya.medium.com\/understanding-generative-adversarial-networks-4dafc963f2ef<\/figcaption><\/figure>\n<h2>\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u0430\u0434\u0430\u0441\u0435\u0442<\/h2>\n<p>\u041f\u0430\u0440\u0441\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0437 OpenSea \u0447\u0435\u0440\u0435\u0437 \u0438\u0445 &#171;\u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439&#187; API.<\/p>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a CloudFlare \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u043b\u044e\u0431\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0447\u0435\u0440\u0435\u0437 API, \u0442\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 Selenium. <\/p>\n<p>\u0418\u0442\u0430\u043a, \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c <code>chromedriver<\/code> <a href=\"https:\/\/chromedriver.chromium.org\/downloads\" rel=\"noopener noreferrer nofollow\">\u043e\u0442\u0441\u044e\u0434\u0430<\/a> \u0438 \u0432\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0443\u0442\u044c:<\/p>\n<pre><code class=\"bash\">python huggingnft\/datasets\/collect_dataset.py \\ --collection_name cyberkongz \\   --use_selenium \\   --driver_path huggingnft\/datasets\/chromedriver<\/code><\/pre>\n<figure class=\"float full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0418 \u0432\u043e\u0442 \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0443 \u043c\u0438\u043d\u0443\u0442 \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0443\u0442: <a href=\"https:\/\/huggingface.co\/huggingnft\" rel=\"noopener noreferrer nofollow\">https:\/\/huggingface.co\/huggingnft<\/a><\/p>\n<h2>\u0422\u0440\u0435\u043d\u0438\u0440\u0443\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u044c<\/h2>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0435\u0433\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0432 \u043b\u044e\u0431\u0443\u044e \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e Open Sea. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432\u0430\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0434 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435\u043c \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437\u0434\u0435\u043b.<\/p>\n<h4>Google Colab<\/h4>\n<p>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435: <a href=\"https:\/\/colab.research.google.com\/github\/AlekseyKorshuk\/huggingnft\/blob\/main\/huggingnft\/lightweight_gun\/train.ipynb\" rel=\"noopener noreferrer nofollow\">link<\/a><\/p>\n<h4>\u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b<\/h4>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"bash\">accelerate config<\/code><\/pre>\n<p>=> Accelerate \u0441\u043f\u0440\u043e\u0441\u0438\u0442, \u0432 \u043a\u0430\u043a\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u0432\u044b \u0445\u043e\u0442\u0435\u043b\u0438 \u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0432\u0435\u0442\u044c\u0442\u0435 \u043d\u0430 \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043c:<\/p>\n<pre><code>accelerate launch huggingnft\/lightweight_gan\/train.py \\   --wandb \\   --image_size 256 \\   --num_train_steps 10000 \\   --save_every 1000 \\   --dataset_name huggingnft\/cyberkongz \\   --push_to_hub \\   --name cyberkongz \\   --organization_name huggingnft<\/code><\/pre>\n<p>\u0412\u0443\u0430\u043b\u044f! \u0422\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043a\u0430 \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c, \u0430 \u0437\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u043d\u0430 Weights &amp; Biases (\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f).<\/p>\n<h2>\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b<\/h2>\n<p>\u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0434\u043e\u0431\u043d\u044b\u0445 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u043e\u0442\u044b\u043a\u0430\u0442\u044c \u043d\u0430\u0448\u0438 \u043c\u043e\u0434\u0435\u043b\u044c\u043a\u0438.<\/p>\n<h3>Space<\/h3>\n<p><a href=\"https:\/\/huggingface.co\/spaces\/huggan\/huggingnft\" rel=\"noopener noreferrer nofollow\">https:\/\/huggingface.co\/spaces\/huggan\/huggingnft<\/a><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h3>\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044f (gif)<\/h3>\n<h4>Google Colab<\/h4>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435: <a href=\"https:\/\/colab.research.google.com\/github\/AlekseyKorshuk\/huggingnft\/blob\/main\/huggingnft\/lightweight_gan\/generate.ipynb\" rel=\"noopener noreferrer nofollow\">https:\/\/colab.research.google.com\/github\/AlekseyKorshuk\/huggingnft\/blob\/main\/huggingnft\/lightweight_gan\/generate.ipynb<\/a><\/p>\n<h4>\u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b<\/h4>\n<p>\u0414\u043b\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439:<\/p>\n<pre><code class=\"bash\">python huggingnft\/lightweight_gan\/generate_image.py \\ --collection_name cryptopunks \\   --nrows 8 \\   --generation_type default<\/code><\/pre>\n<h3>\u0414\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438:<\/h3>\n<pre><code class=\"bash\">python huggingnft\/lightweight_gan\/generate_interpolation.py \\ --collection_name cryptopunks \\ --nrows 8 \\ --num_steps 100<\/code><\/pre>\n<h4>Python<\/h4>\n<h3>\u0414\u043b\u044f \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439:<\/h3>\n<pre><code class=\"python\">from huggingnft.lightweight_gan.train import timestamped_filename from huggingnft.lightweight_gan.lightweight_gan import load_lightweight_model  collection_name = \"cyberkongz\" nrows = 8 generation_type = \"default\"  # [\"default\", \"ema\"]  model = load_lightweight_model(f\"huggingnft\/{collection_name}\") image_saved_path, generated_image = model.generate_app(     num=timestamped_filename(),     nrow=nrows,     checkpoint=-1,     types=generation_type )<\/code><\/pre>\n<h3>\u0414\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438:<\/h3>\n<pre><code class=\"python\">from huggingnft.lightweight_gan.train import timestamped_filename from huggingnft.lightweight_gan.lightweight_gan import load_lightweight_model  collection_name = \"cyberkongz\" nrows = 1 num_steps = 100  model = load_lightweight_model(f\"huggingnft\/{collection_name}\") gif_saved_path = model.generate_interpolation(     num=timestamped_filename(),     num_image_tiles=nrows,     num_steps=num_steps,     save_frames=False ) <\/code><\/pre>\n<h2>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b<\/h2>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/625d1f1a58b073b4525f7867\" data-style=\"\" id=\"625d1f1a58b073b4525f7867\" width=\"\"><\/div>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>\u042f \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u043f\u0440\u043e\u0435\u043a\u0442 \u0443\u0434\u0430\u043b\u0441\u044f. \u0418 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0434\u043b\u044f \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f GAN \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432!<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0434\u043e\u0447\u0438\u0442\u0430\u043b\u0438 \u0434\u043e \u0441\u0430\u043c\u043e\u0433\u043e \u043a\u043e\u043d\u0446\u0430, \u0442\u043e \u043f\u043e\u043f\u0440\u043e\u0448\u0443 \u0432\u0430\u0441 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043f\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0432\u0435\u0437\u0434\u0443 \u043d\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439:\u00a0<a href=\"https:\/\/github.com\/AlekseyKorshuk\/huggingnft\" rel=\"noopener noreferrer nofollow\">https:\/\/github.com\/AlekseyKorshuk\/huggingnft<\/a><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/661483\/\"> https:\/\/habr.com\/ru\/post\/661483\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-332046","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/332046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=332046"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/332046\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=332046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=332046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=332046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}