{"id":27467,"library":"transnetv2-pytorch","title":"TransNetV2 PyTorch","description":"PyTorch implementation of TransNetV2 for shot-based video scene detection. Version 1.0.5, updated regularly with bug fixes.","status":"active","version":"1.0.5","language":"python","source_language":"en","source_url":"https://github.com/allenday/transnetv2_pytorch","tags":["video-segmentation","scene-detection","pytorch","deep-learning"],"install":[{"cmd":"pip install transnetv2-pytorch","lang":"bash","label":"Latest release"}],"dependencies":[{"reason":"PyTorch deep learning framework","package":"torch","optional":false},{"reason":"Video processing","package":"opencv-python","optional":true}],"imports":[{"wrong":"from transnetv2 import TransNetV2","symbol":"TransNetV2","correct":"from transnetv2_pytorch import TransNetV2"}],"quickstart":{"code":"from transnetv2 import TransNetV2\n\nmodel = TransNetV2()\npredictions = model.predict_video(\"video.mp4\")","lang":"python","description":"Loads the model and predicts scene boundaries for a video file."},"warnings":[{"fix":"Install ffmpeg or use a supported video container (e.g., mp4).","message":"The predict_video method expects the video to be in a format readable by OpenCV. Ensure ffmpeg is installed for codec support.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure internet access or pre-download weights manually.","message":"Model weights are downloaded on first use from the original TransNetV2 repository. Internet connection required.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.0.5':15 'base':10 'bug':19 'deep':29 'deep-learn':28 'detect':13,26 'fix':20 'implement':4 'learn':30 'pytorch':2,3,27 'regular':17 'scene':12,25 'scene-detect':24 'segment':23 'shot':9 'shot-bas':8 'transnetv2':1,6 'updat':16 'version':14 'video':11,22 'video-segment':21","created_at":"2026-05-01T17:46:24.534587+00:00","updated_at":"2026-05-01T17:46:24.534587+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/allenday/transnetv2_pytorch","docs":null,"changelog":null,"pypi":"https://pypi.org/project/transnetv2-pytorch/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}