Open edumotya opened 5 months ago
Fix https://github.com/Algolzw/daclip-uir/issues/21 by simply eliminating the explicit conversion of zero_modules to cuda.
As far as I see create_model will take care of moving everything to cuda https://github.com/Algolzw/daclip-uir/blob/a4e6720fcbf27c3e99840990bea1e9fbb67710dc/da-clip/src/open_clip/factory.py#L219
create_model
Thank you, tiny but helpful PR. Did you test on cpu?
Sure! it works
Fix https://github.com/Algolzw/daclip-uir/issues/21 by simply eliminating the explicit conversion of zero_modules to cuda.
As far as I see
create_model
will take care of moving everything to cuda https://github.com/Algolzw/daclip-uir/blob/a4e6720fcbf27c3e99840990bea1e9fbb67710dc/da-clip/src/open_clip/factory.py#L219