Not enough images in validation set in AutoML when done automatically - google-cloud-automl

I'm trying AutoML from GCP and I'm stuck at training: I get an error message saying there is not enough images having the "Italy" tag in the validation set. I have uploaded the images manually, and so I did not specify which image goes to which set (training, validation, test).
The weird thing is, "Italy" has more images than the other tags, so why is there a problem with it ? Can I fix it from the AutoML interface or do I really have to upload a CSV to fix the bug ?
I already tried to add some new images with the "Italy" tag and it didn't change, I still get "0" in validation...
If it helps, an image can have multiple tags (in my example: one sport + one country).

You can resolve that issue by manually reassigning some images to the VALIDATE dataset, see this answer.

Related

how to pass validation test in AutoML Vision

how to pass validation on AutoML?
i already upload 10 image with "Car" label.
still cant pass validation.
i was delete the dataset and reupload all the image at once and then drawing boundingbox again, i dont know waht it just works

How to keep the image in the input when you edit the Entity

I'm sure that there is something about this "problem" somewhere but I didn't found it...
I'm using Vich_Uploader bundle in my Symfony2 project. One entity has 1 reference image and a OneToMany secondary images. For the création, I've nearly no problem ( without the fact that my secondary images aren't linked to my Entity but that's not the point ) but during edit, there is nothing in the "Reference image" input and if I submit, I recieve the error : this input is required...
Someone got a tip to give the imageFile to the input?
Thanks & Regards,
Thomas
You can't automatically fill an upload field as it would induce great security issues.
The solution to your problem would be to define your image fields as not required if there already are images (ie: the object is not new).

How to control the dimension of an image during the upload with symfony2

i check in the doc and everywhere i could but i didn't find any solution.
So i have a form and i upload an image in this form. I would like an error message if user is submiting a too large image or a too tall one. I need to do this for a proper display for my image.
I would like if possible do this with #assert but i dont think it's possible so i can add a validation.yml file if it's needed but it has to be check on the client-side
Thx if you have any clue to do this !

limiting the number of images you can upload

UPDATED QUESTION
OK new idea.
.on('deleteComplete', function(event, id, fileName, responseJSON) {
}
how can I call the sessionRequestComplete function. I think this might "refresh" the array and solve this issue.
Matt
I am trying to limit the number of images a person can upload.
I also need to include the ability to have the orginal file plus two scaled images.
When I tired to use the
validation: {
itemLimit:6
}
option I needed to triple the number of items since I was have the system upload three images.
I got this all to work but the issue I am having is if I delete an image and then add a new image and to this a couple of times, the system will then alert me that I have exceeded the itemlimit.
is there a way to "refresh" the items in the current session of the uploader in the deleteComplete function.
thanks.
Matt
The itemLimit validation rule is quite literal. You'll need to keep this in mind when you determine a proper number. if you are using it with scaled image generation turned on.
If you are looking to adjust this value dynamically, or expect it to work differently, please open up a feature request.

magento bulk products upload images but do not display in version greater than 1.6?

These are the steps i followed :
I created a category and added product to it in the backend of
magento
System->Import/Export-> "export" the csv file .
Removed the current values of the product already added then added
values new values to it.
Copied that csv file to media/import directory where images to be
uploaded were also present. (value = /image001.Jpg)
Went on to import and it says import successfully.
Output :
Products with the data uploaded successfully
BUT
No relevant images found, while i can see images uploaded in media/catalog/product..... folder
I have visited many many blogs forums, spent alot of hours for it but in vain. So in last i am posting it over here.
I would greatly appreciate if someone can post in the whole process in steps with sample Csv file and also tell us required fields and values for fields ib brief.
In my experience you have to make sure you put the image information in all the right places in the import CSV file. The three sets of image columns (image, image_label; small_image, small_image_label; thumbnail, thumbnail_label) are what set which image will be used for what purpose. And, they are one image per product.
However, it is the media images columns (_media_attribute, _media_image, _media_lable (yep, misspelled in Magento), _media_position, and _media_is_disabled) that actually define the image(s) for the product. These media image columns have to be completed on a one row per image basis. The _media_attribute is the id of that attribute (77 in my experience). The _media_image is that actual name of the image file in your media/import directory (case sensitive). The _media_lable is the title you want on the image. _media_position is the relative order of the images for this product. _media_is_disabled is the flag for each image that identifies whether the image is shown in the product media group or not.
I try this also pcproffitt: https://stackoverflow.com/users/1202982/pcproffitt
I have noticed that in my .csv file the columns were only (image, image_label; small_image, small_image_label; thumbnail, thumbnail_label) - that was from my Magento1.3 export but when I try to import it there is no error in importing but the Images were not seen on the site.
Then I found your Answer that in new version of Magento1.6 the column name is defferent it is (_media_attribute, _media_image, _media_lable (yep, misspelled in Magento), _media_position, and _media_is_disabled)
Whoops! I'm badly solving this. What would your suggestion though since I have 7000 plus products and images on my old site to transfer :( Is there a way to make this things gonna work out?
Thank you Sir!

Resources