question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No module named 'model.roi_crop._ext.roi_crop._roi_crop'

See original GitHub issue

I am getting this error.

(C:\Users\User\Anaconda3) C:\Users\User\Documents\UMass Amherst\Semester 3\Independent Study\Code\Multimodal_Influenza_Detection\faster-rcnn.pytorch>python trainval_net.py --dataset='kaist'
Traceback (most recent call last):
  File "trainval_net.py", line 30, in <module>
    from model.utils.net_utils import weights_normal_init, save_net, load_net, adjust_learning_rate, save_checkpoint, clip_gradient
  File "C:\Users\User\Documents\UMass Amherst\Semester 3\Independent Study\Code\Multimodal_Influenza_Detection\faster-rcnn.pytorch\lib\model\utils\net_utils.py", line 8, in <module>
    from model.roi_crop.functions.roi_crop import RoICropFunction
  File "C:\Users\User\Documents\UMass Amherst\Semester 3\Independent Study\Code\Multimodal_Influenza_Detection\faster-rcnn.pytorch\lib\model\roi_crop\functions\roi_crop.py", line 4, in <module>
    from .._ext import roi_crop
  File "C:\Users\User\Documents\UMass Amherst\Semester 3\Independent Study\Code\Multimodal_Influenza_Detection\faster-rcnn.pytorch\lib\model\roi_crop\_ext\roi_crop\__init__.py", line 3, in <module>
    from ._roi_crop import lib as _lib, ffi as _ffi
ModuleNotFoundError: No module named 'model.roi_crop._ext.roi_crop._roi_crop'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
lilongpucommented, Apr 30, 2019

hi,I get the same problem,too.I have installed python2.7,pytorch0.4.1(there is no cuda for this version)and I have only cpu inside my computer ,what should I do? any suggestion would be grated! thanks!

0reactions
Ixesha3Gcommented, Oct 25, 2021

I try to do this on google colab but face the same problem. CUDA8.0, Pytorch1.0.0,python3.7. I could run the setup.py successfully. image But when I start training, this happens: image My CUDA: image

Update: Seems like the setup.py didn’t run properly, but I didn’t know how to fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'model'
Append your script/module path with sys module then import your sub modules. sys.path.append('/path/to/your/model/modules/').
Read more >
5. Results Plugins — GDSC SMLM 1.1 documentation
When the plugin is run it presents a selection of the current results that are held in memory. If no results are available...
Read more >
RPi Camera (I) - Waveshare Wiki
The libcamera driver of the Raspberry Pi will call a tuning file for different camera modules. The tuning file provides various parameters.
Read more >
Deep level set method for optic disc and cup segmentation on ...
We preprocess the images with RoI crop for all automatic methods. The evaluation results are reported as average ± standard deviation. From the...
Read more >
User Guide 2022b - OriginLab
The Origin upgrade installs into a new program folder - it does not update a ... Clip graph image to ROI, Crop image...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found