Comments (3)
This is not supported by the current design, no.
from fastprogress.
Solved it!
class VariableSizeProgressBar(progress_bar):
def on_update(self, val, text, interrupted=False):
self.total = len(self.gen)
super().on_update(val,text,interrupted)
And my timer was calculating length wrong. Here is the correct timer. This way I can tell it "train for 60 seconds".
class Timer:
def __init__(self, num_seconds):
self.num_seconds = num_seconds
self.i = None
def __len__(self):
if self.i is None: return 1
eps = 1e-7
t = time.time() - self.start
return int(self.i*self.num_seconds/t)
def __iter__(self):
self.start = time.time()
self.i = 0
t = 0.0
while t <= self.num_seconds:
t = time.time() - self.start
self.i += 1
yield None
from fastprogress.
Clever trick :)
from fastprogress.
Related Issues (20)
- support PyCharm console as TTY
- force_console_behavior does not modify behavior
- progress bars not displaying in vscode Jupyter notepad HOT 11
- Progress bar not displayed in terminal when using wandb logger HOT 1
- Equivalent of tqdm's desc for Jupyter Notebooks
- typo in readme
- Add Documentation website link to about section HOT 1
- Support for multiple children?
- won't work in spyder? HOT 2
- Keep-Alive-Actions
- Keep-Alive-Actions
- Keep-Alive-Actions
- UserWarning: Couldn't import ipywidgets properly, progress bar will use console behavior HOT 3
- Keep-Alive-Actions
- Keep-Alive-Actions
- Keep-Alive-Actions
- Keep-Alive-Actions
- Misattribution of import errors HOT 1
- Colour of Progress Bar in Jupyter Notebook HOT 1
- Keep-Alive-Actions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastprogress.