Skip to content

Commit

Permalink
Merge pull request #28 from jmisilo/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jmisilo authored Oct 28, 2022
2 parents 25438aa + 03a2deb commit adababc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file added examples/7757242158.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ The training process was carried out using the [Kaggle](https://www.kaggle.com/)

![Example2](./examples/3787801.jpg)

![Example3](./examples/7757242158.jpg)

As I said, the goal was to test the Model's ability to recognize the situation. In the next phase of the experiments, I will try to improve the Model process and parameters to achieve better captions with the same dataset.

### Usage
Expand Down
2 changes: 1 addition & 1 deletion src/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def forward(self, img):
if last_token == self.td.tokenizer.eos_token_id:
break

decoded = self.td.tokenizer.decode(tokens[self.ep_len + 1:])
decoded = self.td.tokenizer.decode(tokens)

return decoded, tokens

Expand Down

0 comments on commit adababc

Please sign in to comment.