Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error #16

Open
MuhammadHashir28 opened this issue May 24, 2024 · 0 comments
Open

Getting error #16

MuhammadHashir28 opened this issue May 24, 2024 · 0 comments

Comments

@MuhammadHashir28
Copy link

getting the following error please help me out

C:\Users\mhash\Downloads\TryYours-Virtual-Try-On-main2\TryYours-Virtual-Try-On-main>python main.py
Get mask of cloth

Get openpose coordinate using posenet

Traceback (most recent call last):
File "C:\Users\mhash\Downloads\TryYours-Virtual-Try-On-main2\TryYours-Virtual-Try-On-main\posenet.py", line 10, in
net = net.cuda()
^^^^^^^^^^
File "C:\Users\mhash\anaconda3\Lib\site-packages\torch\nn\modules\module.py", line 915, in cuda
return self._apply(lambda t: t.cuda(device))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mhash\anaconda3\Lib\site-packages\torch\nn\modules\module.py", line 779, in _apply
module._apply(fn)
File "C:\Users\mhash\anaconda3\Lib\site-packages\torch\nn\modules\module.py", line 779, in _apply
module._apply(fn)
File "C:\Users\mhash\anaconda3\Lib\site-packages\torch\nn\modules\module.py", line 779, in _apply
module._apply(fn)
File "C:\Users\mhash\anaconda3\Lib\site-packages\torch\nn\modules\module.py", line 804, in _apply
param_applied = fn(param)
^^^^^^^^^
File "C:\Users\mhash\anaconda3\Lib\site-packages\torch\nn\modules\module.py", line 915, in
return self.apply(lambda t: t.cuda(device))
^^^^^^^^^^^^^^
File "C:\Users\mhash\anaconda3\Lib\site-packages\torch\cuda_init
.py", line 284, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
Generate semantic segmentation using Graphonomy-Master library

Constructing DeepLabv3+ model...
Number of classes: 20
Output stride: 16
Number of Input Channels: 3
Traceback (most recent call last):
File "C:\Users\mhash\Downloads\TryYours-Virtual-Try-On-main2\TryYours-Virtual-Try-On-main\Graphonomy-master\exp\inference\inference.py", line 191, in
x = torch.load(opts.loadmodel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mhash\anaconda3\Lib\site-packages\torch\serialization.py", line 997, in load
with _open_file_like(f, 'rb') as opened_file:
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mhash\anaconda3\Lib\site-packages\torch\serialization.py", line 444, in _open_file_like
return open_file(name_or_buffer, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mhash\anaconda3\Lib\site-packages\torch\serialization.py", line 425, in init
super().init(open(name, mode))
^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: './inference.pth'
[ WARN:0@81.519] global loadsave.cpp:248 cv::findDecoder imread
('./resized_segmentation_img.png'): can't open/read file: check file path/integrity
Traceback (most recent call last):
File "C:\Users\mhash\Downloads\TryYours-Virtual-Try-On-main2\TryYours-Virtual-Try-On-main\main.py", line 44, in
mask_img=cv2.resize(mask_img,(768,1024))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.9.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4152: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant