<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ahmar Khan</title>
    <description>The latest articles on DEV Community by Ahmar Khan (@ahmar).</description>
    <link>https://dev.to/ahmar</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F735346%2Fef700bdf-4f44-44ff-ba12-3d7e75bbb29d.jpeg</url>
      <title>DEV Community: Ahmar Khan</title>
      <link>https://dev.to/ahmar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ahmar"/>
    <language>en</language>
    <item>
      <title>Generative AI and Virtual Fashion Styling with Amazon SageMaker</title>
      <dc:creator>Ahmar Khan</dc:creator>
      <pubDate>Fri, 31 Mar 2023 14:51:40 +0000</pubDate>
      <link>https://dev.to/ahmar/generative-ai-and-virtual-fashion-styling-with-amazon-sagemaker-4pii</link>
      <guid>https://dev.to/ahmar/generative-ai-and-virtual-fashion-styling-with-amazon-sagemaker-4pii</guid>
      <description>&lt;p&gt;Artificial intelligence (AI) is revolutionizing various industries, and the fashion industry is no exception. With generative AI, businesses can create virtual fashion designs and generate endless possibilities without the need for physical samples. Amazon SageMaker is an excellent platform for implementing generative AI in the fashion industry.&lt;/p&gt;

&lt;p&gt;In this blog, we will explore how generative AI works and how Amazon SageMaker can be used to implement virtual fashion styling using generative AI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Generative AI and How it Works&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Generative AI is a type of machine learning that involves training a model on a dataset to create new data similar to the input data. It is particularly useful for creating new designs, images, and sounds. Generative AI models can be trained using a variety of techniques, including variational autoencoders, generative adversarial networks (GANs), and transformer models.&lt;/p&gt;

&lt;p&gt;GANs are a popular generative AI technique for image generation. The GAN consists of two neural networks: a generator and a discriminator. The generator generates images, while the discriminator tries to distinguish between real and generated images. The generator's goal is to create images that the discriminator cannot distinguish from real images.&lt;/p&gt;

&lt;p&gt;Once the GAN is trained, it can generate endless variations of images. For example, a GAN trained on fashion images can generate new clothing designs, colors, and patterns. This can be particularly useful for businesses that want to explore new design possibilities without the need for physical samples.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Amazon SageMaker and Generative AI&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Amazon SageMaker is a fully managed machine learning platform that provides everything needed to build, train, and deploy machine learning models at scale. It includes pre-built algorithms, frameworks, and tools that make it easy to build and train machine learning models.&lt;/p&gt;

&lt;p&gt;Amazon SageMaker also provides a range of pre-built machine learning models for various tasks, including image classification, object detection, and text classification. These pre-built models can be used to accelerate the development of generative AI models for virtual fashion styling.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Virtual Fashion Styling with Generative AI using Amazon SageMaker&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To implement virtual fashion styling using generative AI in Amazon SageMaker, we need to follow the following steps:&lt;/p&gt;

&lt;p&gt;Prepare the dataset: The first step is to prepare a dataset of fashion images. The dataset should include images of clothing items from different angles and in different colors and patterns. The dataset should also include images of fashion accessories such as shoes, bags, and jewelry.&lt;/p&gt;

&lt;p&gt;Train a generative AI model: The next step is to train a generative AI model on the dataset. We can use a GAN to generate new clothing designs, colors, and patterns. Amazon SageMaker provides pre-built GAN models that we can use to accelerate the training process.&lt;/p&gt;

&lt;p&gt;Here is some sample code for training a GAN model in Amazon SageMaker:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python
# Import the required libraries
import sagemaker
from sagemaker.tensorflow import TensorFlow

# Set up the training job
estimator = TensorFlow(
    entry_point='train.py',
    role=sagemaker.get_execution_role(),
    instance_count=1,
    instance_type='ml.p2.xlarge',
    framework_version='2.4',
    py_version='py37',
    hyperparameters={
        'batch_size': 64,
        'epochs': 100,
        'latent_dim': 100
    }
)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Start the training job
&lt;/h1&gt;

&lt;p&gt;estimator.fit({'training': 's3://bucket-name/path-to-training-data'})&lt;br&gt;
Generate new fashion designs: Once the generative AI model is trained, we can generate new fashion designs. We can use the trained model to generate new clothing designs, colors, and patterns. The generated designs can be used to create virtual fashion collections or to inspire new physical collections.&lt;/p&gt;

&lt;p&gt;Here is some sample code for generating new fashion designs using a trained GAN model:&lt;/p&gt;

&lt;p&gt;`&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;`&lt;br&gt;
&lt;em&gt;python&lt;/em&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Import the required libraries
&lt;/h1&gt;

&lt;p&gt;import tensorflow as tf&lt;br&gt;
import numpy as np&lt;/p&gt;

