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

Pytorch and torchvision version depreciated #104

Open
chaudharykapil opened this issue Mar 12, 2023 · 9 comments
Open

Pytorch and torchvision version depreciated #104

chaudharykapil opened this issue Mar 12, 2023 · 9 comments

Comments

@chaudharykapil
Copy link

conda install pytorch=0.4.1 torchvision=0.2.1 -c pytorch not working

Result:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  • pytorch=0.4.1
  • torchvision=0.2.1

Current channels:

To search for alternate channels that may provide the conda package you're
looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

@ARajgor
Copy link

ARajgor commented Mar 27, 2023

I upgrade the project to a new version of libraries.

code is tested on the new version of torch=1.13.1, torchvision=0.14.1 using python 3.9 pip installation.

[March 2023 update: code is compatible with torch 2.0.0+cu117, torchaudio 2.0.1+cu117, torchvision 0.15.1+cu117 on python 3.9.13]

repo: https://github.com/ARajgor/cp-vton-plus

@cskyy
Copy link

cskyy commented Apr 15, 2023

Hello, do you know how to make test_mask?

@ARajgor
Copy link

ARajgor commented Apr 15, 2023

you can refer my other repo for this, https://github.com/ARajgor/VTryon-flask-new it is based on Flask App for custom images.

@cskyy
Copy link

cskyy commented Apr 17, 2023

you can refer my other repo for this, https://github.com/ARajgor/VTryon-flask-new it is based on Flask App for custom images.

Hello, can you help me to see why the code after I changed did not generate results saved in the specified path, after running no error?
image
image

@ARajgor
Copy link

ARajgor commented Apr 18, 2023

for the body mask, you need to parse images into png format. like the code mentioned on line 65 in application.py. that generate two files and saved them in image-parse and image-parse-new. after that, we pass files into the make_body_mask function with file_name.jpg and file_name.png.

the function takes the file_name.jpg from image folder and file_name.png from image-parse-new folder.

image

@cskyy
Copy link

cskyy commented Apr 18, 2023

for the body mask, you need to parse images into png format. like the code mentioned on line 65 in application.py. that generate two files and saved them in image-parse and image-parse-new. after that, we pass files into the make_body_mask function with file_name.jpg and file_name.png.

the function takes the file_name.jpg from image folder and file_name.png from image-parse-new folder.

image

Thank you very much for your help, I have successfully made the image_mask! Wish you good health and smooth work!

@cskyy
Copy link

cskyy commented Apr 20, 2023

image
Hello, I'm sorry to bother you again, but I have encountered a new problem. When I used relevant codes to process images of 1024*768, the following situation occurred, image-mask was blank. I would like to ask whether it is related to the resolution of the image? What needs to be changed?

@ARajgor
Copy link

ARajgor commented Apr 20, 2023

Actually, I didn't change the original resolution that came with the original project but it is 192 X 256 px. the image parser inference.py also generates 192 X 256 px image and you have to pass it to the function. so may be there is an error of resolution.

@cskyy
Copy link

cskyy commented Apr 20, 2023

Actually, I didn't change the original resolution that came with the original project but it is 192 X 256 px. the image parser inference.py also generates 192 X 256 px image and you have to pass it to the function. so may be there is an error of resolution.

Ok, thank you very much for your help!

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

3 participants