Skip to content
New issue

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

Video detection problems #20

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ rsconnect/

# Notes folder
/notes/

# Playground folder
/playground/
6 changes: 3 additions & 3 deletions R/setup_modules.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ setup_modules <- function()
# Set necessary modules
modules <- c(
"accelerate==0.29.3", "llama-index==0.10.30", "nltk==3.8.1",
"opencv-python", "pandas==2.1.3", "pypdf==4.0.1",
"pytube==15.0.0", "pytz==2024.1", "qdrant-client==1.8.2",
"opencv-python", "pandas==2.1.3", "pypdf==4.0.1", "pytz==2024.1", "qdrant-client==1.8.2",
"sentencepiece==0.2.0", "sentence-transformers==2.7.0",
"tensorflow==2.14.1", "torch==2.1.1", "transformers==4.35.0"
"tensorflow==2.14.1", "torch==2.1.1", "transformers==4.35.0",
"pytubefix==6.9.2"
)

# Determine whether any modules need to be installed
Expand Down
7 changes: 1 addition & 6 deletions inst/python/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
import cv2
import numpy as np
import pandas as pd
from pytube import YouTube
from pytubefix import YouTube #19 Fixed pytube issue
from transformers import AutoProcessor, AutoModel
# import torch
# from torch import nn
# import torchvision.models as models
# from torchvision import transforms
import torch.nn.functional as F
# from PIL import Image
import time


Expand Down
Loading