&lt;h1&gt;
  
  
  Load the trained GAN model
&lt;/h1&gt;

&lt;p&gt;model = tf.keras.models.load_model('path-to-trained-model')&lt;/p&gt;

&lt;h1&gt;
  
  
  Generate new fashion designs
&lt;/h1&gt;

&lt;p&gt;latent_dim = 100&lt;br&gt;
num_samples = 10&lt;/p&gt;

&lt;h1&gt;
  
  
  Generate random latent vectors
&lt;/h1&gt;

&lt;p&gt;latent_vectors = np.random.normal(size=(num_samples, latent_dim))&lt;/p&gt;

&lt;h1&gt;
  
  
  Generate new designs
&lt;/h1&gt;

&lt;p&gt;generated_images = model.predict(latent_vectors)&lt;/p&gt;

&lt;h1&gt;
  
  
  Display the generated images
&lt;/h1&gt;

&lt;p&gt;for i in range(num_samples):&lt;br&gt;
    plt.subplot(2, 5, i+1)&lt;br&gt;
    plt.imshow(generated_images[i])&lt;br&gt;
    plt.axis('off')&lt;br&gt;
plt.show()&lt;br&gt;
`&lt;code&gt;&lt;/code&gt;&lt;br&gt;
`&lt;br&gt;
Create virtual fashion collections: The generated fashion designs can be used to create virtual fashion collections. We can use a virtual styling tool to mix and match the generated designs to create new collections. The virtual styling tool can be implemented using Amazon SageMaker Ground Truth, a fully managed data labeling service.&lt;br&gt;
Here is some sample code for implementing a virtual styling tool using Amazon SageMaker Ground Truth:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;python&lt;/em&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Import the required libraries
&lt;/h1&gt;

&lt;p&gt;import boto3&lt;br&gt;
import uuid&lt;/p&gt;

&lt;h1&gt;
  
  
  Set up the labeling job
&lt;/h1&gt;

&lt;p&gt;sagemaker_client = boto3.client('sagemaker')&lt;br&gt;
labeling_job_name = str(uuid.uuid4())&lt;br&gt;
input_data_location = 's3://bucket-name/path-to-generated-designs'&lt;/p&gt;

&lt;p&gt;response = sagemaker_client.create_labeling_job(&lt;br&gt;
    LabelingJobName=labeling_job_name,&lt;br&gt;
    InputConfig={&lt;br&gt;
        'DataSource': {&lt;br&gt;
            'S3DataSource': {&lt;br&gt;
                'ManifestS3Uri': input_data_location&lt;br&gt;
            }&lt;br&gt;
        }&lt;br&gt;
    },&lt;br&gt;
    OutputConfig={&lt;br&gt;
        'S3OutputPath': 's3://bucket-name/path-to-output'&lt;br&gt;
    },&lt;br&gt;
    LabelAttributeName='fashion_style',&lt;br&gt;
    HumanTaskConfig={&lt;br&gt;
        'WorkteamArn': 'arn:aws:sagemaker:region:account-id:workteam/workteam-name',&lt;br&gt;
        'UiConfig': {&lt;br&gt;
            'UiTemplateS3Uri': 's3://bucket-name/path-to-ui-template'&lt;br&gt;
        },&lt;br&gt;
        'PreHumanTaskLambdaArn': 'arn:aws:lambda:region:account-id:function:function-name',&lt;br&gt;
        'TaskKeywords': ['fashion', 'style', 'design'],&lt;br&gt;
        'TaskTitle': 'Virtual Fashion Styling',&lt;br&gt;
        'TaskDescription': 'Create virtual fashion collections using generated designs.'&lt;br&gt;
    }&lt;br&gt;
)&lt;br&gt;
Conclusion&lt;/p&gt;

&lt;p&gt;Generative AI and virtual fashion styling can help businesses create new designs and collections without the need for physical samples. Amazon SageMaker provides a powerful platform for implementing generative AI in the fashion industry. With Amazon SageMaker, businesses can train generative AI models, generate new fashion designs, and create virtual fashion collections. By embracing generative AI and virtual fashion styling, businesses can stay ahead of the curve and provide innovative and unique fashion products to their customers.&lt;br&gt;
reference: &lt;a href="https://aws.amazon.com/blogs/machine-learning/virtual-fashion-styling-with-generative-ai-using-amazon-sagemaker/"&gt;AWS Blog&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Generative AI and Virtual Fashion Styling with Amazon SageMaker</title>
      <dc:creator>Ahmar Khan</dc:creator>
      <pubDate>Fri, 31 Mar 2023 11:55:49 +0000</pubDate>
      <link>https://dev.to/aws-builders/generative-ai-and-virtual-fashion-styling-with-amazon-sagemaker-bcj</link>
      <guid>https://dev.to/aws-builders/generative-ai-and-virtual-fashion-styling-with-amazon-sagemaker-bcj</guid>
      <description>&lt;p&gt;Artificial intelligence (AI) is revolutionizing various industries, and the fashion industry is no exception. With generative AI, businesses can create virtual fashion designs and generate endless possibilities without the need for physical samples. Amazon SageMaker is an excellent platform for implementing generative AI in the fashion industry.&lt;/p&gt;

