asatheesh/TransRAC main
PYTHON
Verdict: BENIGN
Local reference
Suspicious dependency
Inferred
| 1 |
import os |
|
| 2 |
|
|
| 3 |
import numpy as np |
Imports the NumPy array library |
| 4 |
import csv |
|
| 5 |
import cv2 |
Imports a Python raster imaging library |
| 6 |
from torch.utils.data import Dataset, DataLoader |
|
| 7 |
import kornia |
|
| 8 |
import torch |
|
| 9 |
|
|
| 10 |
class TestData(Dataset): |
|
| 11 |
def __init__(self, root_path, video_path, labe… |
|
| 21:23 |
… = os.path.join(root_path, label_path) |
|
| 22 |
self.video_dir = os.listdir(os.path.join(self.root_path, self.video_path)) |
Python lists directory entries |
| 23 |
self.label_dict = get_labels_dict(self.label_dir) # get all labels |
|
| 24 |
… |
|
| 48:14 |
…num_frames = num_frames |
|
| 49 |
|
|
| 50 |
def get_frame(self): |
|
| 51 |
cap = cv2.VideoCapture(self.video_path) |
OpenCV camera capture constructor |
| 52 |
assert cap.isOpened() |
|
| 53 |
frames = [] |
|
| 54 |
|
|
| 55 |
while cap.isOpened(): |
|
| 56 |
ret, frame = cap.read() |
|
| 57 |
if not ret: |
|
| 58 |
break |
|
| 59 |
frames.append(frame) |
|
| 60 |
cap.rel… |
|
| 68:13 |
…elf.num_frames <= self.frame_length: |
|
| 69 |
for i in range(1, self.num_frames + 1): |
English function-word token "for" |
| 70 |
frame = frames[i * len(frames) // self.num_frames… |
|
| 94:5 |
…labels_dict = {} |
|
| 95 |
check_file_exist(path) |
|
| 96 |
with open(path, encoding='utf-8') as f: |
|
| 97 |
f_csv = csv.DictReader(f) |
|
| 98 |
for row in f_csv: |
|
| 99 |
… |
|
Identity
| SHA-256 |
f3658b6bb2e04a81fd90c56ed3d55c71997683b46f3a8c0f98d626b9fecf7720 |
| Canonical SHA-256 |
3098ab4988cd2f6b60e19fa7d3b99fc4ca08ede782f02b4d1dead8bebd050921 |
| Filename |
UCFRep_loader.py |
| Package |
asatheesh/TransRAC |
| Version |
main |
| PURL |
pkg:huggingface/asatheesh/TransRAC@main |
Timeline
| First seen |
26 Jul 2026 21:39 UTC |
| First analyzed |
30 Aug 2026 22:50 UTC |
| Last analyzed |
30 Aug 2026 23:06 UTC |
| Last updated |
30 Aug 2026 23:06 UTC |
Labeling
| Label |
unknown |
| Label source |
forager |
| Traits version |
84cb1 |