หน้า: 1 2 [3] 4 5 ... 10
 21 
 เมื่อ: กุมภาพันธ์ 27, 2022, 04:55:44 PM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
  ในที่สุดสูตรการใช้งาน WIN10 และใช้งาน Tensorflow, Pytorch ได้ใกล้เคียง Linux  เป็นจริงเสียที  ซึ่งวิธีการนี้จะใช้งาน feature ใหม่อย่าง WSL2 (Windows Subsystem Linux)  ซึ่งมีติดมากับ WIN10, 11
  หลักการคราวๆ WSL จะใช้คุณสมบัติของ Hyper-V  แต่ใช้งานได้ง่ายเสมือนเรียก Program เท่านั้น  โดยรองรับการใช้งาน GPU ซึ่งเป็นสิ่งที่ดีมาก  ทำให้ Notebook x86 Windows Base เป็นสูตรที่คุ้มค่ากับงานด้าน Data Science  มากกว่า Macbook M1  แต่ข้อเสียเพียงข้อเดียวที่ x86 สู้ ARM ไม่ได้คือการจัดการพลังงาน

  โดยผลการทดสอบที่สามารถหา Benchmark Script มาใช้ได้นั้น  ได้มาจาก Link https://medium.com/analytics-vidhya/m1-mac-mini-scores-higher-than-my-nvidia-rtx-2080ti-in-tensorflow-speed-test-9f3db2b02d74  ปะรกอบด้วย
1. fashin_mnist.py
2. cifar10.py

  โดย fashin_mnist.py นั้นผมได้มีการปรับแต่งเพื่อใช้งานกับ Notebook ที่ทดสอบให้มีประสิทธิภาพ  เนื่องจาก GPU บน Notebook มี RAM เพียง 4GB  โดยแก้ไขขนาด Batch_Size จากค่า Default 32 เป็น 128 (ใน Link Web อ้างอิงจะทดสอบกับ Mac M1 VS Intel i7 9700K + RTX2080Ti

 22 
 เมื่อ: ตุลาคม 03, 2021, 12:44:03 AM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
Link อ้างอิงในการ config ต่างๆ
https://community.home-assistant.io/t/instruction-manual-configuring-the-mqtt-bridge-on-the-mosquito-broker-addon/339151

 23 
 เมื่อ: ตุลาคม 03, 2021, 12:38:27 AM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
เมื่อตั้งค่าต่างๆเรียบร้อยแล้ว  ทดสอบ start MQTT Broker นี้  สังเกต log ว่ามีอะไรผิดปรกติหรือไม่

 24 
 เมื่อ: ตุลาคม 03, 2021, 12:37:43 AM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
ตัวอย่าง file acl.conf

acl_file /share/mosquitto/accesscontrollist

* ตั้งค่าชี้ไปยัง file accesscontrollist  เพื่อกำหนดสิทธิในการเข้าถึง MQTT broker ชุดนี้

ตัวอย่าง accesscontrollist

#user mqtt
topic readwrite #


 25 
 เมื่อ: ตุลาคม 03, 2021, 12:35:23 AM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
ตัวอย่าง mosquitto.conf ที่ใช้

connection bridge-01
address <Remote HassOS IP>:1883
remote_username <remote_user>
remote_password <remote_pass>
topic # out 0
topic # in 0

*อยากเชื่อม broker มากกว่านี้สามารถเพิ่ม config ที่นี่ได้
*connection คือชื่ออ้างดิงของการเชื่อม Broker ชุดนี้  ตั้งเป็นอะไรก็ได้

 26 
 เมื่อ: ตุลาคม 03, 2021, 12:31:27 AM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
จากนั้นต้องสร้าง folder /share/mosquitto เพื่อเก็บ file สำหรับ config ต่างๆ ดังนี้
1. mosquitto.conf สำหรับ config เชื่อม MQTT Broker ชุดอื่นๆ
2. acl.conf สำหรับกำหนด file สิทธิที่จะให้เข้าถึง MQTT Broker นี้
3. accesscontrollist สำหรับ user, สิทธิในการอ่านเขียน

 27 
 เมื่อ: ตุลาคม 03, 2021, 12:21:59 AM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
  เนื่องจากมี Home Assistant มากกว่า 1 ชุด  และมีการใช้ MQTT ในแต่ละเครื่อง  จึงอยาก Link MQTT ระหว่างกันเพื่อให้ได้ประโยชน์ในการดึงค่า parameter ระหว่าง device ในระบบ  HassOS ที่ใช้งาน Version 6.4  เริ่มแรกต้องแก้ไข configuration บน Mosquitto broker ดังนี้

logins:
  - username: mqtt
    password: mqtt
customize:
  active: true
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
anonymous: false

 28 
 เมื่อ: เมษายน 09, 2021, 01:40:38 PM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
  เปิดการทำงาน intel ใน X11 ทำให้ตัวเลข score default ของ glmark2-es2 ขยับมาเป็น 580

 29 
 เมื่อ: เมษายน 08, 2021, 12:15:08 AM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
  ทดสอบกันเล็กน้อยที่ ค่า default ของ glmark2-es2 ได้คะแนน 148

 30 
 เมื่อ: มีนาคม 28, 2021, 08:38:23 PM 
เริ่มโดย cluangar - กระทู้ล่าสุด โดย cluangar
ผลการทดสอบ Link https://www.youtube.com/watch?v=3IQienIeTBE 

หน้า: 1 2 [3] 4 5 ... 10