<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Activitiez...</title>
    <link>https://rainflow.tistory.com/</link>
    <description>아두이노, 매트랩, 기타 개인적 관심사의 파편과 퍼즐조각 입니다.</description>
    <language>ko</language>
    <pubDate>Fri, 10 Apr 2026 16:29:53 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>mindrefill</managingEditor>
    <image>
      <title>Activitiez...</title>
      <url>https://t1.daumcdn.net/cfile/tistory/135F2243508E56B21A</url>
      <link>https://rainflow.tistory.com</link>
    </image>
    <item>
      <title>// keras // Object arrays cannot be loaded when allow_pickle=False</title>
      <link>https://rainflow.tistory.com/767</link>
      <description>&lt;p&gt;imdb.load_data 실행시에 아래와 같은 에러가 난다면,&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #f41a18;&quot;&gt;&lt;i&gt;&lt;b&gt;Object&amp;nbsp;arrays&amp;nbsp;cannot&amp;nbsp;be&amp;nbsp;loaded&amp;nbsp;when&amp;nbsp;allow_pickle=False&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;아래 세가지 중에 한가지로 개선됨.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Numpy 버전을 1.16.1이나 1.16.2로 다운그레이드&lt;/p&gt;
&lt;p&gt;2. 또는 아래와 같이 데이터 로딩할때만 defualt parameter를 수정&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;##############################################################################&lt;/p&gt;
&lt;p&gt;import&amp;nbsp;numpy&amp;nbsp;as&amp;nbsp;np&lt;/p&gt;
&lt;p&gt;#####&amp;nbsp;&amp;nbsp;&amp;nbsp;Fix&amp;nbsp;Numpy&amp;nbsp;Error &lt;br /&gt;np_load_old&amp;nbsp;=&amp;nbsp;&lt;a href=&quot;np.load&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;np.load&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;save&amp;nbsp;&lt;a href=&quot;np.load&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;np.load&lt;/a&gt; &lt;br /&gt;&lt;a href=&quot;np.load&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;np.load&lt;/a&gt;&amp;nbsp;=&amp;nbsp;lambda&amp;nbsp;*a,**k:&amp;nbsp;np_load_old(*a,&amp;nbsp;allow_pickle=True,&amp;nbsp;**k)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;modify&amp;nbsp;the&amp;nbsp;default&amp;nbsp;parameters&amp;nbsp;of&amp;nbsp;&lt;a href=&quot;np.load&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;np.load&lt;/a&gt; &lt;br /&gt;(input_train,&amp;nbsp;y_train),&amp;nbsp;(input_test,&amp;nbsp;y_test)&amp;nbsp;=&amp;nbsp;imdb.load_data(num_words&amp;nbsp;=&amp;nbsp;max_features) &lt;br /&gt;&lt;a href=&quot;np.load&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;np.load&lt;/a&gt;&amp;nbsp;=&amp;nbsp;np_load_old&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#&amp;nbsp;restore&amp;nbsp;&lt;a href=&quot;np.load&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;np.load&lt;/a&gt;&amp;nbsp;for&amp;nbsp;future&amp;nbsp;normal&amp;nbsp;usage &lt;br /&gt;del(np_load_old) &lt;br /&gt;#####&amp;nbsp;&amp;nbsp;&amp;nbsp;Fix&amp;nbsp;Numpy&amp;nbsp;Error&lt;/p&gt;
&lt;p&gt;##############################################################################&lt;/p&gt;
&lt;p&gt;thanks to&amp;nbsp;&lt;a href=&quot;https://stackoverflow.com/questions/55890813/how-to-fix-object-arrays-cannot-be-loaded-when-allow-pickle-false-for-imdb-loa&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;https://stackoverflow.com/questions/55890813/how-to-fix-object-arrays-cannot-be-loaded-when-allow-pickle-false-for-imdb-loa&lt;/a&gt;&lt;/p&gt;
&lt;figure id=&quot;og_1567590462128&quot; contenteditable=&quot;false&quot; data-ke-type=&quot;opengraph&quot;&gt;&lt;a href=&quot;https://stackoverflow.com/questions/55890813/how-to-fix-object-arrays-cannot-be-loaded-when-allow-pickle-false-for-imdb-loa&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; data-original-url=&quot;https://stackoverflow.com/questions/55890813/how-to-fix-object-arrays-cannot-be-loaded-when-allow-pickle-false-for-imdb-loa&quot;&gt;
&lt;div class=&quot;og-image&quot; style=&quot;background-image: url('https://scrap.kakaocdn.net/dn/bVnsAk/hyCIN9uCzU/azZIhS0oEJBwR3xvS1oF0k/img.png?width=316&amp;amp;height=316&amp;amp;face=0_0_316_316');&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;og-text&quot;&gt;
&lt;p class=&quot;og-title&quot;&gt;How to fix 'Object arrays cannot be loaded when allow_pickle=False' for imdb.load_data() function?&lt;/p&gt;
&lt;p class=&quot;og-desc&quot;&gt;I'm trying to implement the binary classification example using the IMDb dataset in Google Colab. I have implemented this model before. But when I tried to do it again after a few days, it returned a&lt;/p&gt;
&lt;p class=&quot;og-host&quot;&gt;stackoverflow.com&lt;/p&gt;
&lt;/div&gt;
&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. keras 2.2.5 버전에서는 개선 됨&lt;/p&gt;</description>
      <category>Language/Keras,  Tensorflow</category>
      <author>mindrefill</author>
      <guid isPermaLink="true">https://rainflow.tistory.com/767</guid>
      <comments>https://rainflow.tistory.com/767#entry767comment</comments>
      <pubDate>Wed, 4 Sep 2019 18:26:55 +0900</pubDate>
    </item>
    <item>
      <title>// 책 // 허교수의 ARM Mbed 프로그래밍 입문</title>
      <link>https://rainflow.tistory.com/766</link>
      <description>&lt;p&gt;Mbed로 넘어가려고 이것저것 끄적대기한 하다가 딥러닝에 정신이 팔려있었다...&lt;/p&gt;
