From 414c85533ec015eafc0e76d3b4d89471e073a1fb Mon Sep 17 00:00:00 2001 From: cherry-0 Date: Tue, 14 May 2024 21:23:30 +0900 Subject: [PATCH 1/5] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Fixed=20GETTING=5FSTAR?= =?UTF-8?q?TED.md:=20typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/GETTING_STARTED.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/GETTING_STARTED.md b/docs/GETTING_STARTED.md index 52e44c7..0f62c22 100644 --- a/docs/GETTING_STARTED.md +++ b/docs/GETTING_STARTED.md @@ -52,7 +52,7 @@ And the full feature extraction is updated in [movienet-tools](https://github.co ```sh cd pre python demodownload.py ## Download a YouTube video with pytube -python ShotDetect/shotdetect.py --print_result --save_keyf --save_keyf_txt ## Cut shot +python ShotDetection/shotdetect.py --print_result --save_keyf --save_keyf_txt ## Cut shot cd ../lgss python run.py config/demo.py ## Cut scene ``` From 7f87165b88915d4134ef227a48742b8dc1e67d02 Mon Sep 17 00:00:00 2001 From: cherry-0 Date: Tue, 14 May 2024 21:33:17 +0900 Subject: [PATCH 2/5] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Resolved=20mmcv,=20pyt?= =?UTF-8?q?ube=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/GETTING_STARTED.md | 2 +- docs/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/GETTING_STARTED.md b/docs/GETTING_STARTED.md index 0f62c22..2f34b46 100644 --- a/docs/GETTING_STARTED.md +++ b/docs/GETTING_STARTED.md @@ -45,7 +45,7 @@ And the full feature extraction is updated in [movienet-tools](https://github.co ### Demo #### Preparation -- [pytube](https://github.com/nficano/pytube) is to download YouTube video. Install with ```pip install pytube3 --upgrade``` +- [pytube](https://github.com/nficano/pytube) is to download YouTube video. Install with ```pip install -U pytube``` - FFMPEG is to cut scene video and it is usually installed by your OS #### Run diff --git a/docs/requirements.txt b/docs/requirements.txt index 41d26e7..51ffc4b 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,2 +1,2 @@ tqdm -mmcv \ No newline at end of file +mmcv-full \ No newline at end of file From 8f2b41ffec1037e5ab5b7664411805132c595e42 Mon Sep 17 00:00:00 2001 From: cherry-0 Date: Tue, 14 May 2024 21:34:37 +0900 Subject: [PATCH 3/5] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Added=20tensorboardX,?= =?UTF-8?q?=20scikit-learn=20as=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit needed to run demo.py --- docs/requirements.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 51ffc4b..eddc4ec 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,2 +1,4 @@ tqdm -mmcv-full \ No newline at end of file +mmcv-full +tensorboardX +scikit-learn \ No newline at end of file From 5ccb847bae1d05ca2a3cbe36e64ee2b7a26f961b Mon Sep 17 00:00:00 2001 From: cherry-0 Date: Fri, 17 May 2024 17:05:49 +0900 Subject: [PATCH 4/5] =?UTF-8?q?=F0=9F=90=9B=20Mmcv=20to=20mmengine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lgss/config/demo.py | 6 +++--- lgss/run.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lgss/config/demo.py b/lgss/config/demo.py index 4b24295..10ca509 100644 --- a/lgss/config/demo.py +++ b/lgss/config/demo.py @@ -11,12 +11,12 @@ video_name = "demo" shot_num = 4 # even seq_len = 10 # even -gpus = "0,1,2,3,4,5,6,7" +gpus = "0" # dataset settings dataset = dict( name="demo", - mode=['image'], + mode=['image', 'place'], ) # model settings model = dict( @@ -39,7 +39,7 @@ resume = None trainFlag = False testFlag = True -batch_size = 16 +batch_size = 4 epochs = 30 logger = dict(log_interval=200, logs_dir="../run/{}".format(experiment_name)) data_loader_kwargs = dict(num_workers=32, pin_memory=True, drop_last=False) diff --git a/lgss/run.py b/lgss/run.py index 85876f4..3b30523 100644 --- a/lgss/run.py +++ b/lgss/run.py @@ -1,6 +1,6 @@ from __future__ import print_function -from mmcv import Config +from mmengine import Config from tensorboardX import SummaryWriter import src.models as models From 10af30d0536cb211081242555c93954370eaca96 Mon Sep 17 00:00:00 2001 From: cherry-0 Date: Mon, 20 May 2024 14:06:41 +0900 Subject: [PATCH 5/5] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Path=20errors=20in=20e?= =?UTF-8?q?xtract=5Ffeat.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pre/demodownload.py | 2 +- pre/place/extract_feat.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pre/demodownload.py b/pre/demodownload.py index 7e387b0..620f8a2 100644 --- a/pre/demodownload.py +++ b/pre/demodownload.py @@ -9,7 +9,7 @@ def main(): os.makedirs("../data/demo", exist_ok = True) os.makedirs("../data/demo/video", exist_ok = True) video_save_path = "../data/demo/video" - yt = YouTube('https://www.youtube.com/watch?v=rT22nYLaVbo') + yt = YouTube('https://www.youtube.com/watch?v=9Puz_zu3O3g') yt.streams.get_highest_resolution().download(video_save_path) shutil.move(osp.join(video_save_path,os.listdir(video_save_path)[0]),osp.join(video_save_path,"demo.mp4")) diff --git a/pre/place/extract_feat.py b/pre/place/extract_feat.py index 7d07fb7..36d4a31 100644 --- a/pre/place/extract_feat.py +++ b/pre/place/extract_feat.py @@ -230,7 +230,7 @@ def main(args): if __name__ == '__main__': - data_root = "data/demo" + data_root = "../data/demo" parser = argparse.ArgumentParser("Place feature using ResNet50 with ImageNet pretrain") parser.add_argument('--save-one-frame-feat', action="store_true") parser.add_argument('-b', '--batch-size', type=int, default=512)