I have the following pipeline, the training loop runs properly without having torchvision.transforms.ColorJitter(.4,.4,.4) in the image pipeline, but once I include any transformation from torchvision.transforms it gives the following error.
raceback (most recent call last):
File "/home/ahmed/anaconda3/envs/ffcv/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/home/ahmed/anaconda3/envs/ffcv/lib/python3.9/site-packages/ffcv/loader/epoch_iterator.py", line 79, in run
result = self.run_pipeline(b_ix, ixes, slot, events[slot])
File "/home/ahmed/anaconda3/envs/ffcv/lib/python3.9/site-packages/ffcv/loader/epoch_iterator.py", line 133, in run_pipeline
result = code(*args)
File "/home/ahmed/anaconda3/envs/ffcv/lib/python3.9/site-packages/numba/core/dispatcher.py", line 468, in _compile_for_args
error_rewrite(e, 'typing')
File "/home/ahmed/anaconda3/envs/ffcv/lib/python3.9/site-packages/numba/core/dispatcher.py", line 409, in error_rewrite
raise e.with_traceback(None)
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Failed in nopython mode pipeline (step: nopython frontend)
Untyped global name 'self': Cannot determine Numba type of <class 'ffcv.transforms.module.ModuleWrapper'>
File "../anaconda3/envs/ffcv/lib/python3.9/site-packages/ffcv/transforms/module.py", line 25:
def apply_module(inp, _):
res = self.module(inp)
^
During: resolving callee type: type(CPUDispatcher(<function ModuleWrapper.generate_code.<locals>.apply_module at 0x7fef5a591310>))
During: typing of call at (2)
During: resolving callee type: type(CPUDispatcher(<function ModuleWrapper.generate_code.<locals>.apply_module at 0x7fef5a591310>))
During: typing of call at (2)
File "/home/ahmed/notebooks", line 2:
<source missing, REPL/exec in use?>
I have the following pipeline, the training loop runs properly without having
torchvision.transforms.ColorJitter(.4,.4,.4)
in the image pipeline, but once I include any transformation from torchvision.transforms it gives the following error.Error