&lt;p&gt;In this blog, we will explore how generative AI works and how Amazon SageMaker can be used to implement virtual fashion styling using generative AI.&lt;/p&gt;

&lt;p&gt;Generative AI and How it Works&lt;/p&gt;

&lt;p&gt;Generative AI is a type of machine learning that involves training a model on a dataset to create new data similar to the input data. It is particularly useful for creating new designs, images, and sounds. Generative AI models can be trained using a variety of techniques, including variational autoencoders, generative adversarial networks (GANs), and transformer models.&lt;/p&gt;

&lt;p&gt;GANs are a popular generative AI technique for image generation. The GAN consists of two neural networks: a generator and a discriminator. The generator generates images, while the discriminator tries to distinguish between real and generated images. The generator's goal is to create images that the discriminator cannot distinguish from real images.&lt;/p&gt;

&lt;p&gt;Once the GAN is trained, it can generate endless variations of images. For example, a GAN trained on fashion images can generate new clothing designs, colors, and patterns. This can be particularly useful for businesses that want to explore new design possibilities without the need for physical samples.&lt;/p&gt;

&lt;p&gt;Amazon SageMaker and Generative AI&lt;/p&gt;

&lt;p&gt;Amazon SageMaker is a fully managed machine learning platform that provides everything needed to build, train, and deploy machine learning models at scale. It includes pre-built algorithms, frameworks, and tools that make it easy to build and train machine learning models.&lt;/p&gt;

&lt;p&gt;Amazon SageMaker also provides a range of pre-built machine learning models for various tasks, including image classification, object detection, and text classification. These pre-built models can be used to accelerate the development of generative AI models for virtual fashion styling.&lt;/p&gt;

&lt;p&gt;Virtual Fashion Styling with Generative AI using Amazon SageMaker&lt;/p&gt;

&lt;p&gt;To implement virtual fashion styling using generative AI&lt;br&gt;
 in Amazon SageMaker, we need to follow the following steps:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiappqtlgxctry8mcmlas.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiappqtlgxctry8mcmlas.png" alt="Image description" width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Prepare the dataset: The first step is to prepare a dataset of fashion images. The dataset should include images of clothing items from different angles and in different colors and patterns. The dataset should also include images of fashion accessories such as shoes, bags, and jewelry.&lt;/p&gt;

&lt;p&gt;Train a generative AI model: The next step is to train a generative AI model on the dataset. We can use a GAN to generate new clothing designs, colors, and patterns. Amazon SageMaker provides pre-built GAN models that we can use to accelerate the training process.&lt;/p&gt;

&lt;p&gt;Here is some sample code for training a GAN model in Amazon SageMaker:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;_python_
# Import the required libraries
import sagemaker
from sagemaker.tensorflow import TensorFlow

# Set up the training job
estimator = TensorFlow(
    entry_point='train.py',
    role=sagemaker.get_execution_role(),
    instance_count=1,
    instance_type='ml.p2.xlarge',
    framework_version='2.4',
    py_version='py37',
    hyperparameters={
        'batch_size': 64,
        'epochs': 100,
        'latent_dim': 100
    }
)

#### Start the training job

estimator.fit({'training': 's3://bucket-name/path-to-training-data'})

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Generate new fashion designs: Once the generative AI model is trained, we can generate new fashion designs. We can use the trained model to generate new clothing designs, colors, and patterns. The generated designs can be used to create virtual fashion collections or to inspire new physical collections.&lt;/p&gt;

&lt;p&gt;Here is some sample code for generating new fashion designs using a trained GAN model:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python
_Import the required libraries_

import tensorflow as tf
import numpy as np

# Load the trained GAN model
model = tf.keras.models.load_model('path-to-trained-model')

# Generate new fashion designs
latent_dim = 100
num_samples = 10

# Generate random latent vectors
latent_vectors = np.random.normal(size=(num_samples, latent_dim))

# Generate new designs
generated_images = model.predict(latent_vectors)

# Display the generated images
for i in range(num_samples):
    plt.subplot(2, 5, i+1)
    plt.imshow(generated_images[i])
    plt.axis('off')
plt.show()

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Create virtual fashion collections: The generated fashion designs can be used to create virtual fashion collections. We can use a virtual styling tool to mix and match the generated designs to create new collections. The virtual styling tool can be implemented using Amazon SageMaker Ground Truth, a fully managed data labeling service.&lt;br&gt;
Here is some sample code for implementing a virtual styling tool using Amazon SageMaker Ground Truth:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;_python_
# Import the required libraries
import boto3
import uuid

