Traceback (most recent call last):


 "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main

return _run_code(code, main_globals, None,


 "/usr/lib/python3.8/runpy.py", line 87, in _run_code

exec(code, run_globals)


 "/home/iegorval/Diploma/experiments/smalst/smal_eval.py", line 470, in <module>

app.run(main)


 "/home/iegorval/Diploma/experiments/smalst/venv_smalst/lib/python3.8/site-packages/absl/app.py", line 303, in run

_run_main(main, args)


 "/home/iegorval/Diploma/experiments/smalst/venv_smalst/lib/python3.8/site-packages/absl/app.py", line 251, in _run_main

sys.exit(main(argv))


 "/home/iegorval/Diploma/experiments/smalst/smal_eval.py", line 367, in main

outputs = predictor.predict(batch, rot=global_rotation)


 "/home/iegorval/Diploma/experiments/smalst/nnutils/smal_predictor.py", line 100, in predict

self.forward(cam_gt, trans_gt, pose_gt, betas_gt, rot)


 "/home/iegorval/Diploma/experiments/smalst/nnutils/smal_predictor.py", line 166, in forward

self.mask_pred = self.renderer.forward(self.pred_v, self.faces,


 "/home/iegorval/Diploma/experiments/smalst/nnutils/nmr.py", line 200, in forward

return Render.apply(self.renderer, verts, faces)


 "/home/iegorval/Diploma/experiments/smalst/nnutils/nmr.py", line 115, in forward

masks = renderer.forward_mask(vs, fs)


 "/home/iegorval/Diploma/experiments/smalst/nnutils/nmr.py", line 47, in forward_mask

self.faces = chainer.Variable(chainer.cuda.to_gpu(faces, self.cuda_device))


 "/home/iegorval/Diploma/experiments/smalst/venv_smalst/lib/python3.8/site-packages/chainer/backends/cuda.py", line 413, in to_gpu

check_cuda_available()


 "/home/iegorval/Diploma/experiments/smalst/venv_smalst/lib/python3.8/site-packages/chainer/backends/cuda.py", line 143, in check_cuda_available

raise RuntimeError(msg)
RuntimeError: CUDA environment is not correctly set up

Traceback (most recent call last):


 "/Users/code/source/env_env/bin/mypy", line 11, in <module>

sys.exit(console_entry())


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/__main__.py", line 7, in console_entry

main(None)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/main.py", line 66, in main

res = type_check_only(sources, bin_dir, options)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/main.py", line 119, in type_check_only

options=options)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/build.py", line 218, in build

graph = dispatch(sources, manager)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/build.py", line 1997, in dispatch

process_graph(graph, manager)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/build.py", line 2299, in process_graph

process_stale_scc(graph, scc, manager)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/build.py", line 2467, in process_stale_scc

graph[id].semantic_analysis()


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/build.py", line 1855, in semantic_analysis

self.manager.semantic_analyzer.visit_file(self.tree, self.xpath, self.options, patches)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/semanal.py", line 287, in visit_file

self.accept(d)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/semanal.py", line 3861, in accept

node.accept(self)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/nodes.py", line 696, in accept

return visitor.visit_class_def(self)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/semanal.py", line 666, in visit_class_def

defn.defs.accept(self)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/nodes.py", line 756, in accept

return visitor.visit_block(self)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/semanal.py", line 1610, in visit_block

self.accept(s)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/semanal.py", line 3861, in accept

node.accept(self)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/nodes.py", line 573, in accept

return visitor.visit_decorator(self)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/semanal.py", line 2933, in visit_decorator

dec.func.accept(self)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/nodes.py", line 497, in accept

return visitor.visit_func_def(self)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/semanal.py", line 386, in visit_func_def

self.prepare_method_signature(defn, self.type)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/semanal.py", line 438, in prepare_method_signature

leading_type = self.class_type(info)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/semanal.py", line 1234, in class_type

leading_type = checkmember.type_object_type(info, self.builtin_type)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/checkmember.py", line 543, in type_object_type

return type_object_type_from_function(init_method, info, fallback)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/checkmember.py", line 548, in type_object_type_from_function

signature = bind_self(function_type(init_or_new, fallback))


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/checkmember.py", line 682, in bind_self

arg_types = [expand(x) for x in func.arg_types[1:]]


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/checkmember.py", line 682, in <listcomp>

arg_types = [expand(x) for x in func.arg_types[1:]]


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/checkmember.py", line 680, in expand

return expand_type(target, {func.variables[0].id: typearg})


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/expandtype.py", line 16, in expand_type

return typ.accept(ExpandTypeVisitor(env))


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/types.py", line 1230, in accept

return visitor.visit_union_type(self)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/expandtype.py", line 117, in visit_union_type

return UnionType.make_simplified_union(self.expand_types(t.items), t.line, t.column)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/expandtype.py", line 132, in expand_types

a.append(t.accept(self))


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/types.py", line 1415, in accept

return visitor.visit_forwardref_type(self)


 "/Users/code/source/env_env/lib/python3.6/site-packages/mypy/types.py", line 1500, in visit_forwardref_type

raise RuntimeError('Internal error: unresolved forward reference')
RuntimeError: Internal error: unresolved forward reference
