replicate / cog

Containers for machine learning
https://cog.run
Apache License 2.0
7.88k stars 549 forks source link

wget not found in cog #1535

Closed tzktz closed 7 months ago

tzktz commented 7 months ago

Hi bro @zeke @mattt @anotherjesse ....

    def setup(self):

        os.makedirs('weights', exist_ok=True)
        os.chdir('weights')
        if not os.path.exists('Swin2SR_ClassicalSR_X4_64.pth'):
            os.system(
                'wget https://github.com/mv-lab/swin2sr/releases/download/v0.0.1/Swin2SR_ClassicalSR_X4_64.pth'
            )
        if not os.path.exists('Swin2SR_CompressedSR_X4_48.pth'):
            os.system(
                'wget https://github.com/mv-lab/swin2sr/releases/download/v0.0.1/Swin2SR_CompressedSR_X4_48.pth'
            )
        if not os.path.exists('Swin2SR_RealworldSR_X4_64_BSRGAN_PSNR.pth'):
            os.system(
                'wget https://github.com/mv-lab/swin2sr/releases/download/v0.0.1/Swin2SR_RealworldSR_X4_64_BSRGAN_PSNR.pth'
            )

        os.chdir('..')

The isssue has been...

Starting Docker image cog-pixalto-tools-base and running setup()...
sh: 1: wget: not found
sh: 1: wget: not found
sh: 1: wget: not found
sh: 1: wget: not found

But i have installed wget in locall it's works fine..

zeke commented 7 months ago

Try adding wget to https://cog.run/yaml/#system_packages