niftynet

Implement transfer learning on niftynet

纵饮孤独 提交于 2020-02-02 13:13:10
问题 I want to implement transfer learning using the Dense V-Net architecture. As I was searching on how to do this, I found that this feature is currently being worked on (How do I implement transfer learning in NiftyNet?). Although from that answer it is quite clear that there is not a straight way to implement it, I was trying to: 1) Create the Dense V-Net 2) Restore weigths from the .ckpt file 3) Implement transfer learning on my own To perform step 1, I thought I could use the niftynet

Implement transfer learning on niftynet

拜拜、爱过 提交于 2020-02-02 13:10:14
问题 I want to implement transfer learning using the Dense V-Net architecture. As I was searching on how to do this, I found that this feature is currently being worked on (How do I implement transfer learning in NiftyNet?). Although from that answer it is quite clear that there is not a straight way to implement it, I was trying to: 1) Create the Dense V-Net 2) Restore weigths from the .ckpt file 3) Implement transfer learning on my own To perform step 1, I thought I could use the niftynet

HOw to fine tune niftynet pre trained model for custom data

删除回忆录丶 提交于 2020-01-06 08:43:51
问题 I want to use niftynet pretrained segmentation model for segmenting custom data. I downloaded the pre trained weights and and modified model_dir path to downloaded one. However when I run python3 net_segment.py train -c /home/Container_data/config/promise12_demo_train_config.ini I am getting the error below. Caused by op 'save/Assign_17', defined at: File "net_segment.py", line 8, in <module> sys.exit(main()) File "/home/NiftyNet/niftynet/__init__.py", line 142, in main app_driver.run(app

How do I implement transfer learning in NiftyNet?

大兔子大兔子 提交于 2019-12-23 15:12:13
问题 I'd like to perform some transfer learning using the NiftyNet stack, as my dataset of labeled images is rather small. In TensorFlow, this is possible--I can load a variety of pre-trained networks and directly work with their layers. To fine-tune the network, I could freeze training of the intermediate layers and only train the final layer, or I could just use the output of the intermediate layers as a feature vector to feed into another classifier. How do I do this in NiftyNet? The only

How can I get access to intermediate activation maps of the pre-trained models in NiftyNet?

蓝咒 提交于 2019-12-11 06:34:40
问题 I could download and successfully test brain parcellation demo of NiftyNet package. However, this only gives me the ultimate parcellation result of a pre-trained network, whereas I need to get access to the output of the intermediate layers too. According to this demo, the following line downloads a pre-trained model and a test MR volume: wget -c https://www.dropbox.com/s/rxhluo9sub7ewlp/parcellation_demo.tar.gz -P ${demopath} where ${demopath} is the path to the demo folder. Extracting the

ImportError: cannot import name '_get_logger' Niftynet

帅比萌擦擦* 提交于 2019-12-09 22:50:15
问题 I'm trying to run Niftynet on my PC. but it keeps showing this error. I had a CPU version for tensorflow and it worked. After that I installed tensorflow-gpu and now it stopped working. Please do note that import tensorflow as tf works fine so I'm not sure what do to now to solve this problem. Traceback (most recent call last): File "c:\users\halim\appdata\local\programs\python\python36\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\users\halim\appdata\local

Implement transfer learning on niftynet

泪湿孤枕 提交于 2019-12-07 06:54:27
I want to implement transfer learning using the Dense V-Net architecture. As I was searching on how to do this, I found that this feature is currently being worked on ( How do I implement transfer learning in NiftyNet? ). Although from that answer it is quite clear that there is not a straight way to implement it, I was trying to: 1) Create the Dense V-Net 2) Restore weigths from the .ckpt file 3) Implement transfer learning on my own To perform step 1, I thought I could use the niftynet.network.dense_vnet module. Therefore, I tried the following: checkpoint = '/path_to_ckpt/model.ckpt-3000

ImportError: cannot import name '_get_logger' Niftynet

天涯浪子 提交于 2019-12-04 17:24:58
I'm trying to run Niftynet on my PC. but it keeps showing this error. I had a CPU version for tensorflow and it worked. After that I installed tensorflow-gpu and now it stopped working. Please do note that import tensorflow as tf works fine so I'm not sure what do to now to solve this problem. Traceback (most recent call last): File "c:\users\halim\appdata\local\programs\python\python36\lib\runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "c:\users\halim\appdata\local\programs\python\python36\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users