&lt;p&gt;오랫만에 다시 Mbed를 만져봐야겠다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;안그래도 카페에서 책 출판한다고 해서 기다리고 있던차에 꼼꼼하게 한번 봐야지...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; data-filename=&quot;KakaoTalk_20190830_132320905.jpg&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/Qkjwo/btqxShh8hzH/cXUnreyQAavdG3nfqZNZb1/img.jpg&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/Qkjwo/btqxShh8hzH/cXUnreyQAavdG3nfqZNZb1/img.jpg&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/Qkjwo/btqxShh8hzH/cXUnreyQAavdG3nfqZNZb1/img.jpg&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FQkjwo%2FbtqxShh8hzH%2FcXUnreyQAavdG3nfqZNZb1%2Fimg.jpg&quot; data-filename=&quot;KakaoTalk_20190830_132320905.jpg&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <category>MCU/MBed</category>
      <author>mindrefill</author>
      <guid isPermaLink="true">https://rainflow.tistory.com/766</guid>
      <comments>https://rainflow.tistory.com/766#entry766comment</comments>
      <pubDate>Fri, 30 Aug 2019 13:27:12 +0900</pubDate>
    </item>
    <item>
      <title>// Keras // MNIST를 이용한 계산시간 비교</title>
      <link>https://rainflow.tistory.com/763</link>
      <description>&lt;p&gt;프랑소와 숄레의 Deep Learning with Python에 나와있는 MNIST 예제를 PC와 Colab으로 계산시간 비교&lt;/p&gt;
