Giter VIP home page Giter VIP logo

miccai19's Introduction

Hard-Frame-Detection-and-Online-Mapping-for-Surgical-Phase-Recognition

The Code for M2CAI19 Paper: Hard Frame Detection and Online Mapping for Surgical Phase Recognition.

Requirement

Pytorch version >= 0.4 python version >= 3.0 GPU Memory >= 9000mb

Download the Dataset

We downsample the videos at 5fps. We recommand you download the dataset with this link: https://mega.nz/#!rEN2FCwB!VEChVilyX2yGpge_pjfjNuu8qH6qeFX6q5b8_v_ydVw https://mega.nz/#!zqZkGaBT!P5hhMe_BuyM3RQPRu0jdJR-x3EEmcB0cAe0BOxw5-_U

DataCleaning

The folder 'DataCleaning' contains the code for data cleansing step. This step is time-costing, so, we suggest to use the data cleansing results that are contained in the link we provided.

OHFM

The folder 'OHFM' contains the code for OHFM. Download the pretrained model and data, run the command:

 python main.py --dataset=cholec80-workflow-5 --savepath=test_result

utils_2.py: Code for drawing segment bars.

miccai19's People

Contributors

chinayi avatar

Stargazers

Kanggil Park avatar  avatar  avatar  avatar  avatar Mitchell Doughty avatar Magda Paschali avatar bygreencn avatar 李鼎权, Dingquan Li avatar zhixuanli avatar  avatar Daochang Liu avatar  avatar

Watchers

James Cloos avatar

miccai19's Issues

the video link cannot access

i want to download the video from the link you provide but i failed, i cannot access the website, what' wrong with it?

I have a problem

Hello! I have a problem.

Traceback (most recent call last):
File "main.py", line 135, in
feature, res = resnet50(imgs.view(-1, c, h, w))
File "C:\ProgramData\Anaconda3\natasha\lib\site-packages\torch\nn\modules\module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "C:\Users\Natalia\Downloads\miccai19-master\OHFM\model.py", line 34, in forward
feature = self.features(x).view(-1, 2048)
File "C:\ProgramData\Anaconda3\natasha\lib\site-packages\torch\nn\modules\module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "C:\ProgramData\Anaconda3\natasha\lib\site-packages\torch\nn\modules\container.py", line 100, in forward
input = module(input)
File "C:\ProgramData\Anaconda3\natasha\lib\site-packages\torch\nn\modules\module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "C:\ProgramData\Anaconda3\natasha\lib\site-packages\torch\nn\modules\pooling.py", line 554, in forward
self.padding, self.ceil_mode, self.count_include_pad, self.divisor_override)
File "C:\ProgramData\Anaconda3\natasha\lib\site-packages\torch\nn\modules\module.py", line 576, in getattr
type(self).name, name))
AttributeError: 'AvgPool2d' object has no attribute 'divisor_override'

How can I fix it? Thank you!

environment setup detail

Hi, Yi,
Thanks for your good work. I am interested on your work in my current project. could you write down detail package version so that I can run your repository. thanks in advance.

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.