Cannot import process from utils library in Python
For a computer vision task I came across the need to use the map function.
from utils import process
train_ds = train_ds.map(process)
test_ds = test_ds.map(process)
val_ds = val_ds.map(process)
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Input In [11], in | ()
----> 1 from utils import process
3 train_ds = train_ds.map(process)
4 test_ds = test_ds.map(process)
ImportError: cannot import name 'process' from 'utils' (C:\Users\Admin\miniconda3\lib\site-packages\utils\__init__.py)
|
I downloaded the utils library (latest version = utils-1.0.2) onto my computer but apparently the process object is missing from the download. Was it deprecated or something? Where else can I derive the process object?