สถานะ IBM Visual Recognition Classifier ล้มเหลว

ฉันมี IBM Watson Visual Recognition Python SDK ต่อไปนี้สำหรับสร้างตัวแยกประเภทอย่างง่าย:

with open(os.path.dirname("/home/xxx/Desktop/Husky.zip/"), 'rb') as dogs, \ 
    open(os.path.dirname("/home/xxx/Desktop/Husky.zip/"), 'rb') as cats:
    print(json.dumps(visual_recognition.create_classifier('Dogs Vs Cats',dogs_positive_examples=dogs,negative_examples=cats), indent=2))

การตอบกลับด้วย ID ตัวแยกประเภทใหม่และสถานะจะเป็นดังนี้:

{
  "status": "training", 
  "name": "Dogs Vs Cats", 
  "created": "2016-06-23T06:30:00.115Z", 
  "classes": [
    {
      "class": "dogs"
    }
  ], 
  "owner": "840ad7db-1e17-47bd-9961-fc43f35d2ad0", 
  "classifier_id": "DogsVsCats_250748237"
}

การแสดงสถานะการฝึกล้มเหลว

พิมพ์ (json.dumps (visual_recognition.list_classifiers (), เยื้อง = 4))

{
    "classifiers": [
        {
            "status": "failed", 
            "classifier_id": "DogsVsCats_250748237", 
            "name": "Dogs Vs Cats"
        }
    ]
}

สาเหตุของสิ่งนี้คืออะไร?


person CBU    schedule 23.06.2016    source แหล่งที่มา
comment
ตรวจสอบให้แน่ใจว่าไฟล์ zip มีเพียงรูปภาพเท่านั้น หากคุณเปิดเทอร์มินัล คุณจะเห็นเนื้อหาไฟล์ zip โดยใช้ unzip   -  person German Attanasio    schedule 24.06.2016


คำตอบ (2)


with open(os.path.dirname("/home/xxx/Desktop/Husky.zip/"), 'rb') as dogs, \ 
    open(os.path.dirname("/home/xxx/Desktop/Husky.zip/"), 'rb') as cats:
    print(json.dumps(visual_recognition.create_classifier('Dogs Vs Cats',dogs_positive_examples=dogs,negative_examples=cats), indent=2))

คุณกำลังส่งเนื้อหาไฟล์เดียวกัน "Husky.zip" เพื่อให้บริการใช้เป็นตัวอย่างทั้งเชิงบวกและเชิงลบ อย่างไรก็ตาม ระบบต้องการตัวอย่างเชิงบวกอย่างน้อย 10 ตัวอย่างและรูปภาพตัวอย่างเชิงลบ 10 ภาพซึ่งไม่ซ้ำกัน บริการจะเปรียบเทียบแฮชโค้ดของเนื้อหาไฟล์รูปภาพก่อนการฝึก และปล่อยให้รายการที่ซ้ำกันอยู่ในชุดที่เป็นบวกเท่านั้น ดังนั้น ชุดค่าลบของคุณจะว่างเปล่าหลังจากการขจัดความซ้ำซ้อน ซึ่งนำไปสู่ความล้มเหลวในการฝึก ควรมีฟิลด์เพิ่มเติมที่เรียกว่า "คำอธิบาย" ในรายการรายละเอียดตัวแยกประเภทของคุณอย่างละเอียด โดยบอกว่านี่อาจเป็นปัญหา

person Matt Hill    schedule 09.08.2016

มีข้อจำกัดด้านขนาดสำหรับการโทรและข้อมูลการฝึก:

The service accepts a maximum of 10,000 images or 100 MB per .zip file

The service requires a minimum of 10 images per .zip file.

The service accepts a maximum of 256 MB per training call.

นอกจากนี้ยังมีข้อจำกัดด้านขนาดสำหรับการโทรประเภท:

The POST /v3/classify methods accept a maximum of 20 images per batch.

The POST /v3/detect_faces methods accept a maximum of 15 images per batch.

The POST /v3/recognize_text methods accept a maximum of 10 images per batch.

โปรดดูที่ http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/visual-recognition/customizing.shtml

person Leo    schedule 23.06.2016