Code Monkey home page Code Monkey logo

Comments (9)

tugstugi avatar tugstugi commented on May 21, 2024

The notebook only compiles once and will reuse the compiled binary. So it means the first time it will be slow, after that it runs much faster until your notebook VM is destroyed.

from dl-colab-notebooks.

timtensor avatar timtensor commented on May 21, 2024

thank you ! but when i rerun it again with another video , i seem to get the following error

`Output #0, mp4, to 'video.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    encoder         : Lavf57.83.100
    Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 23.98 fps, 24k tbn, 23.98 tbc (default)
    Metadata:
      creation_time   : 2014-10-09T00:46:11.000000Z
      handler_name    : VideoHandler
      encoder         : Lavc57.107.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame=  120 fps=114 q=-1.0 Lsize=      59kB time=00:00:04.87 bitrate=  99.5kbits/s speed=4.62x    
video:57kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.779035%
[libx264 @ 0x555f09569e00] frame I:1     Avg QP: 9.00  size:   215
[libx264 @ 0x555f09569e00] frame P:41    Avg QP:15.74  size:  1091
[libx264 @ 0x555f09569e00] frame B:78    Avg QP:16.09  size:   165
[libx264 @ 0x555f09569e00] consecutive B-frames: 11.7%  3.3%  5.0% 80.0%
[libx264 @ 0x555f09569e00] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x555f09569e00] mb P  I16..4:  0.6%  1.4%  0.2%  P16..4:  2.8%  0.5%  0.1%  0.0%  0.0%    skip:94.3%
[libx264 @ 0x555f09569e00] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8:  1.6%  0.1%  0.0%  direct: 0.1%  skip:98.1%  L0:52.3% L1:39.1% BI: 8.6%
[libx264 @ 0x555f09569e00] 8x8 transform intra:31.3% inter:74.0%
[libx264 @ 0x555f09569e00] coded y,uvDC,uvAC intra: 14.1% 1.3% 1.1% inter: 0.4% 0.0% 0.0%
[libx264 @ 0x555f09569e00] i16 v,h,dc,p: 87%  7%  3%  3%
[libx264 @ 0x555f09569e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 25% 31%  2%  4%  5%  4%  5%  3%
[libx264 @ 0x555f09569e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 21% 20%  3%  7%  8%  6%  5%  2%
[libx264 @ 0x555f09569e00] i8c dc,h,v,p: 96%  2%  1%  0%
[libx264 @ 0x555f09569e00] Weighted P-Frames: Y:41.5% UV:0.0%
[libx264 @ 0x555f09569e00] ref P L0: 82.8%  8.9%  5.6%  2.0%  0.6%
[libx264 @ 0x555f09569e00] ref B L0: 87.5% 10.7%  1.8%
[libx264 @ 0x555f09569e00] ref B L1: 97.9%  2.1%
[libx264 @ 0x555f09569e00] kb/s:92.42
rm: cannot remove 'openpose.avi': No such file or directory
Starting OpenPose demo...
Configuring OpenPose...
Starting thread(s)...
Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0.

Error:
Json file ./output/ could not be opened.

Coming from:
- /content/openpose/src/openpose/filestream/jsonOfstream.cpp:JsonOfstream():32
- /content/openpose/src/openpose/filestream/jsonOfstream.cpp:JsonOfstream():36
- /content/openpose/src/openpose/filestream/cocoJsonSaver.cpp:CocoJsonSaver():57
- /content/openpose/include/openpose/wrapper/wrapperAuxiliary.hpp:configureThreadManager():1187
- /content/openpose/include/openpose/wrapper/wrapper.hpp:exec():424
ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100`
openpose.avi: No such file or directory

from dl-colab-notebooks.

tugstugi avatar tugstugi commented on May 21, 2024

tried on multiple youtube videos in a row. It works as intented.

from dl-colab-notebooks.

timtensor avatar timtensor commented on May 21, 2024

ok , i seem to still have it, even if iterminate my sessions and reconnect it. I wonder what is the error.
I still get the error openpose.avi: No such file or directory , even if i recompile the whole open pose

from dl-colab-notebooks.

