I am trying to create a Watson Visual Recognition Create Classifier using v3 of the rest API following the documentation https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/visual-recognition/customizing.shtml#goodclassifying which states:
There are size limitations for training calls and data: 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.
However, using a "positive" zip file of 48MB containing 594 images (max size of an image is 144Kb) and a "negative" zip file of 16MB containing 218 images (max size of an image is 114Kb) but I keep getting the error:
<html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx</center>
</body>
</html>
In response to:
curl -X POST -F "good_positive_examples=@positive.zip"
-F "negative_examples=@negative.zip"
-F "name=myclassifier"
-H "X-Watson-Learning-Opt-Out=true"
"https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classifiers?api_key=<mykey>&version=2016-05-20"
I've kept trying reducing the file size by deleting images within the zips and re-trying but I'm well below the stated limits.
Anyone got any idea?
Thanks