GALIP icon indicating copy to clipboard operation
GALIP copied to clipboard

About instantiation of CLIP model

Open ILLLLUSION opened this issue 1 year ago • 5 comments

Among the parameters accepted by the NteG generator, there is a CLIP model. I want to know how to import CLIP in the GALIP code to instantiate it. I have not seen the code and I am a little confused. I want to debug the NetG code, but I have no way of knowing. How to enter the CLIP parameter? Uploading 84163ca26ea54ab994f92fa002f79b9.png…

ILLLLUSION avatar Nov 30 '23 12:11 ILLLLUSION

84163ca26ea54ab994f92fa002f79b9

ILLLLUSION avatar Nov 30 '23 12:11 ILLLLUSION

Hi, you can instantiate it as the code in the perpare_models function does. https://github.com/tobran/GALIP/blob/6a72f59dc51b1c7fd0e7671b9fac8f095d3243ed/code/lib/perpare.py#L43

tobran avatar Nov 30 '23 14:11 tobran

I want to debug this way, but I don 't know how to assign the parameter CLIP. Uploading 55874e78411d759031450acac01df96.png…

ILLLLUSION avatar Nov 30 '23 14:11 ILLLLUSION

55874e78411d759031450acac01df96

ILLLLUSION avatar Nov 30 '23 14:11 ILLLLUSION

我想知道在这里的CLIP参数,实际上就是CLIP 模型对吗。我不是很明白在GALIP这个代码里,NetG所接受的参数里,如何把CLIP这个模型当做参数接受的,也不是很明白是从哪传入的,不过训练是可以正常训练目前。

ILLLLUSION avatar Nov 30 '23 14:11 ILLLLUSION