tugstugi avatar tugstugi commented on May 21, 2024

you need a clean environment, click on Runtime->Reset all runtimes... After that you can call Runtime->run all.

from dl-colab-notebooks.

timtensor avatar timtensor commented on May 21, 2024

Hi,I tried to follow your steps I even terminated my sessions and then logged out of the GPU. I still have the above mentioned issue. I am not sure what could be the issue as you can run it seamlessly. I guess the length of the video does not depend on this.
Error

`video:307kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.537230%
[libx264 @ 0x56396dcd9e00] frame I:2     Avg QP:11.41  size:  2600
[libx264 @ 0x56396dcd9e00] frame P:138   Avg QP:18.80  size:  1683
[libx264 @ 0x56396dcd9e00] frame B:220   Avg QP:18.60  size:   348
[libx264 @ 0x56396dcd9e00] consecutive B-frames: 15.6%  6.7%  6.7% 71.1%
[libx264 @ 0x56396dcd9e00] mb I  I16..4: 63.7% 35.7%  0.6%
[libx264 @ 0x56396dcd9e00] mb P  I16..4:  0.7%  1.7%  0.1%  P16..4:  4.2%  1.5%  0.7%  0.0%  0.0%    skip:91.2%
[libx264 @ 0x56396dcd9e00] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8:  3.1%  0.3%  0.0%  direct: 0.1%  skip:96.2%  L0:48.9% L1:41.4% BI: 9.6%
[libx264 @ 0x56396dcd9e00] 8x8 transform intra:57.1% inter:74.1%
[libx264 @ 0x56396dcd9e00] coded y,uvDC,uvAC intra: 13.8% 13.4% 5.0% inter: 0.9% 1.2% 0.1%
[libx264 @ 0x56396dcd9e00] i16 v,h,dc,p: 81% 10%  5%  3%
[libx264 @ 0x56396dcd9e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 14% 31%  1%  1%  1%  1%  2%  1%
[libx264 @ 0x56396dcd9e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 24% 19%  3%  5%  6%  5%  5%  2%
[libx264 @ 0x56396dcd9e00] i8c dc,h,v,p: 83%  9%  7%  1%
[libx264 @ 0x56396dcd9e00] Weighted P-Frames: Y:16.7% UV:4.3%
[libx264 @ 0x56396dcd9e00] ref P L0: 74.3% 15.5%  7.6%  2.5%  0.1%
[libx264 @ 0x56396dcd9e00] ref B L0: 89.6%  8.6%  1.8%
[libx264 @ 0x56396dcd9e00] ref B L1: 98.2%  1.8%
[libx264 @ 0x56396dcd9e00] kb/s:167.35
rm: cannot remove 'openpose.avi': No such file or directory
Starting OpenPose demo...
Configuring OpenPose...
Starting thread(s)...
Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0.

Error:
Json file ./output/ could not be opened.

Coming from:
- /content/openpose/src/openpose/filestream/jsonOfstream.cpp:JsonOfstream():32
- /content/openpose/src/openpose/filestream/jsonOfstream.cpp:JsonOfstream():36
- /content/openpose/src/openpose/filestream/cocoJsonSaver.cpp:CocoJsonSaver():57
- /content/openpose/include/openpose/wrapper/wrapperAuxiliary.hpp:configureThreadManager():1187
- /content/openpose/include/openpose/wrapper/wrapper.hpp:exec():424
ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
openpose.avi: No such file or directory`

from dl-colab-notebooks.

tugstugi avatar tugstugi commented on May 21, 2024

@timtensor have you forked the notebook? If yes, share the notebook.

from dl-colab-notebooks.

timtensor avatar timtensor commented on May 21, 2024

@tugstugi Its here , nothing uch has been modified than what you have ,except write flags and video

https://colab.research.google.com/drive/1IIWMJQm12cGn40T3Mu1bFqwYMzyN4Z2B

from dl-colab-notebooks.

tugstugi avatar tugstugi commented on May 21, 2024

replace --write_coco_json with --write_json then it will work! If you really want the --write_coco_json option, then you will call like this: --write_coco_json ./output/output.json

from dl-colab-notebooks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.