darshanmakwana commited on
Commit
69b8f32
·
verified ·
1 Parent(s): a902fbb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -0
README.md CHANGED
@@ -42,6 +42,9 @@ This dataset is derived from [conceptual captions](https://huggingface.co/datase
42
  </tr>
43
  </table>
44
 
 
 
 
45
 
46
  ## Training Procedure
47
  For training we prompt the model to generate an image based on a text such as: "a river has burst it 's banks and has spread out onto arable farmland alongside<|startofimage|><|image:2931|><|image:560|><|image:763|><|image:1539|><|image:3161|><|image:1997|><|image:3376|><|image:510|><|image:3036|><|image:1585|><|image:1853|><|image:1970|><|image:2687|><|image:1436|><|image:2213|><|image:3968|><|image:3999|><|image:877|><|image:725|><|image:3013|><|image:438|><|image:3159|><|image:2936|><|image:3003|><|image:2261|><|image:2137|><|image:3821|><|image:1513|><|image:3536|><|image:311|><|image:494|><|image:413|><|endofimage|>". We use use cross entropy loss with logits masked for the audio tokens as it showed performance improvements for speech-to-text tasks and employ the standard cross entorpy loss over the masked logits
 
42
  </tr>
43
  </table>
44
 
45
+ # Inference
46
+ For generating images download and save the image_tokenizer and checkpoint-20000 in the root dir of this repo then run infer.py with your prompt
47
+
48
 
49
  ## Training Procedure
50
  For training we prompt the model to generate an image based on a text such as: "a river has burst it 's banks and has spread out onto arable farmland alongside<|startofimage|><|image:2931|><|image:560|><|image:763|><|image:1539|><|image:3161|><|image:1997|><|image:3376|><|image:510|><|image:3036|><|image:1585|><|image:1853|><|image:1970|><|image:2687|><|image:1436|><|image:2213|><|image:3968|><|image:3999|><|image:877|><|image:725|><|image:3013|><|image:438|><|image:3159|><|image:2936|><|image:3003|><|image:2261|><|image:2137|><|image:3821|><|image:1513|><|image:3536|><|image:311|><|image:494|><|image:413|><|endofimage|>". We use use cross entropy loss with logits masked for the audio tokens as it showed performance improvements for speech-to-text tasks and employ the standard cross entorpy loss over the masked logits