&lt;p&gt;Source Code&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;https://github.com/keras-team/keras/blob/master/examples/mnist_cnn.py&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;https://github.com/keras-team/keras/blob/master/examples/mnist_cnn.py&lt;/a&gt;&lt;/p&gt;
&lt;figure id=&quot;og_1565229374333&quot; contenteditable=&quot;false&quot; data-ke-type=&quot;opengraph&quot;&gt;&lt;a href=&quot;https://github.com/keras-team/keras&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot; data-original-url=&quot;https://github.com/keras-team/keras/blob/master/examples/mnist_cnn.py&quot;&gt;
&lt;div class=&quot;og-image&quot; style=&quot;background-image: url('https://scrap.kakaocdn.net/dn/4DAtM/hyCjVVud2e/vfmeImD5gM5CLcWziklBO0/img.jpg?width=330&amp;amp;height=330&amp;amp;face=0_0_330_330');&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;og-text&quot;&gt;
&lt;p class=&quot;og-title&quot;&gt;keras-team/keras&lt;/p&gt;
&lt;p class=&quot;og-desc&quot;&gt;Deep Learning for humans. Contribute to keras-team/keras development by creating an account on GitHub.&lt;/p&gt;
&lt;p class=&quot;og-host&quot;&gt;github.com&lt;/p&gt;
&lt;/div&gt;
&lt;/a&gt;&lt;/figure&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;colorscripter-code&quot; style=&quot;color: #f0f0f0; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position: relative !important; overflow: auto;&quot;&gt;
&lt;table class=&quot;colorscripter-code-table&quot; style=&quot;margin: 0; padding: 0; border: none; background-color: #272727; border-radius: 4px;&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;padding: 6px; border-right: 2px solid #4f4f4f;&quot;&gt;
&lt;div style=&quot;margin: 0; padding: 0; word-break: normal; text-align: right; color: #aaa; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height: 130%;&quot;&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;1&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;2&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;3&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;4&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;5&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;6&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;7&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;8&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;9&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;10&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;11&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;12&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;13&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;14&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;15&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;16&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;17&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;18&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;19&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;20&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;21&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;22&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;23&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;24&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;25&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;26&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;27&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;28&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;29&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;30&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;31&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;32&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;33&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;34&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;35&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;36&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;37&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;38&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;39&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;40&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;41&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;42&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;43&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;44&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;45&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;46&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;47&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;48&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;49&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;50&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;51&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;52&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;53&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;54&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;55&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;56&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;57&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;58&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;59&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;60&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;61&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;62&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;63&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;64&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;65&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;66&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;67&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;68&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;69&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;70&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;71&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;72&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;73&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;74&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;75&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;76&lt;/div&gt;
&lt;div style=&quot;line-height: 130%;&quot;&gt;77&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;padding: 6px 0; text-align: left;&quot;&gt;
&lt;div style=&quot;margin: 0; padding: 0; color: #f0f0f0; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; line-height: 130%;&quot;&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ffd500;&quot;&gt;''&lt;/span&gt;&lt;span style=&quot;color: #ffd500;&quot;&gt;'Trains&amp;nbsp;a&amp;nbsp;simple&amp;nbsp;convnet&amp;nbsp;on&amp;nbsp;the&amp;nbsp;MNIST&amp;nbsp;dataset.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ffd500;&quot;&gt;Gets&amp;nbsp;to&amp;nbsp;99.25%&amp;nbsp;test&amp;nbsp;accuracy&amp;nbsp;after&amp;nbsp;12&amp;nbsp;epochs&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ffd500;&quot;&gt;(there&amp;nbsp;is&amp;nbsp;still&amp;nbsp;a&amp;nbsp;lot&amp;nbsp;of&amp;nbsp;margin&amp;nbsp;for&amp;nbsp;parameter&amp;nbsp;tuning).&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ffd500;&quot;&gt;16&amp;nbsp;seconds&amp;nbsp;per&amp;nbsp;epoch&amp;nbsp;on&amp;nbsp;a&amp;nbsp;GRID&amp;nbsp;K520&amp;nbsp;GPU.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ffd500;&quot;&gt;'&lt;/span&gt;&lt;span style=&quot;color: #ffd500;&quot;&gt;''&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;from&lt;/span&gt;&amp;nbsp;__future__&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;import&lt;/span&gt;&amp;nbsp;print_function&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;import&lt;/span&gt;&amp;nbsp;keras&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;from&lt;/span&gt;&amp;nbsp;keras.datasets&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;import&lt;/span&gt;&amp;nbsp;mnist&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;from&lt;/span&gt;&amp;nbsp;keras.models&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;import&lt;/span&gt;&amp;nbsp;Sequential&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;from&lt;/span&gt;&amp;nbsp;keras.layers&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;import&lt;/span&gt;&amp;nbsp;Dense,&amp;nbsp;Dropout,&amp;nbsp;Flatten&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;from&lt;/span&gt;&amp;nbsp;keras.layers&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;import&lt;/span&gt;&amp;nbsp;Conv2D,&amp;nbsp;MaxPooling2D&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;from&lt;/span&gt;&amp;nbsp;keras&amp;nbsp;&lt;span style=&quot;color: #ff3399;&quot;&gt;import&lt;/span&gt;&amp;nbsp;backend&amp;nbsp;as&amp;nbsp;K&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;batch_size&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;128&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;num_classes&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;10&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;epochs&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;12&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;#&amp;nbsp;input&amp;nbsp;image&amp;nbsp;dimensions&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;img_rows,&amp;nbsp;img_cols&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;28&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;28&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;#&amp;nbsp;the&amp;nbsp;data,&amp;nbsp;split&amp;nbsp;between&amp;nbsp;train&amp;nbsp;and&amp;nbsp;test&amp;nbsp;sets&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;(x_train,&amp;nbsp;y_train),&amp;nbsp;(x_test,&amp;nbsp;y_test)&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;mnist.load_data()&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;if&lt;/span&gt;&amp;nbsp;K.image_data_format()&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ffd500;&quot;&gt;'channels_first'&lt;/span&gt;:&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x_train&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;x_train.reshape(x_train.shape[&lt;span style=&quot;color: #c10aff;&quot;&gt;0&lt;/span&gt;],&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;1&lt;/span&gt;,&amp;nbsp;img_rows,&amp;nbsp;img_cols)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x_test&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;x_test.reshape(x_test.shape[&lt;span style=&quot;color: #c10aff;&quot;&gt;0&lt;/span&gt;],&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;1&lt;/span&gt;,&amp;nbsp;img_rows,&amp;nbsp;img_cols)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;input_shape&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;(&lt;span style=&quot;color: #c10aff;&quot;&gt;1&lt;/span&gt;,&amp;nbsp;img_rows,&amp;nbsp;img_cols)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;else&lt;/span&gt;:&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x_train&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;x_train.reshape(x_train.shape[&lt;span style=&quot;color: #c10aff;&quot;&gt;0&lt;/span&gt;],&amp;nbsp;img_rows,&amp;nbsp;img_cols,&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;1&lt;/span&gt;)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;x_test&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;x_test.reshape(x_test.shape[&lt;span style=&quot;color: #c10aff;&quot;&gt;0&lt;/span&gt;],&amp;nbsp;img_rows,&amp;nbsp;img_cols,&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;1&lt;/span&gt;)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;input_shape&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;(img_rows,&amp;nbsp;img_cols,&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;1&lt;/span&gt;)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;x_train&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;x_train.astype(&lt;span style=&quot;color: #ffd500;&quot;&gt;'float32'&lt;/span&gt;)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;x_test&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;x_test.astype(&lt;span style=&quot;color: #ffd500;&quot;&gt;'float32'&lt;/span&gt;)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;x_train&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;255&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;x_test&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;255&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #4be6fa;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #ffd500;&quot;&gt;'x_train&amp;nbsp;shape:'&lt;/span&gt;,&amp;nbsp;x_train.shape)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #4be6fa;&quot;&gt;print&lt;/span&gt;(x_train.shape[&lt;span style=&quot;color: #c10aff;&quot;&gt;0&lt;/span&gt;],&amp;nbsp;&lt;span style=&quot;color: #ffd500;&quot;&gt;'train&amp;nbsp;samples'&lt;/span&gt;)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #4be6fa;&quot;&gt;print&lt;/span&gt;(x_test.shape[&lt;span style=&quot;color: #c10aff;&quot;&gt;0&lt;/span&gt;],&amp;nbsp;&lt;span style=&quot;color: #ffd500;&quot;&gt;'test&amp;nbsp;samples'&lt;/span&gt;)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;#&amp;nbsp;convert&amp;nbsp;class&amp;nbsp;vectors&amp;nbsp;to&amp;nbsp;binary&amp;nbsp;class&amp;nbsp;matrices&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;y_train&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;keras.utils.to_categorical(y_train,&amp;nbsp;num_classes)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;y_test&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;keras.utils.to_categorical(y_test,&amp;nbsp;num_classes)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;model&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;Sequential()&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;model.add(Conv2D(&lt;span style=&quot;color: #c10aff;&quot;&gt;32&lt;/span&gt;,&amp;nbsp;kernel_size&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;(&lt;span style=&quot;color: #c10aff;&quot;&gt;3&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;3&lt;/span&gt;),&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;activation&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ffd500;&quot;&gt;'relu'&lt;/span&gt;,&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;input_shape&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;input_shape))&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;model.add(Conv2D(&lt;span style=&quot;color: #c10aff;&quot;&gt;64&lt;/span&gt;,&amp;nbsp;(&lt;span style=&quot;color: #c10aff;&quot;&gt;3&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;3&lt;/span&gt;),&amp;nbsp;activation&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ffd500;&quot;&gt;'relu'&lt;/span&gt;))&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;model.add(MaxPooling2D(pool_size&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;(&lt;span style=&quot;color: #c10aff;&quot;&gt;2&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #c10aff;&quot;&gt;2&lt;/span&gt;)))&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;model.add(Dropout(&lt;span style=&quot;color: #c10aff;&quot;&gt;0.&lt;/span&gt;&lt;span style=&quot;color: #c10aff;&quot;&gt;25&lt;/span&gt;))&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;model.add(Flatten())&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;model.add(Dense(&lt;span style=&quot;color: #c10aff;&quot;&gt;128&lt;/span&gt;,&amp;nbsp;activation&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ffd500;&quot;&gt;'relu'&lt;/span&gt;))&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;model.add(Dropout(&lt;span style=&quot;color: #c10aff;&quot;&gt;0.&lt;/span&gt;&lt;span style=&quot;color: #c10aff;&quot;&gt;5&lt;/span&gt;))&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;model.add(Dense(num_classes,&amp;nbsp;activation&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ffd500;&quot;&gt;'softmax'&lt;/span&gt;))&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;model.compile(loss&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;keras.losses.categorical_crossentropy,&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;optimizer&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;keras.optimizers.Adadelta(),&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;metrics&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;[&lt;span style=&quot;color: #ffd500;&quot;&gt;'accuracy'&lt;/span&gt;])&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;model.summary()&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;import&lt;/span&gt;&amp;nbsp;time&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;start&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;time.time()&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #999999;&quot;&gt;#&amp;nbsp;시작&amp;nbsp;시간&amp;nbsp;저장&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;model.fit(x_train,&amp;nbsp;y_train,&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;batch_size&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;batch_size,&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;epochs&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;epochs,&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;verbose&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c10aff;&quot;&gt;1&lt;/span&gt;,&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;validation_data&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;(x_test,&amp;nbsp;y_test))&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;score&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&amp;nbsp;model.evaluate(x_test,&amp;nbsp;y_test,&amp;nbsp;verbose&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #c10aff;&quot;&gt;0&lt;/span&gt;)&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #4be6fa;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #ffd500;&quot;&gt;&quot;time&amp;nbsp;:&quot;&lt;/span&gt;,&amp;nbsp;time.time()&amp;nbsp;&lt;span style=&quot;color: #0086b3;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff3399;&quot;&gt;-&lt;/span&gt;&amp;nbsp;start)&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #999999;&quot;&gt;#&amp;nbsp;현재시각&amp;nbsp;-&amp;nbsp;시작시간&amp;nbsp;=&amp;nbsp;실행&amp;nbsp;시간&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #4be6fa;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #ffd500;&quot;&gt;'Test&amp;nbsp;loss:'&lt;/span&gt;,&amp;nbsp;score[&lt;span style=&quot;color: #c10aff;&quot;&gt;0&lt;/span&gt;])&lt;/div&gt;
&lt;div style=&quot;padding: 0 6px; white-space: pre; line-height: 130%;&quot;&gt;&lt;span style=&quot;color: #4be6fa;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color: #ffd500;&quot;&gt;'Test&amp;nbsp;accuracy:'&lt;/span&gt;,&amp;nbsp;score[&lt;span style=&quot;color: #c10aff;&quot;&gt;1&lt;/span&gt;])&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: right; margin-top: -13px; margin-right: 5px; font-size: 9px; font-style: italic;&quot;&gt;&lt;a style=&quot;color: #4f4f4ftext-decoration:none;&quot; href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;Colored by Color Scripter&lt;/a&gt;&lt;/div&gt;
&lt;/td&gt;
&lt;td style=&quot;vertical-align: bottom; padding: 0 2px 4px 0;&quot;&gt;&lt;a style=&quot;text-decoration: none; color: white;&quot; href=&quot;http://colorscripter.com/info#e&quot; target=&quot;_blank&quot; rel=&quot;noopener&quot;&gt;&lt;span style=&quot;font-size: 9px; word-break: normal; background-color: #4f4f4f; color: white; border-radius: 10px; padding: 1px;&quot;&gt;cs&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #f41a18;&quot;&gt;&lt;b&gt;PC i7-7700 @ 3.60GHz, 32GB x64 (CPU)&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Train&amp;nbsp;on&amp;nbsp;60000&amp;nbsp;samples,&amp;nbsp;validate&amp;nbsp;on&amp;nbsp;10000&amp;nbsp;samples &lt;br /&gt;Epoch&amp;nbsp;1/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;71s&amp;nbsp;1ms/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.2752&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9160&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0547&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9826 &lt;br /&gt;Epoch&amp;nbsp;2/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;69s&amp;nbsp;1ms/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0909&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9730&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0396&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9859 &lt;br /&gt;Epoch&amp;nbsp;3/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;69s&amp;nbsp;1ms/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0676&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9797&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0325&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9887 &lt;br /&gt;Epoch&amp;nbsp;4/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;68s&amp;nbsp;1ms/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0550&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9838&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0300&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9901 &lt;br /&gt;Epoch&amp;nbsp;5/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;68s&amp;nbsp;1ms/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0476&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9854&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0299&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9900 &lt;br /&gt;Epoch&amp;nbsp;6/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;68s&amp;nbsp;1ms/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0417&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9876&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0273&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9911 &lt;br /&gt;Epoch&amp;nbsp;7/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;69s&amp;nbsp;1ms/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0365&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9887&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0262&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9915 &lt;br /&gt;Epoch&amp;nbsp;8/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;71s&amp;nbsp;1ms/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0349&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9889&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0333&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9885 &lt;br /&gt;Epoch&amp;nbsp;9/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;69s&amp;nbsp;1ms/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0327&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9899&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0300&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9907 &lt;br /&gt;Epoch&amp;nbsp;10/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;69s&amp;nbsp;1ms/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0292&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9907&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0271&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9911 &lt;br /&gt;Epoch&amp;nbsp;11/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;71s&amp;nbsp;1ms/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0279&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9913&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0286&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9905 &lt;br /&gt;Epoch&amp;nbsp;12/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;73s&amp;nbsp;1ms/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0270&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9920&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0277&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9912 &lt;br /&gt;&lt;span style=&quot;color: #1b9ae6;&quot;&gt;&lt;b&gt;time&amp;nbsp;:&amp;nbsp;839.7007076740265&lt;/b&gt; &lt;/span&gt;&lt;br /&gt;Test&amp;nbsp;loss:&amp;nbsp;0.02767643234600473 &lt;br /&gt;Test&amp;nbsp;accuracy:&amp;nbsp;0.9912 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #f41a18;&quot;&gt;&lt;b&gt;Colab (GPU)&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Train&amp;nbsp;on&amp;nbsp;60000&amp;nbsp;samples,&amp;nbsp;validate&amp;nbsp;on&amp;nbsp;10000&amp;nbsp;samples &lt;br /&gt;Epoch&amp;nbsp;1/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;5s&amp;nbsp;79us/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0246&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9924&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0320&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9903 &lt;br /&gt;Epoch&amp;nbsp;2/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;5s&amp;nbsp;76us/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0238&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9922&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0251&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9920 &lt;br /&gt;Epoch&amp;nbsp;3/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;5s&amp;nbsp;76us/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0232&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9931&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0276&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9916 &lt;br /&gt;Epoch&amp;nbsp;4/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;5s&amp;nbsp;75us/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0226&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9931&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0293&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9917 &lt;br /&gt;Epoch&amp;nbsp;5/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;5s&amp;nbsp;75us/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0197&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9939&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0318&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9907 &lt;br /&gt;Epoch&amp;nbsp;6/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;5s&amp;nbsp;75us/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0199&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9937&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0269&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9917 &lt;br /&gt;Epoch&amp;nbsp;7/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;5s&amp;nbsp;75us/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0200&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9935&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0339&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9903 &lt;br /&gt;Epoch&amp;nbsp;8/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;5s&amp;nbsp;75us/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0189&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9938&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0279&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9922 &lt;br /&gt;Epoch&amp;nbsp;9/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;5s&amp;nbsp;75us/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0203&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9935&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0294&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9919 &lt;br /&gt;Epoch&amp;nbsp;10/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;5s&amp;nbsp;75us/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0177&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9948&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0270&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9923 &lt;br /&gt;Epoch&amp;nbsp;11/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;5s&amp;nbsp;75us/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0183&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9942&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0307&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9915 &lt;br /&gt;Epoch&amp;nbsp;12/12 &lt;br /&gt;60000/60000&amp;nbsp;[==============================]&amp;nbsp;-&amp;nbsp;5s&amp;nbsp;76us/step&amp;nbsp;-&amp;nbsp;loss:&amp;nbsp;0.0184&amp;nbsp;-&amp;nbsp;acc:&amp;nbsp;0.9941&amp;nbsp;-&amp;nbsp;val_loss:&amp;nbsp;0.0261&amp;nbsp;-&amp;nbsp;val_acc:&amp;nbsp;0.9919 &lt;br /&gt;&lt;span style=&quot;color: #1b9ae6;&quot;&gt;&lt;b&gt;time&amp;nbsp;:&amp;nbsp;55.00918984413147&lt;/b&gt; &lt;/span&gt;&lt;br /&gt;Test&amp;nbsp;loss:&amp;nbsp;0.02614340115247869 &lt;br /&gt;Test&amp;nbsp;accuracy:&amp;nbsp;0.9919&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;* PC 그래픽카드가 허접한거라 CPU와 Colab GPU를 비교한거지만... 확실히 GPU가 빠르긴하네...&lt;/p&gt;
&lt;p&gt;* Colab TPU도 그닥 빠르지는 않은 듯?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <category>Language/Keras,  Tensorflow</category>
      <author>mindrefill</author>
      <guid isPermaLink="true">https://rainflow.tistory.com/763</guid>
      <comments>https://rainflow.tistory.com/763#entry763comment</comments>
      <pubDate>Thu, 8 Aug 2019 11:01:45 +0900</pubDate>
    </item>
    <item>
      <title>// keras // Ubuntu에서 Tensorflow 설치하기</title>
      <link>https://rainflow.tistory.com/762</link>
      <description>&lt;p&gt;출처 : 유튜브&amp;nbsp;CS&amp;nbsp;With&amp;nbsp;James님&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;https://www.youtube.com/watch?v=LkpNEkQe7N0&amp;amp;list=PL6kYwK3mqV2tCcRdXTkM-ahjLgLUkhQXx&amp;amp;index=2&quot;&gt;https://www.youtube.com/watch?v=LkpNEkQe7N0&amp;amp;list=PL6kYwK3mqV2tCcRdXTkM-ahjLgLUkhQXx&amp;amp;index=2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. 우분투를 설치한다.&lt;/p&gt;
