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

Union package unavailable #69

Closed
darioguidotti opened this issue Jun 11, 2024 · 4 comments
Closed

Union package unavailable #69

darioguidotti opened this issue Jun 11, 2024 · 4 comments

Comments

@darioguidotti
Copy link

Dear Richard,

I have recently attempted to generate sample data using 00016_CYCLEGAN_MMG_DENSITY_CSAW_CC and 00015_CYCLEGAN_MMG_DENSITY_CSAW_MLO. Regrettably, it appears that the Union package, which is apparently a dependency of these models, has been removed from pip in all versions and is therefore unavailable.

Is there an alternative solution you can suggest?

Kind regards,
Dario

@BYALPERENK
Copy link

I have same problem. I tried many things but no solution

@BYALPERENK
Copy link

I created new env "python==3.7" and i installed "pip install union==0.1.10"
When i run my code
Generators().generate(
model_id="00003_CYCLEGAN_MMG_DENSITY_FULL",
input_path="models/00003_CYCLEGAN_MMG_DENSITY_FULL/images",
image_size=[1332, 800],
gpu_id=0,
install_dependencies=True,
)
with "install_dependencies=True" it installed other dependencies. This worked for me.

@darioguidotti
Copy link
Author

I managed to make it work by removing the package requirement from the configuration file: it does not seem to be needed to run the models.

@RichardObi
Copy link
Owner

Hi @darioguidotti @BYALPERENK, thank you very much for pointing out this issue and even solving it already!! 👏

I tested the issue and found that indeed the required Union package is unused in the model code for models 00003_CYCLEGAN_MMG_DENSITY_FULL, 00004_PIX2PIX_MMG_MASSES_W_MASKS, 00013_CYCLEGAN_MMG_DENSITY_OPTIMAM_MLO, 00014_CYCLEGAN_MMG_DENSITY_OPTIMAM_CC, 00015_CYCLEGAN_MMG_DENSITY_CSAW_MLO, 00016_CYCLEGAN_MMG_DENSITY_CSAW_CC.

I removed the Union package requirement in the global.json file, which should solve this issue after merging the PR.

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