co-mod-gan icon indicating copy to clipboard operation
co-mod-gan copied to clipboard

Prediction on Image and mask without UI

Open kashyappiyush1998 opened this issue 3 years ago • 7 comments

I have a binary mask and image to be filled and want to predict output, how do I do that using this repository. Like in deep fill v1/v2 we can predict it directly. Thank you. Results are pretty awesome on comodgan.ml

kashyappiyush1998 avatar Mar 27 '21 11:03 kashyappiyush1998

I agree. I would be interested to use co-mod-gan inside Google Colab and that needs command line. I tried to modify run_demo.py, but I got many errors.

styler00dollar avatar Mar 28 '21 06:03 styler00dollar

Now one can create a custom dataset with dataset_tools/create_from_images and then run demo with it!

zsyzzsoft avatar Mar 29 '21 17:03 zsyzzsoft

@zsyzzsoft thanks for this added tool, but is it not possible to directly get the predicted image out of the image and mask without running UI. If possible, I have one more request, can you provide a sample of inputs both image and mask along with it.

Thanks.

kashyappiyush1998 avatar Mar 29 '21 21:03 kashyappiyush1998

@zsyzzsoft thanks for this added tool, but is it not possible to directly get the predicted image out of the image and mask without running UI. If possible, I have one more request, can you provide a sample of inputs both image and mask along with it.

Thanks.

Please try the newly added run_generator.py.

zsyzzsoft avatar Apr 05 '21 17:04 zsyzzsoft

Thanks, it works. Issue can be closed.

styler00dollar avatar Apr 11 '21 21:04 styler00dollar

@styler00dollar hi can you share the notebook if possible I am having a tough time implementing this

tiwarikaran avatar Jun 11 '21 18:06 tiwarikaran

@tiwarikaran Well I am pretty late, but my colab notebook is here.

styler00dollar avatar Jan 30 '22 09:01 styler00dollar