Skip to content

Commit

Permalink
Merge pull request #14 from tsaishien-chen/main
Browse files Browse the repository at this point in the history
Fix captioning inference and more_sample page bugs
  • Loading branch information
AliaksandrSiarohin authored Mar 7, 2024
2 parents f520531 + 2864ea3 commit 603aa1a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions captioning/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ class DotDict(dict):
parser.add_argument("--video-list", required=True, help="list of input videos.")
parser.add_argument("--output-json", default=None, help="output json file. Leave none to print out the results.")
parser.add_argument("--prompt-list", default=None, help="list of correponding input prompts. Leave none if no prompt input.")
parser.add_argument(
"--options",
nargs="+",
help="override some settings in the used config, the key-value pair "
"in xxx=yyy format will be merged into config file (deprecate), "
"change to --cfg-options instead.",
)
args = parser.parse_args()
cfg = Config(args)

Expand Down
File renamed without changes.
Binary file removed docs/assets/samples/_ONhUIKHX_4.4.gif
Binary file not shown.
Binary file removed docs/assets/samples/_uQs-YDb5VA.9.gif
Binary file not shown.
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/more_samples.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ <h2 class="pt-4"><p class="text-center" id="Food">Food</p></h2>
<p style="font-family: Chalkduster; font-size: 16px; color: white">"A person mixing chocolate in a bowl with an electric mixer."</p>
</th>
<th style="text-align: center; vertical-align: top; padding: 10px;">
<img src="./assets/samples/_ONhUIKHX_4.4.gif" style="width: 100%"></img>
<video playsinline autoplay loop muted src="./assets/samples/ONhUIKHX_4.4.mp4" style="width: 100%" type="video/mp4"></video>
<p style="font-family: Chalkduster; font-size: 16px; color: white">"There are sausages cooking on a grill, and a person is using tongs to turn them over."</p>
</th>
</tr>
Expand Down Expand Up @@ -564,7 +564,7 @@ <h2 class="pt-4"><p class="text-center" id="Tutorial_and_Narrative">Tutorial and
<p style="font-family: Chalkduster; font-size: 16px; color: white">"There are several glasses filled with different types of drinks on a counter."</p>
</th>
<th style="text-align: center; vertical-align: top; padding: 10px;">
<img src="./assets/samples/_uQs-YDb5VA.9.gif" style="width: 100%"></img>
<video playsinline autoplay loop muted src="./assets/samples/uQs-YDb5VA.9.mp4" style="width: 100%" type="video/mp4"></video>
<p style="font-family: Chalkduster; font-size: 16px; color: white">"A person in blue gloves is connecting an electrical supply to an injector."</p>
</th>
</tr>
Expand Down

0 comments on commit 603aa1a

Please sign in to comment.