Jesse Mu

Results 7 comments of Jesse Mu

Mask images represent alpha values that are to be overlaid on top of images in the html file, so the mask images being black (when viewed in a standard image...

Could you try replacing `-webkit-mask-image` in the html file with `mask-image` (everywhere), or whatever prefix is appropriate for your browser? https://developer.mozilla.org/en-US/docs/Web/CSS/mask-image

Ah, I realize it doesn't really make sense to renormalize if `keep_topk` is set, since if it were set to 1 (greedy decoding), we would just return log probs of...

Ok, thanks! One follow-up question: it seems like the scores returned from sampling are just scores for the *last* token, since `self.topk_scores` is overriden at each timestep: https://github.com/OpenNMT/OpenNMT-py/blob/95aeefb4377617b94f94090d375eb8ae03dbd6c4/onmt/translate/greedy_search.py#L151 and these...

Hi, This codebase is *very* old at this point, Caffe hasn't been updated in a long time, and nowadays there exist several many cleaner implementations of neural style transfer algorithms...

Replace `raise StopIteration` with `return` where it appears. You're probably on python 3.7 where generator semantics has changed https://www.python.org/dev/peps/pep-0479/

You'll also need to change line 202 to `self._sess = tf.compat.v1.Session(graph=self._graph)`