faster-rcnn

Run Mask RCNN code and stuck at “Converting sparse IndexedSlices to a dense Tensor of unknown shape”

痴心易碎 提交于 2021-01-29 21:16:13
问题 I'm new to Python and Tensorflow Running Mask RCNN code from this tutorial and got stuck at " Converting sparse IndexedSlices to a dense Tensor of unknown shape. " Here's my configuration part of train.py shown as following import os import sys import json import datetime import numpy as np import skimage.draw import cv2 from mrcnn.visualize import display_instances import matplotlib.pyplot as plt # Root directory of the project ROOT_DIR = "" # Import Mask RCNN sys.path.append(ROOT_DIR) # To

How to divide in half pydicom files (image) using python?

走远了吗. 提交于 2019-12-13 03:49:33
问题 I have a lot of images (pydicom files). I would like to divide in half. From 1 image, I would like 2 images: part left and part right. Input: 1000x1000 Output: 500x1000 (width x height). Currently, I can only read a file. ds = pydicom.read_file(image_fps[0]) # read dicom image from filepath First part, I would like to put half in one folder and the other half to second. This is what I have: enter image description here This is what I want: enter image description here I use Mask-RCNN to

Training Image Size Faster-RCNN

拥有回忆 提交于 2019-12-11 16:28:21
问题 I will train my dataset with faster-rcnn for one class. All my images are 1920x1080 sizes. Should I resize or crop the images or I can train with this size? Also my objects are really small (around 60x60). In the config file there are dimensions written as min_dimension: 600 and max_dimension: 1024 for this reason I am confused to train the model with 1920x1080 size images. 回答1: If your objects are small, resizing the images to a smaller size is not a good idea. You can change the max

py:445: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. % get_backend())

…衆ロ難τιáo~ 提交于 2019-12-07 21:59:33
问题 I was trying to run the Mask-RCNN repository provided by the matterport in Github. https://github.com/matterport/Mask_RCNN. when I run the demo in the anaconda, it showed "C:\Anaconda\lib\site-packages\matplotlib\figure.py:445: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. % get_backend()) " . Is there someone came cross the similar problem? 回答1: If you are trying to plot on a remote server, ssh X11 forwarding can then be used to

py:445: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. % get_backend())

淺唱寂寞╮ 提交于 2019-12-06 07:13:15
I was trying to run the Mask-RCNN repository provided by the matterport in Github. https://github.com/matterport/Mask_RCNN . when I run the demo in the anaconda, it showed "C:\Anaconda\lib\site-packages\matplotlib\figure.py:445: UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure. % get_backend()) " . Is there someone came cross the similar problem? If you are trying to plot on a remote server, ssh X11 forwarding can then be used to display matplotlib plots. Try to use this, import matplotlib matplotlib.use('tkagg') Make sure you have XMing or