Method and apparatus for generating image, device and medium
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsJiaming Liu, Tianshu Hu, Shengyi He, Zhibin Hong
Life of this patent
Estimating the term…
Abstract
A method and an apparatus for generating an image, a device and a medium are provided The method includes: acquiring a first random vector set; determining an image category to which at least one random vector in the first random vector set belongs, based on a trained classifier; and inputting a random vector belonging to the image category into a trained image generator to generate a virtual image belonging to the image category. Through the technical solution in the present disclosure, a large number of images that are definitely classified can be automatically generated.
Claims20
A method for generating an image, comprising:
- acquiring a first random vector set;
- determining an image category to which at least one random vector in the first random vector set belongs, based on a trained classifier;
- and
- inputting a random vector belonging to the image category into a trained image generator to generate a virtual image belonging to the image category.
An electronic device, comprising:
- at least one processor;
- and
- a storage device, communicated with the at least one processor,
- wherein the storage device stores an instruction executable by the at least one processor, and the instruction is executed by the at least one processor, to enable the at least one processor to perform operations comprising:
- acquiring a first random vector set;
- determining an image category to which at least one random vector in the first random vector set belongs, based on a trained classifier;
- and
- inputting a random vector belonging to the image category into a trained image generator to generate a virtual image belonging to the image category.
A non-transitory computer readable storage medium, storing a computer instruction, wherein the computer instruction is executable by a computer to cause the computer to perform operations comprising:
- acquiring a first random vector set;
- determining an image category to which at least one random vector in the first random vector set belongs, based on a trained classifier;
- and
- inputting a random vector belonging to the image category into a trained image generator to generate a virtual image belonging to the image category.
Dependencies are inferred from the claim text.