&lt;p&gt;2. 설치한 우분투를 최신 업데이트 한다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; $ sudo apt-get update &amp;amp;&amp;amp; sudo apt-get upgrade&lt;/p&gt;
&lt;p&gt;3. 터미널에서&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; 1) $ python3&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; 2) $ sudo apt-get python3-pip&amp;nbsp; &amp;nbsp; &amp;nbsp;// PIP 설치&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; 3) $ pip3&amp;nbsp; &amp;nbsp; // 설치된 패키지 확인&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; 4) $ sudo pip3 install tensorflow&amp;nbsp; &amp;nbsp; &amp;nbsp;// CPU 버전 tensorflow 설치&lt;/p&gt;
&lt;p&gt;4. 설치가 완료되면, python3로 들어가서 import tensorflow로 설치확인&lt;/p&gt;
&lt;p&gt;5. Jupyter Notebook 사용을 위해 설치&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; $ sudo pip3 jupyter&lt;/p&gt;
&lt;p&gt;6. Jupyter Notebook 실행&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; $ jupyter notebook&lt;/p&gt;
&lt;p&gt;7. Tensorflow GPU 버전 설치&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; 1) $ sudo apt-cache search nvidia&amp;nbsp; &amp;nbsp; &amp;nbsp;// nvidia 드라이버 최신 검색&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; 2) $ sudo apt-get install nvidia-384&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; 3) $ sudo chmod +x install_cuda.sh&amp;nbsp; &amp;nbsp; &amp;nbsp;// cuda 설치 스크립트 실행&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; 4) $ sudo ./install_cuda.sh&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;fileblock&quot; data-ke-align=&quot;alignCenter&quot;&gt;&lt;a href=&quot;https://blog.kakaocdn.net/dn/RGWIK/btqxgXyQ7rc/IPPmkyDXZ1QeOeKSJ0U5J0/install_cuda.sh?attach=1&amp;amp;knm=tfile.sh&quot; class=&quot;&quot;&gt;
    &lt;div class=&quot;image&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;desc&quot;&gt;&lt;div class=&quot;filename&quot;&gt;&lt;span class=&quot;name&quot;&gt;install_cuda.sh&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;size&quot;&gt;0.00MB&lt;/div&gt;
