No module named 'deepview'

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

No module named 'deepview'

ソリューションへジャンプ
5,736件の閲覧回数
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 件の賞賛
1 解決策
5,725件の閲覧回数
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...

 

元の投稿で解決策を見る

4 返答(返信)
5,726件の閲覧回数
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...

 

4,387件の閲覧回数
萧若珮
Contributor I

Hello!I have used what you adviced in your answer.But my computer still says that there's no module named 'deepview'.How can I sovle this problem?I downloaded eIQ Tookit from the official web.Should I uninstall the eIQ and install it again?I haven't installed any pip pack named 'deepview' because I can't find it on the Internet....Thank you in advance for answering my stupid question!

Here's a picture as attachments.Maybe it can describle my question better.

タグ(1)
0 件の賞賛
5,715件の閲覧回数
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 件の賞賛
5,710件の閲覧回数
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 件の賞賛