BatsResearch / csp

Learning to compose soft prompts for compositional zero-shot learning.
BSD 3-Clause "New" or "Revised" License
83 stars 6 forks source link

Hello, I have a running one bug #11

Closed wangyiyibo closed 1 year ago

wangyiyibo commented 1 year ago

At present, I have configured all the running environments, but the following error occurs during the operation, if you have time, Can you show me.

urllib.error.URLError: <urlopen error [Errno 101] Network is unreachable>

nihalnayak commented 1 year ago

Can you give me more details? Do you get this error when running download_data.sh?

wangyiyibo commented 1 year ago

Thank you for your prompt reply, I am very happy.I'll give you a screenshot of this error

王一博

@. | ---- Replied Message ---- | From | Nihal @.> | | Date | 4/24/2023 20:48 | | To | @.> | | Cc | @.> , @.***> | | Subject | Re: [BatsResearch/csp] Hello, I have a running one bug (Issue #11) |

Can you give me more details? Do you get this error when running download_data.sh?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

wangyiyibo commented 1 year ago

Because I had the dataset from this project before, I didn't run that download_data.sh file, But I ran the last line of code separately, "python datasets/reorganize_utzap.pyc"

王一博

@. | ---- Replied Message ---- | From | Nihal @.> | | Date | 4/24/2023 20:48 | | To | @.> | | Cc | @.> , @.***> | | Subject | Re: [BatsResearch/csp] Hello, I have a running one bug (Issue #11) |

Can you give me more details? Do you get this error when running download_data.sh?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

nihalnayak commented 1 year ago

I would run the download_data.sh just to be double sure of the setup.

wangyiyibo commented 1 year ago

I didn't run that .sh file because of the network, but is there any good solution to this problem that has appeared now? Thank you.

王一博

@. | ---- Replied Message ---- | From | Nihal @.> | | Date | 4/24/2023 21:22 | | To | @.> | | Cc | @.> , @.***> | | Subject | Re: [BatsResearch/csp] Hello, I have a running one bug (Issue #11) |

I would run the download_data.sh just to be double sure of the setup.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

nihalnayak commented 1 year ago

Could you follow the instructions for ut-zappos in download_data.sh:

https://github.com/BatsResearch/csp/blob/3e3ddb5fa5c6b051ddffafaaf4c03c10d74d2ed9/download_data.sh#L26-L28

and then run the python datasets/reorganize_utzap.py?

wangyiyibo commented 1 year ago

Yes, I did it myself manually by following the steps in the .sh file

王一博

@. | ---- Replied Message ---- | From | Nihal @.> | | Date | 4/24/2023 22:33 | | To | @.> | | Cc | @.> , @.***> | | Subject | Re: [BatsResearch/csp] Hello, I have a running one bug (Issue #11) |

Could you follow the instructions for ut-zappos in download_data.sh:

https://github.com/BatsResearch/csp/blob/3e3ddb5fa5c6b051ddffafaaf4c03c10d74d2ed9/download_data.sh#L26-L28

and then run the python datasets/reorganize_utzap.py?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

nihalnayak commented 1 year ago

Thanks! When do you get this error?

At present, I have configured all the running environments, but the following error occurs during the operation, if you have time, Can you show me.

urllib.error.URLError: <urlopen error [Errno 101] Network is unreachable>
wangyiyibo commented 1 year ago

That's when running the train.py, python -u train.py --dataset mit-states --clip_model ViT-L/14 --experiment_name csp --seed 0 --epochs 20 --lr 5e-05 --attr_dropout 0.3 --weight_decay 0.00001 --train_batch_size 64 --gradient_accumulation_steps 2 --context_length 8 --save_path data/model/mit-states/sample_model --save_every_n 1

王一博

@. | ---- Replied Message ---- | From | Nihal @.> | | Date | 4/24/2023 22:41 | | To | @.> | | Cc | @.> , @.***> | | Subject | Re: [BatsResearch/csp] Hello, I have a running one bug (Issue #11) |

Thanks! When do you get this error?

At present, I have configured all the running environments, but the following error occurs during the operation, if you have time, Can you show me.

urllib.error.URLError: <urlopen error [Errno 101] Network is unreachable>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

nihalnayak commented 1 year ago

Could you share the error logs when you run train.py? It would be easier to debug this error if we know the function call. I suspect the code is trying to download CLIP ViT-L/14 from the OpenAI.

wangyiyibo commented 1 year ago

sorry,How to share my error log with you? I am not a root user and it may be a bit troublesome.

王一博

@. | ---- Replied Message ---- | From | Nihal @.> | | Date | 4/24/2023 22:52 | | To | @.> | | Cc | @.> , @.***> | | Subject | Re: [BatsResearch/csp] Hello, I have a running one bug (Issue #11) |

Could you share the error logs when you run train.py? It would be easier to debug this error if we know the function call. I suspect the code is trying to download CLIP ViT-L/14 from the OpenAI.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

wangyiyibo commented 1 year ago

You can help me solve it tomorrow. It's getting late, so you should also take a break. Wishing you a good dream.thank you very much !

王一博

@. | ---- Replied Message ---- | From | Nihal @.> | | Date | 4/24/2023 22:52 | | To | @.> | | Cc | @.> , @.***> | | Subject | Re: [BatsResearch/csp] Hello, I have a running one bug (Issue #11) |

Could you share the error logs when you run train.py? It would be easier to debug this error if we know the function call. I suspect the code is trying to download CLIP ViT-L/14 from the OpenAI.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

nihalnayak commented 1 year ago

Closing this issue due to inactivity. Happy to reopen if you provide more details.