Open farzadzare opened 6 years ago
you are sopposed to download the .h5 file.
if you mean download the mask_rcnn_coco.h5 file i had downloaded it but i faced this error AttributeError Traceback (most recent call last)
I have the same error,do you solve the problem?
@freedom521jin,,,,, I coudn't solve it but i deleted all of anaconda and reinstall all of them and it solved
@farzadzare ....oh!I have made it.I delete the old model ' **.h5 ' , and re-download the pre-train model ,and it works.
@freedom521jin It worked
@freedom521jin can u please tell me where is .h5 file is located
I had the same Problem. I coud fix it by changing the ROOT_DIR (the path to root) in balloon.py. In the Example it is given by ROOT_DIR = '../../' In my case it is ROOT_DIR='../../../' So I just had to go on step futher.
TQ @DerOzean
COCO_MODEL_PATH = os.path.join(ROOT_DIR, "mask_rcnn_balloon.h5") print(COCO_MODEL_PATH)
if not os.path.exists(COCO_MODEL_PATH): utils.download_trained_weights(COCO_MODEL_PATH)-> this is the responsible for downloading mask_rcnn_ballon.h5 or mask_rcnn_coco.h5
I have the same problem each time I load coco pretrained model after I clean the data. (rm mask_rcnn_coco.h5). Is the pretrained model corrupted ?
@farzadzare Have you resolve the OSError problem?
I have the same issue of OSError in h5py.h5f.open(). I am using windows python 3.6 and latest h5py version. Any Solution is helpful
I found the solution. The .h5 file was not downloaded completely so it was corrupt. I downloaded it manually by going to the model release page.
I have the same problem, and inspired by you guy. Mine is because that I am training with coco.h5 and I copy this weight file to another dir sothat my demo.ipynb can read it. After I load the original version on demo.ipynb it worked perfect.
OSError: Unable to open file (truncated file: eof = 218,644,480, sblock->base_addr = 0, stored_eof = 257,557,808)
the solution is:
wget -c https://github.com/matterport/Mask_RCNN/releases/download/v2.0/mask_rcnn_coco.h5
OSError: Unable to open file (truncated file: eof = 286720, sblock->base_addr = 0, stored_eof = 17225924)
I've got the same error. And I checked the file name. I've downloaded the wrong file mask_rcnn_ballon.h5. Then I downloaded the right file mask_rcnn_coco.h5, it worked smoothly.
We solved the problem by downloading the file from microsoft coco website manually. Actually you can use wget or curl to download it directly.
YeShangguan notifications@github.com 于2019年11月26日周二 下午4:05写道:
I've got the same error. And I checked the file name. I've downloaded the wrong file mask_rcnn_ballon.h5. Then I downloaded the right file mask_rcnn_coco.h5, it worked smoothly.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/matterport/Mask_RCNN/issues/653?email_source=notifications&email_token=ACA526AVXD7Y3GZPE2KI3MLQVTKEVA5CNFSM4FDYAE22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFFDALY#issuecomment-558510127, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACA526ATA4ZQT4W4WKXU6JTQVTKEVANCNFSM4FDYAE2Q .
The thread should be marked as closed because this was resolved many many months ago.
Yiak Wang Yi yiak.wy@gmail.com 于2019年12月3日周二 下午11:13写道:
We solved the problem by downloading the file from microsoft coco website manually. Actually you can use wget or curl to download it directly.
YeShangguan notifications@github.com 于2019年11月26日周二 下午4:05写道:
I've got the same error. And I checked the file name. I've downloaded the wrong file mask_rcnn_ballon.h5. Then I downloaded the right file mask_rcnn_coco.h5, it worked smoothly.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/matterport/Mask_RCNN/issues/653?email_source=notifications&email_token=ACA526AVXD7Y3GZPE2KI3MLQVTKEVA5CNFSM4FDYAE22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFFDALY#issuecomment-558510127, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACA526ATA4ZQT4W4WKXU6JTQVTKEVANCNFSM4FDYAE2Q .
It is solved by deleting the old h5 and redownload it again
Solution! You need to delet the corrupted h5 file first. If you want to see where it is located, jut print the path directly as follow;
VGG_Weights_path = keras.utils.get_file( pretrained_url.split("/")[-1], pretrained_url) print(VGG_Weights_path)
You just need to clear the keras model cache "del %USERPROFILE%.keras\models*"
Traceback (most recent call last):
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py\h5f.pyx", line 106, in h5py.h5f.open OSError: Unable to open file (truncated file: eof = 218934659, sblock->base_addr = 0, stored_eof = 450781856)
I'm still having the same issue while doing this in google colab. I already uploaded my model.h5 file in google drive, .made a simple script hosted in colab in the same directory as model.h5. Whenever I run my script, an error is returned. In my case its another model, not mask rcnn
Hi I'm getting the same error did u resolve it?
Hi I'm getting the same error did u resolve it? Yes, there was a problem with the .h5 file. It wasn't uploaded correctly to drive. I had to reupload the correct version of the file.
Hi I'm getting the same error did u resolve it?
@Dhaval-Mainkar Its happens due to intterupt during downloading files at starts👈 Hey if you are getting this error in G-colab then just use Above solution and if you get this error in your terminal in local machine then just go to cache folder and delete .ht5 cache files and then start the process of installing models again.
You can also Use This Method to delete cache👈 You just need to clear the keras model cache "del %USERPROFILE%.keras\models*"
Hi I'm
Re-download the h5 weight file
how and where can I download the .h5 file??
just clear cache and start the process again no need to download .h5 file
I want to use Mask-RCNN demo.py in my jupyter notebook but when i ran the the demo code , i faced such a problem OSError Traceback (most recent call last)