&lt;/div&gt;
  &lt;/a&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; 5) cuda toolkit 9.0과 cuDNN을 자동으로 다운받아 설치해 준다&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; 6) sudo pip3 uninstall tensorflow&amp;nbsp; &amp;nbsp; &amp;nbsp;// tensorflow CPU용을 삭제한다&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; 7)&amp;nbsp;&lt;span style=&quot;color: #333333;&quot;&gt;sudo pip3 install tensorflow-gpu&amp;nbsp; &amp;nbsp; &amp;nbsp;// tensorflow GPU를 설치한다&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <category>Language/Keras,  Tensorflow</category>
      <author>mindrefill</author>
      <guid isPermaLink="true">https://rainflow.tistory.com/762</guid>
      <comments>https://rainflow.tistory.com/762#entry762comment</comments>
      <pubDate>Wed, 7 Aug 2019 18:09:56 +0900</pubDate>
    </item>
    <item>
      <title>Arduino IDE digitalWrite를 이용한 속도비교</title>
      <link>https://rainflow.tistory.com/752</link>
      <description>&lt;p&gt;Arduino IDE digitalWrite HIGH/LOW를 이용한 속도비교&lt;/p&gt;&lt;p&gt;Saleae&amp;nbsp;Logic Analyser로 비교 함.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Arduino Uno :&amp;nbsp;145.5kHz&lt;/p&gt;&lt;p&gt;STM32duino 72MHz : 705.9kHz&lt;/p&gt;&lt;p&gt;STM32duino 128MHz : 1.263MHz&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;b&gt;STM32duino 128MHz가 Uno 대비해서 8.7배, 72Mhz 대비 1.8배 빠르네~&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;포트를 직접제어하면 훨씬 빠르겠네.. 어쨋던 속도비교는 됨.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;단적으로 모든 성능을 비교할 수는 없지만, ARM M3의 특징에 클럭까지 더해져 많이 빠른듯~&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <category>MCU/Arduino STM32F103C8T6</category>
      <author>mindrefill</author>
      <guid isPermaLink="true">https://rainflow.tistory.com/752</guid>
      <comments>https://rainflow.tistory.com/752#entry752comment</comments>
      <pubDate>Thu, 27 Dec 2018 13:34:50 +0900</pubDate>
    </item>
    <item>
      <title>GY-61 ADXL335 Acelerometro 3-Axis Analog Output Accelerometer Module Angular Transducer 3V-5V</title>
      <link>https://rainflow.tistory.com/750</link>
      <description>&lt;p&gt;GY-61 ADXL335 Acelerometro 3-Axis Analog Output Accelerometer Module Angular Transducer 3V-5V&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;출력측 Bandwidth를 세팅하기 위해 Cx, Cy, Cz를 선정함.&lt;/p&gt;&lt;p&gt;Break-Out Board에 0.1nF이 장착되어 있음(BW 약 50kHz), 필요시 변경요함!!!&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 531px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99135A3D5C2339A001&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99135A3D5C2339A001&quot; width=&quot;531&quot; height=&quot;574&quot; filename=&quot;2018-12-26_171908.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Self-Test&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 505px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99A2E5435C2339CE0A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99A2E5435C2339CE0A&quot; width=&quot;505&quot; height=&quot;246&quot; filename=&quot;2018-12-26_172016.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 510px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9914D4455C2315CF04&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9914D4455C2315CF04&quot; width=&quot;510&quot; height=&quot;320&quot; filename=&quot;2018-12-26_144632.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 489px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/993A36455C2315CF02&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F993A36455C2315CF02&quot; width=&quot;489&quot; height=&quot;323&quot; filename=&quot;2018-12-26_144644.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;신호는 잘 들어온다...&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>MCU/Module</category>
      <author>mindrefill</author>
      <guid isPermaLink="true">https://rainflow.tistory.com/750</guid>
      <comments>https://rainflow.tistory.com/750#entry750comment</comments>
      <pubDate>Wed, 26 Dec 2018 14:47:04 +0900</pubDate>
    </item>
    <item>
      <title>ST-Link로 업로드 할 때 시리얼모니터 문제</title>
      <link>https://rainflow.tistory.com/749</link>
      <description>&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;b&gt;//&amp;nbsp; ST-Link로 프로그래밍 시에는 시리얼 모니터를 닫고 업로드 한 후, 업로드 끝나고 나면 시리얼 모니터를 열 것&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b style=&quot;color: rgb(255, 0, 0);&quot;&gt;// Arduino IDE에서 CPU Speed는 Overclocking 하지 말 것&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;#define LED_BUILTIN PC13&lt;/p&gt;&lt;p&gt;#define SerialMonitor Serial&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;int i = 0;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;void setup() {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; SerialMonitor.begin(115200);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; pinMode(LED_BUILTIN, OUTPUT);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; digitalWrite(LED_BUILTIN, HIGH);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; delay(1000);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;void loop() {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; SerialMonitor.print(i++);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; SerialMonitor.print(&quot;&amp;nbsp; &quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; SerialMonitor.println(digitalRead(LED_BUILTIN));&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; digitalWrite(LED_BUILTIN, !(digitalRead(LED_BUILTIN)));&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; delay(500);&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>MCU/Arduino STM32F103C8T6</category>
      <author>mindrefill</author>
      <guid isPermaLink="true">https://rainflow.tistory.com/749</guid>
      <comments>https://rainflow.tistory.com/749#entry749comment</comments>
      <pubDate>Tue, 18 Dec 2018 21:40:24 +0900</pubDate>
    </item>
    <item>
      <title>아두이노 스피드 업</title>
      <link>https://rainflow.tistory.com/747</link>
      <description>&lt;p&gt;&lt;a href=&quot;https://stackabuse.com/speeding-up-arduino/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://stackabuse.com/speeding-up-arduino/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.brightdevelopers.com/speed-arduino-code/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://www.brightdevelopers.com/speed-arduino-code/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.instructables.com/id/Arduino-is-Slow-and-how-to-fix-it/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://www.instructables.com/id/Arduino-is-Slow-and-how-to-fix-it/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://forum.arduino.cc/index.php?topic=377891.0&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://forum.arduino.cc/index.php?topic=377891.0&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://www.arduino.cc/en/Reference/PortManipulation&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://www.arduino.cc/en/Reference/PortManipulation&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://skpang.co.uk/blog/archives/323&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://skpang.co.uk/blog/archives/323&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;--------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;STM32&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.stm32duino.com/viewtopic.php?f=18&amp;amp;t=2888&amp;amp;p=37578#p37593&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://www.stm32duino.com/viewtopic.php?f=18&amp;amp;t=2888&amp;amp;p=37578#p37593&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;//port/gpio oriented macros&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;#define IO_SET(port, pins)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; port-&amp;gt;regs-&amp;gt;ODR |= (pins)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//set bits on port&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;#define IO_CLR(port, pins)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; port-&amp;gt;regs-&amp;gt;ODR &amp;amp;=~(pins)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//clear bits on port&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;//fast routines through BRR/BSRR registers&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;#define FIO_SET(port, pins)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;port-&amp;gt;regs-&amp;gt;BSRR = (pins)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;#define FIO_CLR(port, pins)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;port-&amp;gt;regs-&amp;gt;BRR = (pins)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(0, 85, 255);&quot;&gt;&lt;b&gt;IO_SET/CLR&amp;nbsp; 570ms&amp;nbsp; (118ns/IO) 8.5cycles&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(0, 85, 255);&quot;&gt;&lt;b&gt;FIO_SET/CLR 417ms&amp;nbsp; (42ns/FIO) 3.02cycles&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;--------------------------------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Fast Library&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/NicksonYap/digitalWriteFast&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://github.com/NicksonYap/digitalWriteFast&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://masteringarduino.blogspot.com/2013/10/fastest-and-smallest-digitalread-and.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://masteringarduino.blogspot.com/2013/10/fastest-and-smallest-digitalread-and.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>MCU/Arduino Orginal</category>
      <author>mindrefill</author>
      <guid isPermaLink="true">https://rainflow.tistory.com/747</guid>
      <comments>https://rainflow.tistory.com/747#entry747comment</comments>
      <pubDate>Tue, 18 Dec 2018 11:28:21 +0900</pubDate>
    </item>
    <item>
      <title>STM32F103C8T6(Blue Pill, Black Pill)를 ST-Link V2로 만들기</title>
      <link>https://rainflow.tistory.com/745</link>
      <description>&lt;p&gt;STM32F103C8T6(Blue Pill, Black Pill)를 ST-Link V2로 만들기&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;참조 사이트&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://microcontrollerelectronics.com/turn-an-stm32f103c8t6-blueplll-into-an-stlink-programmer/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;https://microcontrollerelectronics.com/turn-an-stm32f103c8t6-blueplll-into-an-stlink-programmer/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://slemi.info/2018/08/14/making-your-own-st-link-v2/&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;http://slemi.info/2018/08/14/making-your-own-st-link-v2/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;STM32F103C8T6에 USB-UART를 연결하고 (Vcc, GND, Rx,Tx) st.com의 Flash Downloader에서&lt;/p&gt;&lt;p&gt;아래 첨부파일을 STM32F103C8T6에 업로드 해 준다.&lt;/p&gt;&lt;p&gt;&lt;a class=&quot;txc-file&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block;   height: auto; max-width: 100%;&quot;&gt;&lt;a href=&quot;https://t1.daumcdn.net/cfile/tistory/99B392485C17863D1C&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://i1.daumcdn.net/cfs.tistory/v/0/blog/image/extension/unknown.gif&quot; style=&quot;vertical-align: middle;&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;STLinkV2.J16.S4.bin&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;PC의 USB를 STM32F103C8T6에 연결 해주고, ST-Link 윈도우 드라이버를 깔아주면 정상적으로 인식한다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;이후, ST-Link Utility에서 ST-Link Firmware Update를 해주면 된다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;사용은 아래와 같이 하면 된다(오른쪽이 ST-Link로 사용하는 STM32F103C8T6)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;중요:&lt;/p&gt;&lt;p&gt;1) 저항 : 220Ohm 2ea&lt;/p&gt;&lt;p&gt;2) PB12와 PB14를 점퍼 해줘야 한다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 1000px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/998F30365C1789CD27&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F998F30365C1789CD27&quot; width=&quot;1000&quot; height=&quot;537&quot; filename=&quot;ST-LINK-Testing.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>MCU/STM32F ARM 32 Cortex-M3 (STM32F103C8T6)</category>
      <author>mindrefill</author>
      <guid isPermaLink="true">https://rainflow.tistory.com/745</guid>
      <comments>https://rainflow.tistory.com/745#entry745comment</comments>
      <pubDate>Mon, 17 Dec 2018 20:23:42 +0900</pubDate>
    </item>
    <item>
      <title>STM32 Arduino IDE OverClocking Test</title>
      <link>https://rainflow.tistory.com/744</link>
      <description>&lt;p&gt;STM32 Arduino IDE OverClocking Test를 하기 위해서는&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;1. Arduuino - 툴 - CPU Speed - &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;b&gt;Overclocking 128MHz..&lt;/b&gt;&lt;/span&gt; 를 선택한다.&lt;/p&gt;&lt;p&gt;2. Arduuino - 툴 -&amp;nbsp;Upload&amp;nbsp;Method는 &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;b&gt;Serial&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;(STM32에 부트로더에서는 안된다)&lt;/p&gt;&lt;p&gt;3. UPLOAD를 위해서는 &lt;span style=&quot;color: rgb(0, 85, 255);&quot;&gt;&lt;b&gt;USB-TTL&lt;/b&gt;&lt;/span&gt;을 이용하여 수동으로 리셋버튼을 누르며 해줘야 한다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 809px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9951C94C5C121E4F22&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9951C94C5C121E4F22&quot; width=&quot;809&quot; height=&quot;190&quot; filename=&quot;2018-12-13_175319_cr.jpg&quot; filemime=&quot;image/jpeg&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>MCU/Arduino STM32F103C8T6</category>
      <category>128MHz</category>
      <category>Arduino</category>
      <category>Overclocking</category>
      <category>stm32</category>
      <author>mindrefill</author>
      <guid isPermaLink="true">https://rainflow.tistory.com/744</guid>
      <comments>https://rainflow.tistory.com/744#entry744comment</comments>
      <pubDate>Thu, 13 Dec 2018 17:46:29 +0900</pubDate>
    </item>
  </channel>
</rss>