GaParmar / img2img-turbo

One-step image-to-image with Stable Diffusion turbo: sketch2image, day2night, and more
MIT License
1.54k stars 177 forks source link

tokenizers version cause conflicts #10

Open charliezon opened 6 months ago

charliezon commented 6 months ago

tokenizers==0.15.2 is ok

GaParmar commented 6 months ago

Hi,

Could you expand a bit more on the issue you are facing?

-Gaurav

charliezon commented 6 months ago

Sure. When I tried to run the command 'conda env create -f environment.yaml', I encountered some messages:

INFO: pip is looking at multiple versions of transformers to determine which version is compatible with other requirements. This could take a while. ERROR: Cannot install tokenizers==0.12.1 and transformers==4.35.2 because these package versions have conflicting dependencies.

The conflict is caused by: The user requested tokenizers==0.12.1 transformers 4.35.2 depends on tokenizers<0.19 and >=0.14

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict
scarbain commented 6 months ago

I had the same issue, I simply removed the version on tokenizers and was able to create the environment. In your environment.yaml file, replace "tokenizers==0.12.1" with "tokenizers" ! And for those on windows, also remove triton.

GaParmar commented 6 months ago

Thanks @scarbain for the fix, the environment file is updated with this change!