We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a progress bar that is more accurate and informative than the gradio one.
from tqdm import tqdm # Import tqdm # Process each frame with tqdm total_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT)) for _ in tqdm(range(total_frames), desc="Processing Frames", unit="frames"): ret, frame = cap.read() if not ret: break with torch.no_grad(): outputs = predictor(frame)['instances'] results = DensePoseResultExtractor()(outputs) cmap = cv2.COLORMAP_VIRIDIS arr = cv2.applyColorMap(np.zeros((height, width), dtype=np.uint8), cmap) out_frame = Visualizer(alpha=1, cmap=cmap).visualize(arr, results) out.write(out_frame)
``
The text was updated successfully, but these errors were encountered:
Hi @JD-2006,
Thanks for the suggestion. Please feel free to open a Pull Request with this feature and we will be happy to evaluate and merge it!
Sorry, something went wrong.
Cheers! Will do.
tadeodonegana
No branches or pull requests
Adding a progress bar that is more accurate and informative than the gradio one.
``
The text was updated successfully, but these errors were encountered: