If your invention patent is made public and others improve your technology, you can apply for a patent, including invention or utility model, as long as the improvement is novel (different from your technology) and creative (can solve the problems in your technology).
At the same time, if this person makes a product according to his improvement, this product still belongs to your right scope (if you have obtained the patent right), even if he can obtain the improved patent right, it is still infringement; If the improved product is no longer within the scope of your patent right, it is not infringement.
For example, maybe you will know:
Your patent says that the cup has a handle, and others will improve it after seeing it. Add a lid and keep the handle. A cup with a lid can be patented, but it is infringement for him to make a cup with a lid.
If your patent is to add a handle to the cup, others will improve it after seeing it, remove the handle and cover it directly. At this time, you can still obtain the patent right, and the production will not infringe.
Understand?