Giter Club home page Giter Club logo

streamlit-terran-timeline's People

Contributors

leopiney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

streamlit-terran-timeline's Issues

Difficulty downloading models

due to this line and streamlit run command being seen as interactive I get stuck at (ran from somewhere that don't actually have interactivity):
Checkpoint not present locally. Want to download it? [y/N]
I have ran the terran code to download the models in another terminal to solve it.
(I guess smt like bash -c 'streamlit run example.py' might also work to hint non-interactivity)
I'm reporting on this as a convenience issue, for lessening the beginning hurdles ๐Ÿ˜„

errors thrown while running streamlit terran timeline youtube example

The following errors are thrown. It appears to be thrown in the terran/ reader.py file...

At first there was an error from the example video not being available:

ERROR: Video unavailable
This video is no longer available because the YouTube account associated with this video has been terminated.
2022-07-29 13:56:22.831 Uncaught app exception

But it still throws an error when the example video is changed to a verified video:
https://www.youtube.com/watch?v=UDUlhZb1Iso

Here is the command used to start the demonstration:

streamlit-terran-timeline\streamlit_terran_timeline\examples>streamlit run youtube.py

Then the response:

You can now view your Streamlit app in your browser.

Local URL: http://localhost:8501
Network URL: http://192.168.1.163:8501

2022-07-29 14:25:31.019 Uncaught app exception
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 323, in _read_from_cache
return _read_from_mem_cache(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 241, in _read_from_mem_cache
raise CacheKeyNotFoundError("Key not found in mem cache")
streamlit.legacy_caching.caching.CacheKeyNotFoundError: Key not found in mem cache

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 278, in _read_from_disk_cache
with file_util.streamlit_read(path, binary=True) as input:
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\contextlib.py", line 113, in enter
return next(self.gen)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\file_util.py", line 75, in streamlit_read
if os.stat(filename).st_size == 0:
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\richadmin.DESKTOP-IESK5E9\.streamlit\cache\9fe8cd06b471d754ba1d08787005bece-9aec85817c2934264930d2b8e9d2decc.pickle'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 539, in get_or_create_cached_value
return_value = _read_from_cache(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 333, in _read_from_cache
value = _read_from_disk_cache(key)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 287, in _read_from_disk_cache
raise CacheKeyNotFoundError("Key not found in disk cache")
streamlit.legacy_caching.caching.CacheKeyNotFoundError: Key not found in disk cache

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\scriptrunner\script_runner.py", line 557, in _run_script
exec(code, module.dict)
File "youtube.py", line 73, in
timeline = _generate_timeline(video_path)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 575, in wrapped_func
return get_or_create_cached_value()
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 555, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "youtube.py", line 56, in _generate_timeline
timeline = generate_timeline(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit_terran_timeline\timeline\generator.py", line 101, in generate_timeline
video = open_video(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 530, in open_video
return Video(*args, **kwargs)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 243, in init
probe = ffmpeg_probe(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 58, in ffmpeg_probe
proc = subprocess.Popen(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Exception ignored in: <function Video.del at 0x000001D7531E9700>
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 325, in del
2022-07-29 14:25:31.044 Uncaught app exception
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 323, in _read_from_cache
return _read_from_mem_cache(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 241, in _read_from_mem_cache
raise CacheKeyNotFoundError("Key not found in mem cache")
streamlit.legacy_caching.caching.CacheKeyNotFoundError: Key not found in mem cache

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 278, in _read_from_disk_cache
with file_util.streamlit_read(path, binary=True) as input:
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\contextlib.py", line 113, in enter
return next(self.gen)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\file_util.py", line 75, in streamlit_read
if os.stat(filename).st_size == 0:
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\Users\richadmin.DESKTOP-IESK5E9\.streamlit\cache\9fe8cd06b471d754ba1d08787005bece-9aec85817c2934264930d2b8e9d2decc.pickle'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 539, in get_or_create_cached_value
return_value = _read_from_cache(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 333, in _read_from_cache
value = _read_from_disk_cache(key)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 287, in _read_from_disk_cache
raise CacheKeyNotFoundError("Key not found in disk cache")
streamlit.legacy_caching.caching.CacheKeyNotFoundError: Key not found in disk cache

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\scriptrunner\script_runner.py", line 557, in _run_script
exec(code, module.dict)
File "youtube.py", line 73, in
timeline = _generate_timeline(video_path)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 575, in wrapped_func
return get_or_create_cached_value()
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit\legacy_caching\caching.py", line 555, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "youtube.py", line 56, in _generate_timeline
timeline = generate_timeline(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\streamlit_terran_timeline\timeline\generator.py", line 101, in generate_timeline
video = open_video(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 530, in open_video
return Video(*args, **kwargs)
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 243, in init
probe = ffmpeg_probe(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 58, in ffmpeg_probe
proc = subprocess.Popen(
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\ProgramData\Anaconda3\envs\streamlit\lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Exception ignored in: <function Video.del at 0x000001D7531E9700>
Traceback (most recent call last):
if not self._closed: File "C:\ProgramData\Anaconda3\envs\streamlit\lib\site-packages\terran\io\video\reader.py", line 325, in del

if not self._closed:

AttributeError: 'Video' object has no attribute '_closed'
AttributeError: 'Video' object has no attribute '_closed'

White space between segments

The width attribute of a segment is calculated using the first and last index of the segment: at line 106 of frontend/src/components/timeline.js

.attr("width", s.end * xStep - s.start * xStep)

As these indexes are inclusive the width is one step too small. As an example if a face appear on frame 1, 2, and 3 the segment will have a width corresponding of two steps while the face actually appears on 3 frames (three steps).

We propose to change that line to:
.attr("width", (s.end + 1) * xStep - s.start * xStep)

App is not opening

Your app is having trouble loading the streamlit_terran_timeline.streamlit_terran_timeline component.

(The app is attempting to load the component from http://localhost:3001/, and hasn't received its "streamlit:componentReady" message.)

If this is a development build, have you started the dev server?
If this is a release build, have you compiled the frontend?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.