No module named 'deepview'

cancel
Showing results for 
Search instead for 
Did you mean: 

No module named 'deepview'

Jump to solution
1,284 Views
Ramson
Contributor IV

Hi team,

We are trying to create eiq project using own dataset with the help of instruction given in TP-EIQ-BRING-YOUR-OWN-DATA-BYOD document as shown below. 

 

Ramson_0-1634114401880.png

 

 

We created a python script as mentioned in the notebook as shown below : 

import os
import deepview.datastore as ds
from tqdm.notebook import tqdm

project = ds.create_project('facemask.eiqp')


def splitall(path):
    allparts = []
    while 1:
        parts = os.path.split(path)
        if parts[0] == path:
            allparts.insert(0, parts[0])
            break
        elif parts[1] == path:
            allparts.insert(0, parts[1])
            break
        else:
            path = parts[0]
            allparts.insert(0, parts[1])
    return allparts


count = 0
for (dirpath, _, files) in os.walk('Dataset'):
    count += 1

for (dirpath, _, files) in tqdm(os.walk('Dataset'), total=count):
    dirs = splitall(dirpath)
    label = dirs[-1] if len(dirs) > 0 else None
    grouping = dirs[-2] if len(dirs) > 1 else None

    if grouping is not None and grouping not in ('train', 'test'):
        continue

    images = []
    for file in files:
        with open(os.path.join(dirpath, file), 'rb') as f:
            images.append(f.read())
    if label is not None:
        for image_id in project.add_images(images, grouping):
            project.add_annotation(image_id, label)

 

But while running the script. we are facing an error 

Traceback (most recent call last):
File "importer.py", line 2, in <module>
import deepview.datastore as ds
ModuleNotFoundError: No module named 'deepview'

We have installed eiq toolkit v1.0.5 already. we have also added "C:\nxp\eIQ_Toolkit_v1.0.5\bin" to my system path. Do we have to do anything else. Please help to solve the issue.

 

Thanks and regards

Ramson Jehu K

 

0 Kudos
1 Solution
1,273 Views
MarcinChelminsk
Contributor IV

@Ramsondo you use eIQ Portal -> Command Line? should be working from there

eiq_command_line.PNG

This lab could be also interesting

https://community.nxp.com/t5/eIQ-Machine-Learning-Software/eIQ-Portal-for-MCU-Getting-Started-Labs/t...

(DeepViewRT for RT1170 - Data Import Lab.pdf -> eIQ Toolkit Setup)

This topic could be interesting as well

https://community.nxp.com/t5/eIQ-Machine-Learning-Software/eIQ-toolkit-import-images-from-disc-and-m...

 

View solution in original post

0 Kudos
3 Replies
1,274 Views
MarcinChelminsk
Contributor IV

@Ramsondo you use eIQ Portal -> Command Line? should be working from there

eiq_command_line.PNG

This lab could be also interesting

https://community.nxp.com/t5/eIQ-Machine-Learning-Software/eIQ-Portal-for-MCU-Getting-Started-Labs/t...

(DeepViewRT for RT1170 - Data Import Lab.pdf -> eIQ Toolkit Setup)

This topic could be interesting as well

https://community.nxp.com/t5/eIQ-Machine-Learning-Software/eIQ-toolkit-import-images-from-disc-and-m...

 

0 Kudos
1,263 Views
Ramson
Contributor IV

thanks @MarcinChelminsk . I did try that before, since i had other python installed. It caused me this problem. I removed other python and conda installed.

0 Kudos
1,258 Views
MarcinChelminsk
Contributor IV

@Ramson 

Before eIQ toolkit installation I had Python379 installed on my system, and after eIQ Toolkit installation (which comes with Python389) I had no conflicts.

Perhaps, as you mentioned, existing Python versions might be important and conda installation as well.

Thanks for feedback!

 

0 Kudos