# Set up the labeling job
sagemaker_client = boto3.client('sagemaker')
labeling_job_name = str(uuid.uuid4())
input_data_location = 's3://bucket-name/path-to-generated-designs'

response = sagemaker_client.create_labeling_job(
    LabelingJobName=labeling_job_name,
    InputConfig={
        'DataSource': {
            'S3DataSource': {
                'ManifestS3Uri': input_data_location
            }
        }
    },
    OutputConfig={
        'S3OutputPath': 's3://bucket-name/path-to-output'
    },
    LabelAttributeName='fashion_style',
    HumanTaskConfig={
        'WorkteamArn': 'arn:aws:sagemaker:region:account-id:workteam/workteam-name',
        'UiConfig': {
            'UiTemplateS3Uri': 's3://bucket-name/path-to-ui-template'
        },
        'PreHumanTaskLambdaArn': 'arn:aws:lambda:region:account-id:function:function-name',
        'TaskKeywords': ['fashion', 'style', 'design'],
        'TaskTitle': 'Virtual Fashion Styling',
        'TaskDescription': 'Create virtual fashion collections using generated designs.'
    }
)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;Generative AI and virtual fashion styling can help businesses create new designs and collections without the need for physical samples. Amazon SageMaker provides a powerful platform for implementing generative AI in the fashion industry. With Amazon SageMaker, businesses can train generative AI models, generate new fashion designs, and create virtual fashion collections. By embracing generative AI and virtual fashion styling, businesses can stay ahead of the curve and provide innovative and unique fashion products to their customers.&lt;br&gt;
Reference: &lt;a href="https://aws.amazon.com/blogs/machine-learning/virtual-fashion-styling-with-generative-ai-using-amazon-sagemaker/" rel="noopener noreferrer"&gt;AWS Blog&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>aws</category>
      <category>generativeai</category>
      <category>business</category>
    </item>
    <item>
      <title>Jumpstart Your Tech Career with AWS Community Builder!</title>
      <dc:creator>Ahmar Khan</dc:creator>
      <pubDate>Sat, 25 Mar 2023 20:03:25 +0000</pubDate>
      <link>https://dev.to/aws-builders/jumpstart-your-tech-career-with-aws-community-builder-5gd3</link>
      <guid>https://dev.to/aws-builders/jumpstart-your-tech-career-with-aws-community-builder-5gd3</guid>
      <description>&lt;p&gt;Should I become a AWS Community Builder?&lt;br&gt;
&lt;em&gt;&lt;strong&gt;Yes!&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;For those from underrepresented or remote areas, or who have graduated but do not have hands-on experience or the skills to compete, the AWS Community Builder Program provides essential exposure, guidance, and support. Through training sessions on soft skills and technical skills growth, connecting individuals with mentors, and providing access to resources, the AWS Community Builder Program can help newcomers hone their skills and become ready for the world.&lt;/p&gt;

&lt;p&gt;Being a newbie in the tech industry from a  underrepresented or remote areas,can be daunting. It takes a lot of effort to reach the standards to develop something extraordinary, and often newbies are unable to access the mentorship and guidance they need to get started. Fortunately, the AWS Community Builder Program provides a great opportunity for early professionals to get their feet wet in the tech industry.It help newcomers hone their skills and become ready for the world.&lt;/p&gt;

&lt;p&gt;Not only you can learn the fundamentals of working with AWS,launching AI/ML projects but you can also connect with other tech professionals and experienced AWS users in the community. Additionally, benefit from AWS's $500 credits, cloud academy courses and AWS open source projects, allowing you to create projects and applications with minimal cost. The AWS Community Builder Program is also very flexible and allows individuals to work on their own timeline, so you can fit it in around other commitments and activities.&lt;/p&gt;

&lt;p&gt;From cloud academy you can learn about cloud computing, big data, programming, security and business management. From the sessions by the community you can learn story telling, startup pitching, content creation, etc and AWS services training. AWS Team and AWS Heroes are always available to guide you.&lt;br&gt;
AWS provides certification vouchers for AWS exams to assist you in obtaining internationally recognized professional certification.&lt;/p&gt;

&lt;p&gt;For those who have experience and have a portfolio, AWS provides a chance to be selected to travel to the biggest event of cloud computing, AWS Re:invent. They provide fully-sponsored travel to the event.&lt;/p&gt;

&lt;p&gt;The application form for the program is currently closed and is scheduled to re-open in July 2023. To be notified when the form re-opens, please add your name to the &lt;a href="https://pulse.buildon.aws/application/5N4TVOCW"&gt;waitlist&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloud</category>
      <category>career</category>
      <category>community</category>
    </item>
  </channel>
</rss>
