joheras / CLoDSA

122 stars 33 forks source link

Notebooks do not work when loading the necessary libraries #84

Open sevenbonk opened 1 year ago

sevenbonk commented 1 year ago

Every time I try to run any of th notebooks on Google colab, they do not work when loading the necessary libraries. Why is that? For example, in Augmenting a dataset for detection using COCO format which is the one I'm most interested about, I get:

/usr/local/lib/python3.10/dist-packages/clodsa/init.py in 1 from future import absolute_import ----> 2 from . import augment 3 import sys, getopt 4 5 def main(argv):

/usr/local/lib/python3.10/dist-packages/clodsa/augment.py in 1 from future import absolute_import ----> 2 from .augmentors.augmentorFactory import createAugmentor 3 from .transformers.transformerFactory import transformerGenerator 4 from .techniques.techniqueFactory import createTechnique 5 import argparse

/usr/local/lib/python3.10/dist-packages/clodsa/augmentors/init.py in ----> 1 from .augmentorFactory import *

/usr/local/lib/python3.10/dist-packages/clodsa/augmentors/augmentorFactory.py in 1 from future import absolute_import ----> 2 from .augmentorsList import Augmentors 3 4 def createAugmentor(problem,annotationmode,outputmode,generationmode,inputPath,parameters): 5 Augmentor = Augmentors[problem][annotationmode][outputmode][generationmode]

/usr/local/lib/python3.10/dist-packages/clodsa/augmentors/augmentorsList.py in 1 from future import absolute_import 2 from .folderKerasLinearClassificationAugmentor import FolderKerasLinearClassificationAugmentor ----> 3 from .folderKerasSemanticSegmentationAugmentor import FolderKerasSemanticSegmentationAugmentor 4 from .folderLinearClassificationAugmentor import FolderLinearClassificationAugmentor 5 from .folderLinearSemanticSegmentationAugmentor import FolderLinearSemanticSegmentationAugmentor

/usr/local/lib/python3.10/dist-packages/clodsa/augmentors/folderKerasSemanticSegmentationAugmentor.py in 8 import os 9 import cv2 ---> 10 from sklearn.externals.joblib import Parallel, delayed 11 import random 12 import numpy as np

ModuleNotFoundError: No module named 'sklearn.externals.joblib'


NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the "Open Examples" button below.