Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the olympus-google-fonts
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/functions.php on line 6121
Warning: Cannot modify header information - headers already sent by (output started at /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/functions.php:6121) in /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/rest-api/class-wp-rest-server.php on line 1896
Warning: Cannot modify header information - headers already sent by (output started at /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/functions.php:6121) in /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/rest-api/class-wp-rest-server.php on line 1896
Warning: Cannot modify header information - headers already sent by (output started at /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/functions.php:6121) in /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/rest-api/class-wp-rest-server.php on line 1896
Warning: Cannot modify header information - headers already sent by (output started at /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/functions.php:6121) in /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/rest-api/class-wp-rest-server.php on line 1896
Warning: Cannot modify header information - headers already sent by (output started at /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/functions.php:6121) in /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/rest-api/class-wp-rest-server.php on line 1896
Warning: Cannot modify header information - headers already sent by (output started at /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/functions.php:6121) in /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/rest-api/class-wp-rest-server.php on line 1896
Warning: Cannot modify header information - headers already sent by (output started at /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/functions.php:6121) in /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/rest-api/class-wp-rest-server.php on line 1896
Warning: Cannot modify header information - headers already sent by (output started at /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/functions.php:6121) in /customers/2/b/9/gnereus.com/httpd.www/x2024/wp-includes/rest-api/class-wp-rest-server.php on line 1896
{"id":279,"date":"2024-07-30T09:35:00","date_gmt":"2024-07-30T09:35:00","guid":{"rendered":"https:\/\/gnereus.com\/x2024\/?p=279"},"modified":"2024-07-30T09:35:00","modified_gmt":"2024-07-30T09:35:00","slug":"generative-ai-decoding-process","status":"publish","type":"post","link":"https:\/\/gnereus.com\/x2024\/2024\/07\/30\/generative-ai-decoding-process\/","title":{"rendered":"Generative AI – Decoding Process"},"content":{"rendered":"\n
Introduction<\/strong> The decoding process in generative models is crucial as it translates latent space representations back into high-dimensional data, such as images, text, or audio.<\/p>\n\n\n\n What is Decoding?<\/strong> Decoding is the process of taking a point from the latent space and generating a data instance from it. In models like VAEs and GANs, the decoder network performs this task.<\/p>\n\n\n\n Decoding in VAEs<\/strong> In VAEs, the decoder maps latent vectors to the original data space. This process is learned during training by minimizing the reconstruction loss between the original data and the decoded output.<\/p>\n\n\n\n Example Code: VAE Decoder<\/strong> Here’s how a decoder might be implemented in a simple VAE:<\/p>\n\n\n\n Decoding in GANs<\/strong> In GANs, the generator serves as the decoder. It takes noise as input and generates data that the discriminator then evaluates.<\/p>\n\n\n\n The decoding process is fundamental to generative models, allowing them to transform abstract latent representations into concrete data instances. Understanding and optimizing the decoder is key to improving the quality of generated outputs.<\/p>\n","protected":false},"excerpt":{"rendered":" Decoding Process in Generative Models Introduction The decoding process in generative models is crucial as it translates latent space representations back into high-dimensional data, such as images, text, or audio. What is Decoding? Decoding is the process of taking a point from the latent space and generating a data instance from it. In models like […]<\/p>\n","protected":false},"author":1,"featured_media":270,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,19,26],"tags":[4,20,27],"class_list":["post-279","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-computer-vision","category-generative-ai","tag-ai","tag-computer-vision","tag-generative-ai"],"_links":{"self":[{"href":"https:\/\/gnereus.com\/x2024\/wp-json\/wp\/v2\/posts\/279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gnereus.com\/x2024\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gnereus.com\/x2024\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gnereus.com\/x2024\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gnereus.com\/x2024\/wp-json\/wp\/v2\/comments?post=279"}],"version-history":[{"count":1,"href":"https:\/\/gnereus.com\/x2024\/wp-json\/wp\/v2\/posts\/279\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/gnereus.com\/x2024\/wp-json\/wp\/v2\/posts\/279\/revisions\/280"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gnereus.com\/x2024\/wp-json\/wp\/v2\/media\/270"}],"wp:attachment":[{"href":"https:\/\/gnereus.com\/x2024\/wp-json\/wp\/v2\/media?parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gnereus.com\/x2024\/wp-json\/wp\/v2\/categories?post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gnereus.com\/x2024\/wp-json\/wp\/v2\/tags?post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}class Decoder(nn.Module):\n def __init__(self, latent_dim):\n super(Decoder, self).__init__()\n self.fc1 = nn.Linear(latent_dim, 400)\n self.fc2 = nn.Linear(400, 784)\n\n def forward(self, z):\n h = torch.relu(self.fc1(z))\n return torch.sigmoid(self.fc2(h))\n\n# Usage in the VAE model\ndecoder = Decoder(latent_dim=2)\nsample = torch.randn(64, 2) # Sampling from latent space\ngenerated_images = decoder(sample)\n<\/code><\/code><\/pre>\n\n\n\n
class Generator(nn.Module):\n def __init__(self, latent_dim):\n super(Generator, self).__init__()\n self.fc1 = nn.Linear(latent_dim, 256)\n self.fc2 = nn.Linear(256, 512)\n self.fc3 = nn.Linear(512, 1024)\n self.fc4 = nn.Linear(1024, 784)\n\n def forward(self, z):\n h = torch.relu(self.fc1(z))\n h = torch.relu(self.fc2(h))\n h = torch.relu(self.fc3(h))\n return torch.tanh(self.fc4(h))\n\n# Usage\ngenerator = Generator(latent_dim=100)\nnoise = torch.randn(64, 100)\ngenerated_images = generator(noise)\n<\/code><\/code><\/pre>\n\n\n\n