# W2\_A1\_Accessing "data.h5"

**URL:** <https://community.deeplearning.ai/t/w2-a1-accessing-data-h5/7644>\
**Category:** Neural Networks and Deep Learning\
**Tags:** coursera-platform\
**Created:** [May 20, 2021, 4:37am UTC](https://community.deeplearning.ai/t/w2-a1-accessing-data-h5/7644 "2021-05-20T04:37:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DDigits](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/ddigits/32/1606_2.png) [@DDigits](https://community.deeplearning.ai/u/DDigits)\
**Post date:** [May 20, 2021, 4:37am UTC](https://community.deeplearning.ai/t/w2-a1-accessing-data-h5/7644/1 "2021-05-20T04:37:21Z")

</div>

Is there a way to have access to the dataset “data.h5”? Or can it only be used on jupyter?

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [May 20, 2021, 5:13am UTC](https://community.deeplearning.ai/t/w2-a1-accessing-data-h5/7644/2 "2021-05-20T05:13:44Z")

</div>

There is a topic about that on the [FAQ Thread](https://community.deeplearning.ai/t/frequently-asked-questions/74).

---

<div class="post-metadata">

**Author:** ![Deependu\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@Deependu\_Ghosh](https://community.deeplearning.ai/u/Deependu_Ghosh)\
**Post date:** [December 2, 2022, 10:21am UTC](https://community.deeplearning.ai/t/w2-a1-accessing-data-h5/7644/3 "2022-12-02T10:21:04Z")

</div>

Hi @paulinpaloalto,

I have copied all the required files into my local system, but still getting the error: “FileNotFoundError”. Screenshots are attached for your ready reference.

 ![AllPackagesLoaded](https://global.discourse-cdn.com/dlai/original/3X/b/f/bf1757569fd9c444ee77df8a5fc94d7309cf105f.png)  
 ![ErorrPart_1](https://global.discourse-cdn.com/dlai/original/3X/b/7/b7ab42ec2962de7861d2493e8ed88fb914bb8db5.png)  
 ![ErorrPart_2](https://global.discourse-cdn.com/dlai/original/3X/f/2/f254663251e42f07600a47b9d0223a163df6502a.png)

Also while opening the files " train\_catvnoncat.h5" and " [test\_catvnoncat.h5]", the files are showing error messages (screenshots attached).

 ![TestError](https://global.discourse-cdn.com/dlai/original/3X/5/8/581b2acd91729206996d45d3018fae77f8bdea9a.png)  
 ![TrainError](https://global.discourse-cdn.com/dlai/original/3X/5/f/5fa1222cc5e78ddea9c8c03664ec7c2d050eb1f9.png)

Your assistance is required on a high priority basis to understand and rectify the issue here!

Regards  
Deependu Ghosh

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [December 2, 2022, 3:39pm UTC](https://community.deeplearning.ai/t/w2-a1-accessing-data-h5/7644/4 "2022-12-02T15:39:15Z")

</div>

One thing to check is for “current working directory” issues. Notice that the pathnames being referenced are “relative” pathnames, so your CWD needs to be positioned in the main folder that you downloaded.

Try adding this code cell to the notebook and see where you actually are:

!pwd

Notice the exclamation point (bang!) there: that tells the notebook that this is a linux shell command, not python code.

Maybe the way you are invoking the notebook, it ends with the wrong CWD.

---

<div class="post-metadata">

**Author:** ![rmwkwok](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/rmwkwok/32/126977_2.png) [@rmwkwok](https://community.deeplearning.ai/u/rmwkwok)\
**Post date:** [December 3, 2022, 4:06am UTC](https://community.deeplearning.ai/t/w2-a1-accessing-data-h5/7644/5 "2022-12-03T04:06:45Z")

</div>

> [@Deependu\_Ghosh](#):
>
> ![TestError](https://global.discourse-cdn.com/dlai/original/3X/5/8/581b2acd91729206996d45d3018fae77f8bdea9a.png)
> 
> ![TrainError](https://global.discourse-cdn.com/dlai/original/3X/5/f/5fa1222cc5e78ddea9c8c03664ec7c2d050eb1f9.png)

These images show that the files are available on your coursera workspace, which is a good sign. However, did you download those .h5 files to your local system? You may run the following in your notebook to see if the files are there:

```auto
!ls ./datasets/

```

If not, then create a folder “datasets” and to which download the two .h5 files.

Cheers,  
Raymond

---

<div class="post-metadata">

**Author:** ![Deependu\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@Deependu\_Ghosh](https://community.deeplearning.ai/u/Deependu_Ghosh)\
**Post date:** [December 4, 2022, 9:49am UTC](https://community.deeplearning.ai/t/w2-a1-accessing-data-h5/7644/6 "2022-12-04T09:49:52Z")

</div>

Thank You @paulinpaloalto, for the required assistance!

---

<div class="post-metadata">

**Author:** ![Deependu\_Ghosh](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@Deependu\_Ghosh](https://community.deeplearning.ai/u/Deependu_Ghosh)\
**Post date:** [December 4, 2022, 9:50am UTC](https://community.deeplearning.ai/t/w2-a1-accessing-data-h5/7644/7 "2022-12-04T09:50:22Z")

</div>

Thank You @rmwkwok, for the required assistance!
